I got native flash programming to work. It’s not super fast,. but it’s faster than the Arduino. And less complicated—errr it has the potential to be less complicated. Right now I have to manually copy the 0x0000-0x4000 to 0x8000 and then swap that bank into 0x0000. This means that the program is now running out of RAM instead of flash. And I need that if I want to be able to program or erase the flash.
It’s also a manual input as to whether the intel hex module should program flash or write RAM. But really, I should be able to use the address to lookup the bank registers and use that.
So I have some tweaking to do.
I’m not sure I want to disconnect my Arduino quite yet. I do want the real estate to mount the SD card socket–but that’s for future fun stuff.
I also tried to up the baud rate to 19200, but that didn’t work. I’m a bit puzzled. 9600 baud is a character per ms. 19200 is 2 per ms. Can I really not get at the UART in time? Something is strange. If I can figure that out, maybe I can speed up communication.
Anyway, off to improve my menu system before I do too much more. Make it more useful and less cumbersome to use.
Then, I guess it’s finally time to start getting the 1ms tick CPLD hooked up and the timers working. Then I just need a crt1 that I’ll use for applications that use 4000-7fff in flash and 8000-bfff in RAM but that use C library functions in 0100-3fff.