Strange memory write at 0x2000683C on nRF52832 only when debugger is not attached

Hi,
I'm encountering an issue with one particular nRF52832 unit (we use nRF SDK 15.2.0).
The problem is that a value 0x20 (decimal 32) is being written to a memory address 0x2000683C. Depending on the application loaded, this sometimes leads to various unexpected behaviors, including HardFaults, depending on what is located at that memory address.

We've conducted several tests, including reserving that memory area with a dummy unused section. In that case, the unexpected write still occurs, but it doesn't cause any faults since the memory is not in use.

Additional observations:

  • The problem only happens when the debugger is disconnected.

  • Using MWU (Memory Watch Unit) to track writes didn't help — when MWU is enabled, the problem no longer occurs.

  • The unexpected write seems to happen when the microcontroller enters sleep mode.

  • We modified the application to start only the main() function without SoftDevice, with minimal configuration and just one application FreeRTOS task, plus Timer and Idle tasks.

  • If we disable tickless idle (configUSE_TICKLESS_IDLE = 0) or add an infinite loop with NOP instructions without any TaskDelay, the issue does not occur.


Has anyone encountered a similar issue?
Could this be related to some SDK configuration or FreeRTOS behavior, or is it more likely a hardware issue with this specific chip?

Aside from this memory corruption, the chip seems to work fine. If we reserve this memory address, a fully functional application using SoftDevice, various peripherals, and multiple FreeRTOS tasks works without any noticeable problems.

Thanks in advance for any advice or ideas!

Parents
  • Hi

    Can you confirm this is only reproducible on one nRF52832 device, and not on just any board? Is the nRF52832 a custom board or a Development kit? Does this occur no matter what type of application is flashed onto the device? Does it occur with any of the out of the box projects for example with just this FreeRTOS addition to it?

    Best regards,

    Simon

Reply
  • Hi

    Can you confirm this is only reproducible on one nRF52832 device, and not on just any board? Is the nRF52832 a custom board or a Development kit? Does this occur no matter what type of application is flashed onto the device? Does it occur with any of the out of the box projects for example with just this FreeRTOS addition to it?

    Best regards,

    Simon

Children
No Data
Related