Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

What is the cause of CAFEBABE?

Hello.

In the BLE software under development, the device uses nRF52840 and uses s140 v7.3.0.

Currently, although I have identified the location where the problem occurs, I am still suffering from an exception for which I do not know the reason.

In the software, BLE+UARTE (over serialization) works together.

When the following code is executed in the main loop by receiving commands via UART, an exception will occur with a high probability if BLE is operating.

This is the call stack trace when ASSERT occurs.
The error occurred because the main loop stopped due to an Exception after GetMissingIndex, and it was no longer possible to receive data from the UART.

And, a stack dump of the call stack.

I think that the reason why CAFEBABE appears in the stack at the time of exception is due to SoftDevice.

Do you know anything about the cause of this Exception?

Previously, when I changed the SoC from nRF52832 to nRF52840, I thought I had missed the fix by changing SoftDevice from S132 to S140, but there was no problem with ses_startup_nrf52.s and ses_startup_nrf52840.s.

Refer to UART Interrupt fault.


Best regards.

Parents Reply Children
Related