cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Flash Loader Input Generation: X-NUCLEO-GFX01M2 with NUCLEO-G071RB and IAR

Thinker
Associate

Hi,

I have the task of connecting the X-NUCLEO-GFX01M2 to the NUCLEO-G071RB via the SPI interface to display, for example, "Hello World" on the screen. I am supposed to use IAR for this purpose. I have an example code from the official ST website that does exactly what I need. However, when I try to implement it, I consistently receive the error message: "There were warnings while generating flash loader input, see the Debug log window for details." Is it possible that I need TouchGFX, or can the task be accomplished without TouchGFX? Or why i get this message?

 

Tue Dec 26, 2023 11:56:08: IAR Embedded Workbench 9.40.2 (armPROC.dll)
Tue Dec 26, 2023 11:56:08: Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm/config/debugger/ST/STM32G0xx.dmac
Tue Dec 26, 2023 11:56:08: Flash download warning: 806400 out of 806400 bytes from data record CODE:[0x9000'0000,0x900c'4dff] will not be flashed
Tue Dec 26, 2023 11:56:08: There were warnings while generating flash loader input.
Tue Dec 26, 2023 11:56:08: See the Debug Log window for details.
Tue Dec 26, 2023 11:56:11: Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm/config/flashloader/ST/FlashSTM32G0xxx.mac
Tue Dec 26, 2023 11:56:11: Connected to ST-LINK/V2-1 [SWD mode 1800 kHz] [Access port: 0] Firmware V2.J42.S27 (Probe no: 066CFF534871754867183331)
Tue Dec 26, 2023 11:56:11: Hardware reset with strategy 0 was performed
Tue Dec 26, 2023 11:56:11: Initial reset was performed
Tue Dec 26, 2023 11:56:11: Loaded debugee: C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm/config/flashloader/ST/FlashSTM32G0xxx_RAM32KB.out
Tue Dec 26, 2023 11:56:11: Target reset
Tue Dec 26, 2023 11:56:12: Unloaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm/config/flashloader/ST/FlashSTM32G0xxx.mac
Tue Dec 26, 2023 11:56:12: Downloaded C:\Users\aaj\OneDrive - Rayonex Biomedical GmbH\Desktop\en.X-CUBE-DISPLAY.3.0.0\Projects\NUCLEO-G071RB\Applications\GFX01M2_HelloWorld\EWARM\GFX01M2_HelloWorld\Exe\GFX01M2_HelloWorld.out to flash memory.
Tue Dec 26, 2023 11:56:12: 30823 bytes downloaded into FLASH (7.81 Kbytes/sec)
Tue Dec 26, 2023 11:56:12: ELF/DWARF Error: Unknown
Tue Dec 26, 2023 11:56:12: Failed to load debugee: C:\Users\aaj\OneDrive - Rayonex Biomedical GmbH\Desktop\en.X-CUBE-DISPLAY.3.0.0\Projects\NUCLEO-G071RB\Applications\GFX01M2_HelloWorld\EWARM\GFX01M2_HelloWorld\Exe\GFX01M2_HelloWorld.out
Tue Dec 26, 2023 11:56:12: Unloaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm/config/debugger/ST/STM32G0xx.dmac
Tue Dec 26, 2023 11:56:12: Loading the ST-LINK Driver driver
Tue Dec 26, 2023 11:56:12: IAR Embedded Workbench 9.40.2 (armPROC.dll)

2 REPLIES 2

Hello @Thinker ,
I'm not sure about the process you are taking and the project you are using. I think it should be possible to complete your project without TouchGFX. However, you can easily use TouchGFX to complete your task in a short amount of time because an IAR project will be created automatically when you select a Board Setup through the Designer. 
It is possible for you to have a TouchGFX project next to your preferred settings for you STM32CubeMX project. So, no worries in this regard :D 

 

Don't hesitate to ask more questions about TouchGFX

Mohammad MORADI
ST Software Developer | TouchGFX

Not sure of the exact mechanics with IAR but it needs a .MAC file describing how to manage the programming of the QSPI / SPI NOR Flash on the graphics shield board.

Via STM32 Cube Programmer this would be an External Loader

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..