cancel
Showing results for 
Search instead for 
Did you mean: 

I have a STM32F746 Discovery Kit and using IAR 8.32.2 Trying to make a Hello World program and getting the following error "There were warnings while generating flash loader input" My guess is that the IAR and TouchGFX versions are out of sync.

TKell.4
Associate
 
4 REPLIES 4
TKell.4
Associate

Are you saying the Generate Code under TouchGFX Designer does NOT work?

From the link you attached, what am I supposed to do? Use a piece? Do it all? Will it work with Designer when done. Do I make a new directory? Could it be something simple?

Here is the output from IAR when downloading.

Fri Jan 18, 2019 08:53:02: IAR Embedded Workbench 8.32.2 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\bin\armproc.dll) 

Fri Jan 18, 2019 08:53:02: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\ST\STM32F7xx.dmac 

Fri Jan 18, 2019 08:53:02: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\ST\STM32F7xx_DBG.dmac 

Fri Jan 18, 2019 08:53:02: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\ST\STM32F7xx_OB.dmac 

Fri Jan 18, 2019 08:53:02: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\ST\STM32F7xx_TRACE.dmac 

Fri Jan 18, 2019 08:53:02: Flash download warning: 766 out of 766 bytes from data record CODE:[0x90000000,0x900002FD] will not be flashed 

Fri Jan 18, 2019 08:53:02: There were warnings while generating flash loader input. 

Fri Jan 18, 2019 08:53:02: See the Debug Log window for details. 

Fri Jan 18, 2019 08:53:04: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\flashloader\ST\FlashSTM32F7xxx.mac 

Fri Jan 18, 2019 08:53:04: Connected to ST-Link/V2-1 [SWD mode 1800 kHz] [Access port: 0] Firmware V2.J32.S22 (Probe no: 67192342) 

Fri Jan 18, 2019 08:53:04: Initial reset was performed 

Fri Jan 18, 2019 08:53:04: 1536 bytes downloaded and verified (15.96 Kbytes/sec) 

Fri Jan 18, 2019 08:53:04: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\flashloader\ST\FlashSTM32F7xxx_256kB.out 

Fri Jan 18, 2019 08:53:04: Target reset 

Fri Jan 18, 2019 08:53:06: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\flashloader\ST\FlashSTM32F7xxx.mac 

Fri Jan 18, 2019 08:53:06: Downloaded C:\BioWear\CGMReader\EWARM\STM32F746G-DISCO\Exe\STM32F746G-DISCO.out to flash memory. 

Fri Jan 18, 2019 08:53:06: 45699 bytes downloaded into FLASH (12.22 Kbytes/sec) 

Fri Jan 18, 2019 08:53:06: Hardware reset with strategy 2 was performed 

Fri Jan 18, 2019 08:53:07: 46465 bytes downloaded into FLASH and verified (21.05 Kbytes/sec) 

Fri Jan 18, 2019 08:53:07: Warning:  

Fri Jan 18, 2019 08:53:07: Verify error at address 0x90000000, target byte: 0x00, byte in file: 0x92 

Fri Jan 18, 2019 08:53:07: Warning:  

Fri Jan 18, 2019 08:53:07: Verify error at address 0x90000001, target byte: 0x00, byte in file: 0xEC 

Fri Jan 18, 2019 08:53:07: Warning:  

Mon2
Senior III

We do not have this target kit so cannot state for sure but you will have to review:

a) do you plan to use the CubeMX tool + TouchGFX tool with IAR compiler? If yes, then you may face some integration issues. The issues are being resolved but the first time user experience may take you longer to resolve the errors than just a few minutes of launching.

b) if you are using ONLY the TouchGFX GUI tool (and not with the CubeMX) then you should be fine to use as-is. On the warnings, they are only warnings. Have you have been able to create a simple GUI screen -> Generate Code and upload to this target -DISCO board with success?

The simulator is quite nice and for the most part, accurate to use without real target hardware. If the simulator works then so should the live hardware application.

If your target kit does not work, review the above supplied URL and follow exactly as shown to possibly tweak the GUI generated code for this target.

Please post your results for future readers.

For us, we invested a good 3 weeks and very long hours to resolve the many errors we saw with the IAR and SW4STM32 compiler but our goal was to integrate CubeMX + TouchGFX for our target kit. We have posted a detailed article on the process in this forum.

Recently ST has posted a similar article but is for the IAR target only and details the STM32F429 kit use.

Suspecting that you will want to also make use of the CubeMX tool as it is very helpful to generate quick skeleton code for say SPI / I2C, etc. Those topics alone can consume days of wasted time if performing the task from scratch.

Hope this helps.

Reference:

Our documentation but is only for the STM32F429i-DISC1 kit:

https://community.st.com/s/question/0D50X0000A7Y1xxSQC/stm32f429idisc1-tutorials-with-iar-and-sw4stm32-compilers-with-touchgfx-stm32cubemx

Latest kit support material is here from ST:

https://touchgfx.zendesk.com/hc/en-us/sections/360002983492-CubeMX

Martin KJELDSEN
Chief III

Hi @TKell.4​,

The warning you're getting is to tell you that there are regions of memory (0x90.... ->) that cannot be programmed by the current project configuration. We do not supply IAR flashloaders for the QSPI, but the project converts the .out file to .hex that you can flash with your favorite ST programming tool (ST-Link or STCubeProgrammer).

Hope that helps!

Best regards,

Martin