The Bluetooth firmware will report an error message before startup, and then everything will be normal

The chip I am using is 54l15, and the NCS version is 2.8.0

I used the peripheral_uart example for modification and got my own program, but I forgot which time this problem occurred during the modification

The specific error code is shown in the following figure

As can be seen, there was a slight error message output before the code started, but I searched for a long time without finding the cause. And this does not affect other functions, except for these few lines of error messages, everything else is running as expected

  • hi
    I use NVIC_SystemReset and this
    At present, I have found that this issue may be caused by the configuration in prj.conf. In a new example, I copied the current prj.conf and the same issue occurred, I am ruling out which configuration is causing the problem
  • hi

    I should have already found where the problem lies

    Previously, there were some issues with Bluetooth caused by hardware, but I didn't know it was a hardware error at the time, so I enabled CONFIG_DEBUG_OPTIMIZATIONS=y and CONFIG_DEBUG_THREAD_INFO=y for debugging purposes

    And I chose OG here

    The current result of my testing is that only by canceling both of these changes can the grtc error be resolved. Whether changing one of them separately or both at the same time, it will trigger the grtc error

    Although the problem has been resolved, I would like to know the reason for its occurrence. Can you explain it to me? Thank you.

  • Hi Illy, 
    Thanks for the info. I have reproduced what you observed. My suspicious is that when building for debug the softreset doesn't do the reset properly and for some reason accessing the GRTC (read syscounter) before the driver for it initialized. After the driver is initialized in the boot process (as you can see in the log) everything is would run fine. 
    I'm checking this internally, I will get back to you if I receive any more information. 

Related