Commit a2c20ba4beff2186de521d35f137a0e2fef47779
authorMichel Pollet <buserror@gmail.com>
Wed, 23 Dec 2009 22:22:23 +0000 (22:22 +0000)
committerMichel Pollet <buserror@gmail.com>
Wed, 23 Dec 2009 22:22:23 +0000 (22:22 +0000)
tree84cbb02aed1ee61dc48bbe1246f129760159a8c2
parentcb533ae28fd0e051e42bdeae43965ec6faf9ae1f
Message:
run_avr et al. New HEX format loader

simavr can now load .hex files directly, It is obviously a lot
more primitive than the ELF loader, but it works.
You have to specify the MCU and the AVR frequency on the command
line to run a .hex, otherwise simavr has no clue what it's suposed
to do.

Also reworked run_avr to get rid of getopt, moved the
read_hex_string function into the new sim_hex.[ch], and now
understand that the base addresd of code is not always zero.

This allows loading of a bootloader (tada!)

Signed-off-by: Michel Pollet <buserror@gmail.com>
4 files changed:
simavr/sim/run_avr.c
simavr/sim/sim_gdb.c
simavr/sim/sim_hex.c [new file with mode: 0644]
simavr/sim/sim_hex.h [new file with mode: 0644]