mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-29 10:59:02 +00:00
Fix on-device flash utility hanging on HackRF Pro (Praline) (#3073)
* Add support for W25Q32JV device ID in wait_for_device function * Enhance mayhem_flasher.bat: Add DFU unbrick option and update firmware links
This commit is contained in:
@@ -77,7 +77,8 @@ void wait_for_device() {
|
||||
do {
|
||||
device_id = get_device_id();
|
||||
} while (device_id != W25Q80BV_DEVICE_ID_RES &&
|
||||
device_id != W25Q16DV_DEVICE_ID_RES);
|
||||
device_id != W25Q16DV_DEVICE_ID_RES &&
|
||||
device_id != W25Q32JV_DEVICE_ID_RES);
|
||||
}
|
||||
|
||||
void wait_not_busy() {
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
|
||||
#define W25Q80BV_DEVICE_ID_RES 0x13 /* Expected device_id for W25Q80BV */
|
||||
#define W25Q16DV_DEVICE_ID_RES 0x14 /* Expected device_id for W25Q16DV */
|
||||
#define W25Q32JV_DEVICE_ID_RES 0x15 /* Expected device_id for W25Q32JV (Praline) */
|
||||
|
||||
#define SSP_CR1(port) MMIO32(port + 0x004)
|
||||
#define PERIPH_BASE_APB0 0x40080000
|
||||
|
||||
Reference in New Issue
Block a user