When halfkay (teensy4.1) loads a new program, how much flash does it erase?

Status
Not open for further replies.

edsut

Well-known member
Hi,
I have a program that takes up about 64K*3 flash space; but when I burn it into Teensy4.1
using teensy-loader/halfkay, it seems that more than the necessary amount of sectors are erased.
How does halfkay determine what needs to be erased prior to burning in the new image?

I ask because ideally I'd like to be able to update my bootloader but not erase all the other
sectors when doing that. I notice that sectors just above the bootloader are erased, but
then sectors up near the top are not.

Ed
 
Hmmm... just thinking about it, my guess is that everything below the eeprom emulation space
is erased. True?
 
Status
Not open for further replies.
Back
Top