...
Warning |
---|
Warning: if you don’t own a JTAG, we recommend removing all peripherals from your MEGA65 and to use only the internal SD card slot, as a precaution to any interference while flashing. |
First read the whole procedure! If you have questions, contact us on discord.
1. Copy the COR file from your PC to the SD card
...
The above images show the screens you get from your Release 0.95 factory core MEGAFLASH. Note that the “MEGAFLASH/Core hash” and the “Slot 0 Version” show the same hash (93d55f0, first 7 characters). This may be different if you have some other factory core.
3. Flash the release
...
core file into slot 1
The next step is to flash the core we copied in step 1 into our core slot 1 using the old MEGAFLASH. You initiate this by pressing CTRL-1
. In the file selector you choose the one core we put on the SD card (if you have more then one core, you need to pick the right one – if not sure, try to rename the core on the SD card to something 8.3 UPPERCASE).
Attention: Don’t restart yet, you need to stay in MEGAFLASH for step 4!
...
4. Start MEGAFLASH of the newly flashed core
Now we want to start the new MEGAFLASH that is within the core we just flashed to slot 1. To archive this we need a little trick and we need to be fast! With While still in MEGAFLASH, we start slot 1 with a press of 1
we can start slot 1. But then we would be in BASIC65… not if we are fast! We need to press 1
and then directly hold down NO SCROLL
!
...
After this we should be greeted by the new MEGAFLASH! You can see that it is the new one because the left space is smaller (2 instead of 4 – see old pictures above) and you can again check HELP
. You can find the hash of the core file you are using in the filename of the core and the release archive.
...
6. Start flashing slot 0
Now we can flash slot 0. But we can’t press Ctrl-0
to do that, we need to press MEGA-COMMA
instead.
...
As you can see from the menu, the next key we need to press is F8
to flash the core we just selected. The core file is first loaded into attic ram, and then the CRC32 checksum is calculated. If this succeeds, the progress turns green and flashing starts. Then first all sectors are erased that would hinder the start of slot 1 for recovery (if flashing is interrupted).
...
.
...
Note: you can interrupt the loading and the checksum calculation by pressing STOP
, but as soon as flashing begins, there is no way back! Don’t interrupt the actual flashing in any way!
...
Info |
---|
Extra background: Recovery to slot one works be removing all the sync words from the flash, so the FPGA will continue searching for one until it hits slot 1. The core in slot 0 has integrated a list of such sectors, which is used to erase those first. For release 0.95 core there is a build in list in MEGAFLASH, release 0.9 does not need one. |
Note |
---|
Warning: if you interrupt slot 0 flashing before those first (few) sectors are erased, then slot 1 recovery will fail. So make sure to not interrupt power nor touch the device while flashing!We also recommend to remove all peripherals. |
...