PLC14500-Nano Loader (user interactive over serial port) #5
Replies: 2 comments 1 reply
-
In case you're wondering about the 3-digit hexadecimal values in front of "I" (input binary program from serial), "L" (load program from EEPROM), and "S" (save program to EEPROM), I added them to prevent accidentally performing these operations by pressing the wrong key. Here's how to remember them:
The 3-digit hexadecimal values in front of "Z" (clear program) specify the method and value to use when clearing the program. I arbitrarily chose the first digit as follows:
Clear program examples: 20FZ results in:
340Z results in:
400Z results in:
which disassembles to:
|
Beta Was this translation helpful? Give feedback.
-
I am also actually in the process of adding an inteactive inteface to the bootloader. Probably because I grew up with a Commodore 64 I went for a classic asm/monitor interface. I like the monitor address/data. Gave me the idea to add something similar, it could show the current address/data in bin/hex and decode the instruction too. Would work as a great aid while stepping through a program. I'll make sure I credit your idea when I get to it. |
Beta Was this translation helpful? Give feedback.
-
I rewrote "bootloader.ino" to be interactive with the user over the serial port. I call it "PLC14500-Nano Loader" (attached below).
This separates the functions of loading the program over serial (into Arduino memory), writing the program to Arduino EEPROM, and writing the program to PLC14500-Nano memory (board RAM), as well as viewing (as hex bytes or as disassembly) and editing the program in Arduino memory, and monitoring program execution.
Primary features:
Enjoy!
PLC14500_Nano_Loader_2023_03_12.zip
Beta Was this translation helpful? Give feedback.
All reactions