Skip to main content
adong
Associate
July 18, 2019
Question

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

  • July 18, 2019
  • 1 reply
  • 716 views

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

This topic has been closed for replies.

1 reply

adong
adongAuthor
Associate
July 19, 2019

Anybody can give some remark?​