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.
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?
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?