X-CUBE-CLASSB-U5(STL) issue(Hardfault) of TM7 test executing in ThreadX
Hello Support team,
We are working on the Class-B on STM32U585 microcontroller-based product.
We have added the ThreadX support in the X-CUBE-CLASSB-U5(STL) library example code.
SW Configuration :
- STL library runs the Secure region
- STL APIs calling from Non-secure regions through a Non-secure callback function or Gateway
Issue :
When we run the TM7 STL test in the thread, the device enters into a hard fault due to assessing the secure region.
Counter Measurement check :
- STL must be executed with privileged mode. The control register value is showing TM7 in the privileged mode (nPRIV bit)
- STL is running in the processor mode. The control register value showing PSP mode (SPSEL bit)
- As per debugging, the TM7 test executes the External memories areas (0x6000 0000
0xDFFF FFFF) and shows errors like not accessible due to secure region.
Queries :
- Why getting issues while executing the TM7 test run in Threadx? and not getting issues without ThreadX?
If you need more information please let me know.
I don't know exactly the root cause of the issue. Waiting for your valuable support.
Thanks & Regards,
Chintan Patel
