I cube Lorawan Stack V1.3.1 user Code Not Working/Updating
- June 5, 2020
- 4 replies
- 2929 views
Hi All ST Members
Hope you all are doing well! . I have a question , i will highly appreciate for the answer.
Currently i am using I cube Lorawan Stack V1.3.1 its compiling and working well with my Nucleo Board+ Sx1262 . But when i copy pasted the working code from another project in which HAL libraries used . In this project i interfaced the DS1307/TLV493D , read the data from it and displayed on UART perfectly .
After copy pasting all the code(DS1307/TLV493D) into the I cube Lorawan with all the variables with zero error . Program failed to work . I debugged the issue . Which i found is that
In working code of (DS1307/TLV493D) internal registers of I2C were updating in debug mode . I have attached the screen shot of it .
But after copy pasting program get stuck at this command
if(HAL_I2C_IsDeviceReady(&hi2c1 ,0x00 ,1,10)== HAL_OK){
HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_5);
}
I debugged the issue , in which i found that internal registers of I2c are not updating at all . I also tried UART code / Timer Code which was working in separate project but doing same behavior as mentioned above for the case of I2C .Screen Shot is also attached which is showing internal registers are not updating.
Note *
I have also configured the I2C clock as well in system configuration function . I have also attached the main.c files for both the cases .
Thanks in Advance
Best Regards,