receive and send file in stm32f429zi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 12:21 AM
I want to send a file from terminal tool to stm32f429zi via RS485(USB to RS485 and transceiver) and store the received file in stm32F429zi board and again send it back to terminal tool and i want to know ,is it possible or not? and its not possible, what's the other ways to do these task.
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 6:34 AM
You can send data between PC and USB. UART has no concept of what a file is. You would need to encode that information (file name, length, etc.) and interpret it on either side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 6:34 AM
You can send data between PC and USB. UART has no concept of what a file is. You would need to encode that information (file name, length, etc.) and interpret it on either side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 7:03 AM
You control the SW and HW, should be able to code something that works for you.
Something like X-MODEM might work, or you can come up with a different protocol.
Or stream data as lines from a .HEX file, provided you can absorb the data at full-rate, half-duplex.
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-01-04 7:32 AM
X-modem should be good. Many terminal programs support it and ST provides it in examples. It allows to send filenames with the data automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 5:58 PM
Sending the file contents to the STM32 is easy. The real question is what is you definition of "store"? Do you want to store the file contents into ram, program flash or external memory? Did you want to be able to power cycle the board and still have the file retrievable? Is the file small enough to fit into ram or flash?
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 11:11 PM
its a 1KB file....is it possible to store it in RAM or FLASH....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-04 11:15 PM
can you please share some example links....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-05 10:46 AM
