Skip to content

Commit

Permalink
images
Browse files Browse the repository at this point in the history
  • Loading branch information
FlightControl-User committed Oct 16, 2023
1 parent bd93086 commit 274dde2
Show file tree
Hide file tree
Showing 13 changed files with 3,604 additions and 3,609 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,17 @@ The program guides you through the update process for each component in a very u

| | |
| --- | --- |
| Once the CX16 update has verified all the the files, and the VERA.BIN file is accepted, you need to confirm here with typing `Y` on the CX16 keyboard. | ![UPDATE-VERA-CONFIRMATION](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/UPDATE-VERA-CONFIRMATION.jpg) |
| Once the CX16 update has verified all the the files, and the VERA.BIN file is accepted, you need to confirm here with typing `Y` on the CX16 keyboard. | ![VERA-UPDATE-CONFIRMATION](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-CONFIRMATION.jpg) |
| You will be presented with this briefing, that explains the importance of the JP1 jumper pins manual handing during the update process (Picture above). Press SPACE on the CX16 keyboard to continue. | ![VERA-UPDATE-BRIEFING](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-BRIEFING.jpg) |

| The program will then read the VERA.BIN file contents into RAM. | ![VERA-UPDATE-READING](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-READING.jpg) |
| Then you will be asked to place the JP1 jumper cap onto the JP1 jumper pins, thus closing the JP1 jumper pins, in order to instruct VERA to direct its instructions to the SPI IC (instead of the SD card). | ![VERA-UPDATE-READING](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-READING.jpg) |
| Place the JP1 jumper cap, closing the JP1 jumper pins on the VERA board. | ![VERA-JP1-CLOSED](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-JP1-CLOSED.jpg) |
| Before the program updates your VERA firmware, it will compare the contents of the current VERA firmware with the contents of the VERA.BIN, which was read into RAM. | ![VERA-UPDATE-COMPARING](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-COMPARING.jpg) |
| Once all the data has been compared, it will update your firmware if the compare results show differences. | ![VERA-UPDATE-FLASHING](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-FLASHING.jpg) |
| After the program has flashed your new VERA firmware, the program will compare the contents of the new VERA firmware flashed with the RAM contents. The comparison result should be equal. | ![VERA-UPDATE-COMPARING](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-COMPARING.jpg) |
| Once all VERA flashing and verification processes are complete, the program will ask you to remove the JP1 jumper cap from the JP1 jumper pins, thus opening the JP1 jumper pins to instruct VERA to direct its instructions back to the SD card. | ![VERA-UPDATE-JP1-OPEN](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-UPDATE-JP1-OPEN.jpg) |
| Remove the JP1 jumper cap from the JP1 jumper pins on the VERA board. | ![VERA-JP1-OPEN](https://raw.githubusercontent.com/FlightControl-User/x16-flash/main/images/VERA-JP1-OPEN.jpg) |
| When the comparison result is equal, the VERA led whill show a **GREEN** color and the status will show `Flashed`. | |

### 2.2.2 The SMC update process

Expand Down
Binary file removed images/UPDATE-VERA-CONFIRMATION.jpg
Binary file not shown.
Binary file modified images/VERA-UPDATE-BRIEFING.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/VERA-UPDATE-COMPARING.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/VERA-UPDATE-CONFIRMATION.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/VERA-UPDATE-FLASHING.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/VERA-UPDATE-JP1-OPEN.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/VERA-UPDATE-READING.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 6 additions & 14 deletions src/cx16-update.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ void main() {

// Block all interrupts to prevent a changed ROM bank to make an interrupt go wrong.
SEI();
bank_set_brom(0);

// Detecting ROM chips
rom_detect();
Expand Down Expand Up @@ -367,21 +368,19 @@ void main() {
}
}

CLI();

#endif
#endif

#ifdef __VERA_CHIP_PROCESS
#ifdef __VERA_CHIP_CHECK


// Here we allow for interrupts for the VERA check process.
bank_set_brom(4);
CLI();
CLI();
display_progress_clear();
main_vera_check();
bank_set_brom(0);
SEI();
bank_set_brom(0);

#endif
#endif
Expand Down Expand Up @@ -446,9 +445,6 @@ void main() {
}
}

bank_set_brom(4);
CLI();

#endif
#endif

Expand Down Expand Up @@ -498,6 +494,7 @@ void main() {
display_info_smc(STATUS_SKIP, "SMC.BIN and SMC equal.");
}


// VA6 | no SMC.BIN and no CX16 ROM.BIN


Expand All @@ -519,22 +516,17 @@ void main() {
}
}

bank_set_bram(0);
SEI();

#ifdef __VERA_CHIP_PROCESS
#ifdef __VERA_CHIP_FLASH

// Here we allow for interrupts for the VERA flash process.
bank_set_brom(4);
CLI();

if(check_status_vera(STATUS_FLASH)) {
display_progress_text(display_jp1_spi_vera_text, display_jp1_spi_vera_count);
util_wait_space();
main_vera_flash();
}


SEI();
bank_set_brom(0);

Expand Down
1 change: 1 addition & 0 deletions src/cx16-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ unsigned char util_wait_key(unsigned char* info_text, unsigned char* filter) {
unsigned char brom = bank_get_brom();
bank_set_bram(0);
bank_set_brom(4);
CLI();

while (true) {
ch = kbhit();
Expand Down
Binary file modified target/src/CX16-UPDATE.PRG
Binary file not shown.
Loading

0 comments on commit 274dde2

Please sign in to comment.