Hello.
I am trying to write a flash loader for the STM32F207 SPI flash.
The debug build was successful and works.
The release build works too, but the read back function in J-Flash app returns garbage.
The problem is with the SEGGER_OPEN_Read function (U32 Addr, U32 numBytes, U8 *pdestbuf). When calling the SEGGER_OPEN_Read function, the argument is numBytes = 0. My code returns -1 (error), because it is not known how many bytes to read from spi-flash, but j-flash does not give any error messages and continues to work.
Calling the SEGGER_OPEN_Read function with the argument numBytes = 0 is a bug, or I misunderstand the "read back" procedure?
I'm use J-Flash V6.94b.
I am trying to write a flash loader for the STM32F207 SPI flash.
The debug build was successful and works.
The release build works too, but the read back function in J-Flash app returns garbage.
The problem is with the SEGGER_OPEN_Read function (U32 Addr, U32 numBytes, U8 *pdestbuf). When calling the SEGGER_OPEN_Read function, the argument is numBytes = 0. My code returns -1 (error), because it is not known how many bytes to read from spi-flash, but j-flash does not give any error messages and continues to work.
Calling the SEGGER_OPEN_Read function with the argument numBytes = 0 is a bug, or I misunderstand the "read back" procedure?
I'm use J-Flash V6.94b.