Comments (4)
Hi joa77,
just to clarify: are you referring to the application image, that you would like to flash into the microcontroller with the bootloader? Or the bootloader code itself?
Generally, you need to generate a simple binary output (usually a .bin file) for the application image to be able to flash it with the bootloader (as it currently does not support .hex or any other formats than binary).
Nevertheless, the 140 MB is huge. I have no idea how you could have managed to have an application binary with 140MB. Can you please share some info about your project and how you build it?
Best,
Akos
from stm32-bootloader.
Thank you for the quick reply.
I am talking about the actual app image here.
The bootloader is only a few kb in size.
Too large bin files seem to be a general problem with ST controllers. Google gives a lot of results after a short query.
For example: https://community.st.com/s/question/0D50X00009XkYIP/bin-file-generated-by-gcc-too-large
It seems to be because Flash and RAM do not form a contiguous memory address area. So the space in between is filled with zero.
By adjusting the linker script, I have now managed to have only the flash area in the .bin file and thus only a few kb in size.
Do I now have to fill the .bin file with zeros at the end, so that it can fill the complete flash, so that the CRC is correct?
from stm32-bootloader.
Yes, you have to adjust your linker configuration to generate the correct binary.
If you want to utilize the CRC feature, you have to fill up the remaining space (except the actual 4-byte CRC value) with 0xFF
. If you want to use another CRC method or other CRC configuration, you can edit the verification function here so that it matches with your requirements:
from stm32-bootloader.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from stm32-bootloader.
Related Issues (20)
- Add command line argument to provide path to clang-format
- Add support for GNU Arm Embedded Toolchain
- Fix clang-format issue on CI HOT 1
- Add GCC build job to CI pipeline
- Add support for building the projects with scons
- Linker Script Question HOT 2
- Add stale bot to repository
- Add yamllint to repository HOT 1
- Update clang-format version to 11
- Add pull request template
- CI: Use docker image for jobs
- CI: Add style check job
- Support for STM32F4 series HOT 2
- OTA firmware update on stm8s HOT 2
- Not an issue - a question - SCB->VTOR issue with F103? HOT 3
- use of stm32-Bbootloader HOT 1
- CI: Fix editorconfig-checker command not found issue
- HardFault at f_read HOT 1
- Is it a bug in function Bootloader_Erase()? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stm32-bootloader.