Hello everyone,
I’m using Segger J-Link v8.30 and an NXP RT1xxx MCU that boots from external QSPI-NOR flash mapped, for example, at 0x3000 0000. Although the NOR flash supports 4 KiB sector erases at the hardware level, J-Link Commander (and the GDB Server) currently always performs erases in 64 KiB blocks. When I write the FW into the flash I need to preserve 512 bytes at 0x3000 0400–0x3000 05FF, which contain data that must survive every download.
Key details:
How can I achieve this with J-Link software?
Thank you!
I’m using Segger J-Link v8.30 and an NXP RT1xxx MCU that boots from external QSPI-NOR flash mapped, for example, at 0x3000 0000. Although the NOR flash supports 4 KiB sector erases at the hardware level, J-Link Commander (and the GDB Server) currently always performs erases in 64 KiB blocks. When I write the FW into the flash I need to preserve 512 bytes at 0x3000 0400–0x3000 05FF, which contain data that must survive every download.
Key details:
- Hardware sector erase size: 4 KiB
- J-Link software erase granularity: 64 KiB
- Regions to rewrite:
- 0x3000 0000–0x3000 03FF
- 0x3000 0600–0x300x xxxx
- 0x3000 0000–0x3000 03FF
- Region to preserve: 0x3000 0400–0x3000 05FF
How can I achieve this with J-Link software?
Thank you!