Can the bootloader and application code be in the same CubeIDE project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-18 10:08 AM
I have a bootloader project that can jump to a QSPI application under normal conditions. When I first install this application and then install my application that I created separately for QSPI, it works without any problem.(Bootloader + App).
But what I want to do is to combine bootloader and application projects. I tried to add the App code into the Bootloader application with a method like below, but even if the compilation result was successful, the debugger gave an error and I could not load the application to flash.
My App Code
Jump Code
I've never tried anything like this before. Maybe I'm being ridiculous, sorry.
- Labels:
-
QSPI
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-20 1:14 PM
If the External Flash Loader is working properly it shouldn't mess with the Internal FLASH.
The caution with the code is that you need to get all the executing code to be in the Internal FLASH up to the point that the External FLASH is mapped into the usable address space.
Otherwise you'll get a Hard Fault
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-20 1:41 PM
Not sure how that would break the Internal Flash
You could try this one https://github.com/cturvey/stm32extldr/blob/main/h7_w25q128/CLIVEONE-W25Q128_STM32H7XX-PB2-PB6-PD11-PD12-PE2-PD13.stldr
I'd be suspicious you still have a HORSE-CART issue, most everyone has the HORSE and CART as separate things, and the HORSE goes in front of the CART.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-20 9:20 PM - edited ‎2024-05-20 9:22 PM
There is still a problem uploading the code
I used the appropriate external loader from the repo you suggested (it works on its own without any problems)

- « Previous
-
- 1
- 2
- Next »