GithubHelp home page GithubHelp logo

ferenc-nemeth / stm32-bootloader Goto Github PK

View Code? Open in Web Editor NEW
291.0 13.0 89.0 599 KB

UART bootloader for STM32 microcontroller.

License: MIT License

C 95.37% C++ 4.21% Assembly 0.42%
stm32 stm32f1 stm st stm32f10x bootloader uart usart iap in-app-programming

stm32-bootloader's People

Contributors

ferenc-nemeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stm32-bootloader's Issues

Bug!

You have bug! Stack crashed! Compile and work only TrueStudio only!

Bun in "xmodem_status" method!

Have bootloader at end of memory

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?

HardFault due to memory alignment issue when porting to STM32F0 (Cortex M0)

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:

if (FLASH_OK != flash_write(xmodem_actual_flash_address, (uint32_t*)&received_data[X_PACKET_DATA_INDEX], (uint32_t)size/4u))

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.

Try port to STM32F107VCT

Try port to STM32F107VCT, dont work.

Begin CCCCCCCCC, run xmodem transfer and stop - no CCC, no upload

HardFault in JumpToApplication ...

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.