04-22-2022 04:18 PM
Hello,
i'm using BMA456 with zephyr, and i'm getting this error "bma456_write_config status Error [-5] : Invalid configuration stream" when i traced it back, the register 0x2A (internal status ) is not initilized (0x00 ASIC not initialized ). i don't think th problem is with i2c function as they don't return error and they work fine for other API functions. any ideas what could be the problem? i already checked other post but no success with that.
Aisha.
04-24-2022 04:17 AM
Hi Aisha,
You can check whether the function bma4_write_config_file() of loading location file is executed correctly? If yes, capture the I2C waveform with the logic analyzer to see whether the actual communication waveform is the same as expected by the code execution?
05-13-2022 10:08 AM - edited 05-13-2022 10:14 AM
Hello BSTRobin,
Thank you for ur message, and sorry for late response,
i debugged bma4_write_config_file() as u recommendded and found that it fails when reaching this
if (config_stream_status != BMA4_ASIC_INITIALIZED)
{
rslt = BMA4_E_CONFIG_STREAM_ERROR;
}
which i assume this line " rslt = bma4_read_regs(BMA4_INTERNAL_STAT, &config_stream_status, 1, dev);" does not return ASIC intilized.
any ideas why it fails in here?
Aisha.
06-08-2022 03:58 AM
07-28-2022 08:20 AM
Hi Aisha,
I had the same problem with BMA456- ASIC is not initialized,Is your problem solved?
Thank you very much for your help.