This is a continuation of "Using elftosb Utility with GCC Compiler and Linker":
We're using gcc-arm-none-eabi 0.3-2021.10 (arm-none-eabi-g++) to compile and link. Then, because for our project constraints we have to do everything in command line, we have to use sdphost and blhost to flash our MCU with the .sb (secure binary) created from elfosb, all from command line.
How should I use the elftosb command in Linux (i.e. what options and option values should I use)? For example, I used
sudo elftosb -f imx -V -c imx_application_gen.bd -o my_output.bin my_input.s19
Is this correct?
What should be the contents of my .bd file?
Included is the srec that comes out of the ARM gcc compiler and using objcopy to get it into the srec format.
cc @mjpovi