Skip to main content
Associate III
June 29, 2024
Solved

External Loader - Unknown .stldr file

Hi everyone. 

I am working on STM32G0B0 MCU and develop UI with touchGFX. I researched how to generate external loader for external NOR FLASH(MX25L6433F). 

I use SPI2 on MCU(SMT32G0B0). And edited relevant files. 

I applied all of steps on following links:

https://blog.embeddedexpert.io/?p=2189

Like W25Q FLASH Memory || Part 9 || External Loader in SPI Mode (youtube.com)

Like External loaders for SPI flash: a "standard" version (youtube.com)

I separately tested it. But xxx.stldr file is not working. STM32CubeProgrammer is unknown my STLDR file. 

erkanc_1-1719676790442.png

I build without any problem. I checked that makefile under debug folder. There is an error that:

 

fail-specified-linker-script-missing:
	@echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
	@exit 2

warn-no-linker-script-specified:
	@echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'

.PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified post-build

 

erkanc_0-1719677332690.png

Could you help me about this problem. Is there more easy way to generate custom external loader?

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 30, 2024

I ended up building and posting this

https://github.com/cturvey/stm32extldr/tree/main/g0_mx25l6433f

The code basis here should be able to support builds for Winbond W25 and Macronix MX25 parts from 16 Mbit to 2 Gbit, just need to recompile

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

4 replies

Tesla DeLorean
Guru
June 29, 2024

>>Is there more easy way to generate custom external loader?

Well I'm just using GCC+MAKE to build a small HAL based project.

This is a Linker Script for a G4, but should be viable for a G0

The empty fields in STM32 Cube Programmer is indicative that the StorageInfo structure has not been built/bound correctly.

You could look at the .MAP and perhaps inspect with objcopy or objdump

 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
June 30, 2024
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 30, 2024

I ended up building and posting this

https://github.com/cturvey/stm32extldr/tree/main/g0_mx25l6433f

The code basis here should be able to support builds for Winbond W25 and Macronix MX25 parts from 16 Mbit to 2 Gbit, just need to recompile

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
erkancAuthor
Associate III
July 1, 2024

Thank you so much @Tesla DeLorean.