Skip to content
Permalink
Browse files

Add support mx29lv series flash

  • Loading branch information
zephray committed Feb 3, 2018
1 parent f560c36 commit 4357c3f88ee26c38720da652eed05de704f172fd
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/GB_Cart_Flasher_FW.c
@@ -1,6 +1,7 @@
/* GB Cart Reader Microcontroller Firmware
* Copyright (C) 2005–2007 Kraku & Chroost (gbflasher@interia.pl)
* Copyright (C) 2015 Tauwasser (tauwasser@tauwasser.eu)
* Copyright (C) 2018 Wenting (zephray@outlook.com)
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0
* International License.
@@ -43,7 +44,7 @@ const uint8_t BYTE_PROGRAM[] PROGMEM = {
0x55, 0x55, 0xaa, 0x2a, 0xaa, 0x55, 0x55, 0x55, 0xa0,

/** ALG12 */
0x05, 0x55, 0xaa, 0x02, 0xaa, 0x55, 0x05, 0x55, 0xa0
0x0a, 0xaa, 0xaa, 0x05, 0x55, 0x55, 0x0a, 0xaa, 0xa0

};

@@ -57,7 +58,7 @@ const uint8_t CHIP_ERASE[] PROGMEM = {
0x55, 0x55, 0xaa, 0x2a, 0xaa, 0x55, 0x55, 0x55, 0x80, 0x55, 0x55, 0xaa, 0x2a, 0xaa, 0x55, 0x55, 0x55, 0x10,

/** ALG12 */
0x05, 0x55, 0xaa, 0x02, 0xaa, 0x55, 0x05, 0x55, 0x80, 0x05, 0x55, 0xaa, 0x02, 0xaa, 0x55, 0x05, 0x55, 0x10
0x0a, 0xaa, 0xaa, 0x05, 0x55, 0x55, 0x0a, 0xaa, 0x80, 0x0a, 0xaa, 0xaa, 0x05, 0x55, 0x55, 0x0a, 0xaa, 0x10

};

@@ -71,7 +72,7 @@ const uint8_t PRODUCT_ID_ENTRY[] PROGMEM = {
0x55, 0x55, 0xaa, 0x2a, 0xaa, 0x55, 0x55, 0x55, 0x90,

/** ALG12 */
0x05, 0x55, 0xaa, 0x02, 0xaa, 0x55, 0x05, 0x55, 0x90
0x0a, 0xaa, 0xaa, 0x05, 0x55, 0x55, 0x0a, 0xaa, 0x90

};

@@ -85,7 +86,7 @@ const uint8_t PRODUCT_ID_EXIT[] PROGMEM = {
0x55, 0x55, 0xaa, 0x2a, 0xaa, 0x55, 0x55, 0x55, 0xf0,

/** ALG12 */
0x05, 0x55, 0xaa, 0x02, 0xaa, 0x55, 0x05, 0x55, 0xf0
0x0a, 0xaa, 0xaa, 0x05, 0x55, 0x55, 0x0a, 0xaa, 0xf0

};

@@ -1617,8 +1618,8 @@ void send_status(void)
WAIT_LOOP(220u, i);

packet.info_ans.flash_manufacturer = read_rom_data(0x0000u, 0x00u, 0x00u);
packet.info_ans.flash_device_id = read_rom_data(0x0001u, 0x00u, 0x00u);
packet.info_ans.flash_sector_group_protect = read_rom_data(0x0002u, 0x00u, 0x00u);
packet.info_ans.flash_device_id = read_rom_data(0x0002u, 0x00u, 0x00u);
packet.info_ans.flash_sector_group_protect = read_rom_data(0x0004u, 0x00u, 0x00u);

exit_product_id_mode();

0 comments on commit 4357c3f

Please sign in to comment.