I see that the new Teensy 4.0 has 2 M of flash memory, but the system RAM is 1 M, and I'm never likely to have my program grow that large. Can I use a portion of the flash memory to store information that is needed by the program? I don't need a real file system, just a way to store and retrieve up to a megabyte of configuration information. This data would be updated infrequently, and typically just read once at power up or when requested by the system's user.

Any code sample for doing this would be appreciated, as I'm fairly new with Arduino and Teensy.

Thanks!