cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H745XI Dual Core External Bootloader

user4711
Associate II

Hello,

I have developed a external Loader for my custom projekt. It uses a W25Q128 QSPI conected to bank 2 and alternative Pin of CLK. (Worse!, but it is so...) So i Have no exactly example for it. Also it is a Dual Core, and no example i find have special definitions for it.

I worked more days on it and it worked perfekt (now!) in a Cube Projekt.

Erase, write and read (manual) and memory mapped mode are perfect.

If I compile the stldr file, I can load ist in Cube programmer and stm prog utility.

But then I could cry. I can't do anything. No read on QSPI and so on.

....

I think i will have trouble with the m4 Core. The M7 Core must wait for him.

I don't know. How you can help me. What is wrong. Have you any Idea?

6 REPLIES 6
user4711
Associate II

anything else

user4711
Associate II

Have anyone an Idea?

The Bus Matrix has the QUADSPI on the CM7 side, that's where the code is running.

I don't see that being on BANK2 (BK2) would introduce any particular issues.

PB2:AF9 CLK

PC11:AF9 NCS

PH2:AF9 D0

PH3:AF9 D1

PG9:AF9 D2

PG14:AF9 D3

I'd probably look at how it's build, and the .LD for the single core H7 would suffice.  https://github.com/cturvey/stm32extldr/blob/main/ExternalLoader.ld

I would not use or create dependencies on Interrupts, Vector Table, startup.s initialization nor main() entry.

I'll map your pin definitions into an existing build and see where it gets us..

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

Try   https://github.com/cturvey/stm32extldr/blob/main/h7_w25q128/CLIVEONE-W25Q128_STM32H7XX-PB2-PC11-PH2-PH3-PG9-PG14.stldr

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

Super great, thank you. But can you tell me how you did it. The file is only 8kb! I would like to modify the whole thing and integrate LEDs and other tasks.

Can you send me the relevant files as source code so that I can make a cube project.

Thanks again

It is part of a larger project for which source is not generally provided.

The files are smaller as a lot of junk and dead code has been removed, but is basically an optimal HAL implementation in GNU/GCC

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