FlightControl-User / x16-flash

Contains the source code of the commander x16 rom flashing utility
GNU General Public License v3.0
4 stars 2 forks source link

Validate size limits of rom chips based on device id #10

Closed FlightControl-User closed 1 year ago

FlightControl-User commented 1 year ago

010A has 128K 020 has 256K 040 has 512K

Each chip is virtually in a 512K slot, but due to the address bus limitations of the 010A and the 020, these chips will see a mirrored effect of their memory spread out of the different banks.

The flasher needs a limit check, so that rom.bin files cannot be flashed with a size greater than the chipset capacity.

FlightControl-User commented 1 year ago

The chip device id determines the available size on the chip. The input rom file will only be read till the available capacity of the chip. If the file is larger, the remainder of the file will be skipped.