ferenc-nemeth / stm32-bootloader Goto Github PK
View Code? Open in Web Editor NEWUART bootloader for STM32 microcontroller.
License: MIT License
UART bootloader for STM32 microcontroller.
License: MIT License
Hi
I have done the changes as per and flash the code. I could see that application got transferred but application was not running. Application was just kled blinking.
here is both the code.
You have bug! Stack crashed! Compile and work only TrueStudio only!
Bun in "xmodem_status" method!
If I wanted to have the bootloader at the end of the flash as opposed to at the start, how would I need to configure the VECT_TAB_OFFSET and FLASH (rx) parameters?
Hi, first of all, thanks for your very nice and clean-code bootloader, without the typical 'embedded black magic'.
I tried to port your work to an STM32F0 microcontroller and I discovered an insidious problem, when using ARM Compiler v5.06 for µVision (Keil IDE).
In details here:
Line 206 in 2e1a7ac
there is a misaligned pointer to received_data
(because X_PACKET_DATA_INDEX=2), and this leads to HardFault at HAL_FLASH_Program
of flash_write
, when it tries to copy the value to the flash by dereferencing the pointer.
I solved the problem by receiving XMODEM header and XMODEM data+crc into two differents uint8_t
arrays, one for the header and the other one for data+crc.
The modified version of xmodem_handle_packet
function is available here:
https://gist.github.com/lrodorigo/3b975205962e403b50c647728d4cef6f
I hope this hint will be useful for you and for other people that are trying to adapt this bootloader to other platforms.
can you help me to check my code problem?
use you code changed.but it not run normal.
when i send xmodem by secureCRT,it stop...
Try port to STM32F107VCT, dont work.
Begin CCCCCCCCC, run xmodem transfer and stop - no CCC, no upload
How to use in STM32F207ZG ?
Hello,
I tried to use this bootloader but if the bootloader has to run the application, it ends up in the HardFault error. Can't you tell me where I should look for a mistake?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.