Writing IAR output to ARM chip without IAR
We currently hold a full license for the IAR EWARM IDE but we need to upload firmware to units being made meaning only one person can do the uploading as the application is way over the kickstart size.
I'm wondering if there is an alternative method for just uploading (no debugging) IAR's outputted executable without the need for a fully licensed version? I've looked into the Eclipse plugin but this seems to rely on the IAR compiler still.
We're using the TMS470 chip and a JLink programmer. Any advice would be much appreciated.
1 Reply
If you need to upload firmware to your TMS470 chip without a fully licensed IAR Embedded Workbench, consider these alternative methods:
1. Segger J-Link Software and Command-Line Tools:
- Segger provides a command-line tool,
JLinkExe -device <your_device> -if JTAG -speed <interface_speed> -CommanderScript <script_file> 2. OpenOCD (Open On-Chip Debugger): - OpenOCD, an open-source tool, supports JTAG and SWD interfaces, including the Segger J-Link. - Example command: openocd -f interface/jlink.cfg -f target/ti_tms470.cfg -c "program <your_executable> verify reset exit" 3. JLink Commander with Script Files: - Use J-Link Commander with script files for programming. - Example script file (
JLinkExe
, for programming without relying on a specific IDE.
- Example command:
JLinkExe -device <your_device> -if JTAG -speed <interface_speed> -CommanderScript <script_file> 2. OpenOCD (Open On-Chip Debugger): - OpenOCD, an open-source tool, supports JTAG and SWD interfaces, including the Segger J-Link. - Example command: openocd -f interface/jlink.cfg -f target/ti_tms470.cfg -c "program <your_executable> verify reset exit" 3. JLink Commander with Script Files: - Use J-Link Commander with script files for programming. - Example script file (
program_script.jlink
):
loadfile <your_executable>
r
g
- Run the script:
JLink.exe -device <your_device> -if JTAG -speed <interface_speed> -CommanderScript program_script.jlink
4. Custom Scripts with GDB:
- Utilize GDB with the J-Link GDB server for programming.
- Example GDB script (program_gdb_script.gdb
):
target extended-remote | JLinkGDBServer -device <your_device> -if JTAG -speed <interface_speed>
load <your_executable>
monitor reset
detach
quit
- Run the script:
gdb-multiarch -x program_gdb_script.gdb
Ensure you replace placeholders (<your_device>
, <interface_speed>
, <your_executable>
) with appropriate values. Check tool documentation and license terms for accurate usage.