alexh wrote:
Ah, it looks like Tinybootloader *might* be compatible with the MiniMig's 18F252 PIC although the exact part number confuses me.
I was under the impression that PIC's required extra programming voltages!?
Edit:
AFAIK the PIC serial port pins are not wired up to anything on the MiniMig v1.1 PCB board this makes TinyBootloader not much use as it is :-(
How do you mean, useless ? Tinybootloader (or any boot loader for that fact) sits on the Pic, and when you first power up the device, listens for Serial port activity for approximately 1 second before booting the main firmware.
[edit] That bootloader you linked, *IS* the bootloader I am using in my minimig 1.1
Its during this 1 second window, you can send a new firmware to the Pic. The Pic used in the minimig 1.1, has "Self Programming" capability, from the serial port.
Remember, the Pic's Serial port *IS* used (shared) with the minimig Serial via a Jumper.
It would have to be modified to take it's files from the SD card. And then how do you tell the PIC you want to upgrade?
The Pic's boot window. If it detects serial activity during the "Window" it loads the Tiny loader, receives the new firmware, Pic flashes itself, and reboots.
It is a shame that the serial pins were not wired to the FPGA then with a special FPGA image they could have been routed to the serial port. It still might be possible with a hot-mod to the "spare I/O" pins.
Well, you cannot wire it to the FPGA, *AND* the serial port at the same time. One or the other. at least with Dennis's design.
http://ww1.microchip.com/downloads/en/DeviceDoc/39564c.pdfGo have a read, especially the section titled "Special features: Self programming via software control", Section 19.8: Low Voltage In circuit Serial programming (ICSP).
Then go check out the Schematics of minimig 1.1, and look at the PIC signal names (Pins 17 and 18) which are the pic's Serial TX/RX. You will find that they are connected to the Jumper, which selects either PIC or FPGA to gain access to the serial controller (Max232).
Trust me, it works. I has someone with a Pic burner who put the boot loader on to the pic (Which is the ONLY time yo uneed the Programmer), then I put the pic into the minimig and downloaded the firmware via serial.