Send files from terminal to microcontroller.
Posted: Tue Jun 22, 2021 3:10 pm
Hi,
I am working on a bootloader that can take data from a terminal, like teraterm or similar.
I plan to have the microcontroller respod to a command, "LOAD" for example. The microcontroller will then wait and listen for incoming data.
In the terminal i will then send a file, for the uC to receive.
There was intention to send the xxxx.hex file that flowcode outputs. That was until i realised it wont send the hex data as hex, but each letter as a byte of its own in ascii.
I am reading that the file should be sent as binary!!!
So heres my issue. In HEX format i can store this in external flash memory and then knowing the HEX format, i can break it up in the bootloader and program that to the uC Flash memory.
In binary, im not sure how this works. Does it have a structure?, or is it just a stream of bytes that are programmed to uC flash sequentially?
If i do send the file in binary, is there any way to visualise it, so that i know during development, that i am sending and receiving the correct data.?
I am working on a bootloader that can take data from a terminal, like teraterm or similar.
I plan to have the microcontroller respod to a command, "LOAD" for example. The microcontroller will then wait and listen for incoming data.
In the terminal i will then send a file, for the uC to receive.
There was intention to send the xxxx.hex file that flowcode outputs. That was until i realised it wont send the hex data as hex, but each letter as a byte of its own in ascii.
I am reading that the file should be sent as binary!!!
So heres my issue. In HEX format i can store this in external flash memory and then knowing the HEX format, i can break it up in the bootloader and program that to the uC Flash memory.
In binary, im not sure how this works. Does it have a structure?, or is it just a stream of bytes that are programmed to uC flash sequentially?
If i do send the file in binary, is there any way to visualise it, so that i know during development, that i am sending and receiving the correct data.?