/*
run_avr.c
- Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
+ Copyright 2008, 2010 Michel Pollet <buserror@gmail.com>
This file is part of simavr.
if (f_cpu)
f.frequency = f_cpu;
- printf("firmware %s f=%d mmcu=%s\n", argv[argc-1], (int)f.frequency, f.mmcu);
-
avr_t * avr = avr_make_mcu_by_name(f.mmcu);
if (!avr) {
fprintf(stderr, "%s: AVR '%s' now known\n", argv[0], f.mmcu);
avr_init(avr);
avr_load_firmware(avr, &f);
if (f.flashbase) {
- printf("Attempted to load a booloader at %04x\n", f.flashbase);
+ printf("Attempted to load a bootloader at %04x\n", f.flashbase);
avr->pc = f.flashbase;
}
avr->trace = trace;