I'm using Keil uVision; I tried to put code into a certain page of flash:
const MODBUS_REG flashreg __attribute__ ((aligned (128)))
// __attribute__ ((section(IROM2)))
I was trying to set up a section "IROM2" to make sure Keil doesn't put anything else in the last page.
But I can't seem to make an IROM2 and have it deal with "IROM2"...