Hello Qorvo, I am a new member and I am having some trouble with flashing the chip Type2AB, I can get the data from the sensor 3-Accelerometer sensor LIS2DUX12 and I am using Serger Embedded Studio.
- According to Mutara document, the pin for communicating with the sensor consists of an SDA of P0.22, and an SCL of P0.19.
- I have enabled all the necessary TWI in the SDK config file as instructed.
- When I build and load the code, everything is successful and the code is completely done here when debugging. ( jump within this if because the init function returns success )
However, I did notice that my debug pointer looks like it doesn’t run into the enable. - Going through the TWI initialization, I started coming to the communication initialization function between nrf52840 and li2dw12.
Here, m_twi is the handle of i2c that has been init above. Inside this LIS2DW_init function do the following:
When the debug pointer jumps inside the device_id_get function, what I want is that after executing this function, the whoamI variable must return the same value as LIS2DW12_ID. When this is considered a successful execution, but after executing this function, whoamI always returns the value 1, resulting in a false return.
On the inside of the device_id_get function, simply start i2c communication with the sensor through an interrupt function like this:
After the i2c transmission is complete, whoamI returns the value 1 and this results in the device not being initialized successfully. Although not initialized successfully, the underlying communication functions still run through ? And at the end when reading the sensor value, when printed, it continuously returns an unknown value.
Can anybody help me with this. Please help me ASAP!!!