cancel
Showing results for 
Search instead for 
Did you mean: 

ST official example code (stm32cube_fw_l4_v1140->32L496GDISCOVERY-> QSPI_MemoryMapped )has optimization "Instruction scheduling" bug!

adong
Associate

Official board: STM32L496G-Discovery board(MB1261B)

IAR version: 8.32.3.2028

Example code : QSPI_MemoryMapped (location: stm32cube_fw_l4_v1140\STM32Cube_FW_L4_V1.14.0\Projects\32L496GDISCOVERY\Examples\QSPI\QSPI_MemoryMapped)

The demo code run the WRONG result:LED_Orange is on, that means aTxBuffer is NOT same with external flash, but they are same.(It's bug)

Two ways can fix it:

1, Remove "Instruction scheduling " options at C/C++ compiler-> optimizations;

2, Change the "uint16_t index = 0;" to global type;

What the root cause of this BUG?

thanks

Andy

1 REPLY 1
adong
Associate

Anybody can give some remark?​