Skip to main content
CMasc.1
Associate
March 25, 2023
Solved

Why doesn't this simple openthread project work?

Hello, I am trying to create a simple openthread project on my NUCLEO-WB55RG. There is no custom code in this project; just the code generated from the CubeMX ioc file attached.

By all means, I think that I have all the necessary settings for this project selected in the IOC file (attached), but "SHCI_USER_EVT_PROC" task never finishes, and instead hangs on SHCI_C2_Thread_Init(). Am I doing something wrong?

This topic has been closed for replies.
CMasc.1
CMasc.1Best answer
Associate
March 28, 2023

After five days of debugging, I have now solved the issue:

The IOC code generation does not update the linker script (the file that ends in .ld). By default, the _estack allows the program stack to trail into the CPU2 SRAM1 space. This must be corrected by setting _estack = 0x20024000 (or whatever the Thread_Cli_Cmd example project has).

2 replies

Remy ISSALYS
ST Technical Moderator
March 27, 2023

Hello,

Which stack are you using ? Did you try to start with a basic example like Thread_Coap_Generic ?

Best Regards

CMasc.1
CMasc.1AuthorBest answer
Associate
March 28, 2023

After five days of debugging, I have now solved the issue:

The IOC code generation does not update the linker script (the file that ends in .ld). By default, the _estack allows the program stack to trail into the CPU2 SRAM1 space. This must be corrected by setting _estack = 0x20024000 (or whatever the Thread_Cli_Cmd example project has).