Hi,

Is it possible to make linker skip a part of code memory?

I'd like to use a segment of flash in the middle the whole flash for data.

Ex. flash segments are 2k. I'd like to prevent linker putting code in a
segment after 0x8000.

I tried this:

__code __at (0x8000) uint8_t flash_reserved1[2048]={ 0xAA,0x55 ... }

but is doesn't initialize the variable at that location.

Cheers,
Peter

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to