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.
2024-01-04 06: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.
2024-01-04 06: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.
2024-01-04 07: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.
2024-01-04 07: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.
2024-01-04 05: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?
2024-01-04 11:11 PM
its a 1KB file....is it possible to store it in RAM or FLASH....
2024-01-04 11:15 PM
can you please share some example links....
2024-01-05 10:46 AM