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.
-
JUst completed Mega 2650 board shield with 1802 on it. Used EasyEDA and sent design to JLPCB. Here's Schematic: and here's the p...
-
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...
-
Wanted system where big arduino program that talks to CDP1802 can be surrounded by 1802 code that can be fed, slowly, into real 1802. Had pr...

No comments:
Post a Comment