One of the things i do love about the xc8 compiler is how easy it is to reserve an area of memory in your code.

const volatile unsigned long serial_number __at(SERIAL_NUMBER_FLASH_LOCATION) = 0;

that is all it takes.

Sign in to participate in the conversation
Board Games Social

Join others in a free (libre!) and user supported social network for board gamers and the games they love.