cancel
Showing results for 
Search instead for 
Did you mean: 

Class B STM32 Self-test library with IAR 8.32 toolchain

JHilj
Associate

I'm trying to import our old code from 7.3 to 8.32.1 and have a problem with classb tests. To see that the problem is not in our code, I have tested the project included in Class B STM32 Self-test library

(Projects\STM32L476G_EVAL\EWARM) and it behaves exactly the same.

The actual problem is that with 7.3 the variables to store the control flow (CtrlFlowCnt/CtrlFlowCntInv) are always loaded/written directly from/to RAM, but with 8.32.1 they are first loaded to register ONCE and not written back to RAM. This has the problem that tests like STL_StartUpCPUTest destroys all registers and with that also the value for control flow. I have tried with volatile but it doesn't help. Do you know any way to solve this problem?

0 REPLIES 0