Wrote normal blink program for nano and also assembled a 1802 program called hi.asm into hi.hex.
Used avrdude to burn both into nano and read back contents with this command:
$ c:\tinyc\avrdude -CC:\tinyc\avrdude.conf -v -patmega328p -carduino -PCOM15 -b57600 -Uflash:w:Blink1.ino.hex:i -Uflash:w:hi.hex:i -Uflash:r:dump.bin:r
Looked at big dump file, dump.bin and both the avr code and the little 1802 program were there.
Means we don't have to combine files in software. Just assemble 1802.asm into 1802.hex then combine and burn with one avrdude command.
c:\tinyc\avrdude -CC:\tinyc\avrdude.conf -v -patmega328p -carduino -PCOM15 -b57600 -Uflash:w:Blink1.ino.hex:i -Uflash:w:hi.hex:i -Uflash:r:dump.bin:r
Note two files flashed (one normal blink.hex-type file and one assembled 1802.hex file), one big file read back.
Subscribe to:
Post Comments (Atom)
Pi Pico and other Boards
Got a new Pi Pico and it looks very promising. Want to use Oled display with it.
-
The breadboard version of the CDP1802 2 Nano system is starting. And the schematic for the breadboard is below. But only some of the brea...
-
The breadboard version pretty much finished. Want to document where I got to. Here's the screen that shows the bottom nano running an 1...
-
1802 talks to Arduino Mega. If a constant $c4 = nop is output from PORTC of mega to BUS of 1802 it always fetches a nop, just as it did i...

No comments:
Post a Comment