Random SecureFault on nRF9161

Hi!

We are currently building a product using nRF9161 on (rather old) nrf-sdk version v2.9.2.

After production we are testing the hardware functions of this product using a firmware that has the Zephyr shell configured for our test cases.
For example reading / writing GPIO, ADC or sensors, so nothing special, just Zephyr shell on UART0

We observed that some of our boards fail because the test firmware is not able to start up correctly when used with this firmware.
If this error happens, this is the only output of the board:

Booting TF-M v2.1.1-ncs2-2
[Sec Thread] Secure image initializing!
FATAL ERROR: SecureFault
All pins have been configured as non-secure

After this output the board hangs.

I don't exactly know what the problem for this error could be as just some boards show this behavior, others do not, even its exactly the same firmware.
If I try another firmware (like the final firmware) the boards start up normally.

On the other hand, some boards show the same behavior using the AT monitor firmware. We also use it in after production testing for programming the IMEI.

The boards that shows the errors do not correlate. It's rather random which boards throw the error.
But if a board has the error with one of the firmwares, it has it permanently. Boards that do not have SecureFault problems with any firmware will not have problems permanently.

I understand that if a SecureFault is triggered, that there is some kind of security violation. But I can't imagine why it happens on some boards permanently and on other boards not at all.
In my understanding the software should behave deterministic and if I have a problem shouldn't I have it on all my boards?

What I tried to do on not working ones:

- Mass erase everything and reflash

- try to set 

CONFIG_TFM_LOG_LEVEL_SILENCE=y
CONFIG_TFM_SECURE_UART=n

I read this in another post on here (But I can't find it now) but it didn't worked. I don't know how to continue debugging at the moment. I'd be really happy if someone has an idea of whats going on. There are to many boards not working by now because of this problem and that is not acceptable for mass production in the future.

Thanks a lot for help!

Parents Reply Children
No Data
Related