Using elftosb with ARM GCC Compiler and Linker, Part 2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using elftosb with ARM GCC Compiler and Linker, Part 2

384 Views
ernest_yeung_terran
Contributor II

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 

0 Kudos
Reply
0 Replies