cancel
Showing results for 
Search instead for 
Did you mean: 

External Loader - Unknown .stldr file

erkanc
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

4 REPLIES 4

>>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
Up vote any posts that you find helpful, it shows what's working..

Missed the cite  https://github.com/cturvey/stm32extldr/blob/main/ExternalLoader_G4.ld

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

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
Up vote any posts that you find helpful, it shows what's working..
erkanc
Associate III

Thank you so much @Tesla DeLorean.