Transfer File from terminal to STM32 Flash via UART over DMA
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-03-03 10:20 AM
Posted on March 03, 2016 at 19:20
Hi!
I would like to know if it's possible to transfer a file from a PC(with hyper terminal), to the MCU' Flash, with the UART over DMA.I use a stm32l151xc. , the file to transfert is moreorless 100kB.I check the trasnfert to RAM with a file of 10kB, it's correct.With the Flash as destination of the DMA, it's not working. I try Byte and word alignment.I am able to write the FLASH manually. but not with the DMA.I have created a user_section into FLASH to play with.Do you know if it's technically possible?(timing Flash)thanksPS: maybe use X/Y/Z Modem is a better solution. What are you think about that? #stm32l151 #flash #uart #dma
Labels:
- Labels:
-
DMA
-
Flash
-
STM32L1 Series
-
UART-USART
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-03-03 10:37 AM
Posted on March 03, 2016 at 19:37
I don't think this provides any level of control, and you can't do byte/word level erase. Streaming data into flash without any protocol is the wrong way to approach this.
I use XMODEM-1K for console/terminal based updates. It's in everything, and it is very robust. I've also built Intel HEX and Motorola S-Record loaders.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
