Sorry, the command is: arm-none-eabi-objcopy, not objcopy-arm-none-eabi
El 16/02/2012 09:46 a.m., Hard Maker escribió: > Hi Chris, > I'm work with stellaris too, using GNU tools. I work in one of two > ways (both the use but for different situations): > - To degub applications, take the elf file generated by gcc and use > gdb to program and debug throw openocd. In this case use "remote > target" to conect from gdb to openocd in a lan enviroment. More > specifically, use a PC with linux conected to microcontroller using > JTAG, and debug from Windows using eclipse in other PC. This mode is > somewhat complicated to configure, but works very well. > - To write a release firmware, build the proyect whitout debug > information (remove any "-g" option to compile and use -O2). Take the > elf file and convert them to bin using objcopy: > > objcopy-arm-none-eabi -O binary firmware.elf firmware.bin > > Then write firmware.bin from console using OpenOCD: > openocd -f path_to_config/openocd.cfg -c init -c"reset halt" -c "flash > write_image erase path_to_file/firmware.bin" -c "reset" -c "shutdown" > Obviously, this way is simpler. > > I don't use SWD interface, I just have a "home build" jtag, but if > OpenOCD detect the target, I think should have no problem. > > Good luck! > Sergio > > El 16/02/2012 07:03 a.m., Chris Green escribió: >> I am trying to set up software on a Linux (xubuntu 11.10) box to develop >> software for an ARM Cortex-M3 processor based board. It has a TI >> Stellaris chip LM3S9D92. >> >> The board is a SolderCore board and I have already got an SWD interface >> to it that works from a proprietary IDE so, basically, I have the >> hardware sorted. >> >> How easy will it be to get OpenOCD to work with this? I'm very much a >> command line person (I've been software engineering on, mostly, Linux >> based systems since the 1980s) and I'm happy to do a certain amount of >> tuning, dubugging and testing to get it to work. >> >> >> I have some more general questions which, while not directly related to >> OpenOCD, I'm sure there will be people here with the relevant expertise. >> I fairly naive about all this, I've not done any microprocessor based >> programming since the time I was programming 8080s and Z80s in the 1970s >> and RCA 1802 based systems in the 1980s. >> >> Once I have (if it's possible) OpenOCD working what else do I >> need to >> write programs in C and get them onto the ARM board? >> >> I can get the GNU ARM gcc onto my system and get the Stellaris >> Development software from TI (I already have that in fact), so I >> think I can see how to build/link the code. >> >> Having built the code is that it? I.e. can OpenOCD take the linked >> file, do whatever's needed and download it to the ARM board? >> >> Thanks for any/all help, I'm happy to take the non-OpenOCD related stuff >> off list if that would be better. >> > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel