ST10 Flash Memory Erasing (or not)

I'm writing a software BSL for an ST10F269 to talk to the ST10 Flasher supplied by ST because I will have no physical access to the board to put the chip into onboard BSL mode. The idea is that I handle the start of the world and then hand over to the ST10 Flasher's (from st.com) monitor program for the rest of normal operation before booting into Flash.

Everything is ok in that the ST10 Flasher tool starts up fine and loads its monitor program, but then if I attempt to erase flash memory (any bank) the processor never acknowledges the request and everything just hangs. Now because the ST10 Flasher Tool loads and its monitor takes over, in theory I'm out of the equation at this point. So I think that this means I must have neglected to set a register to the correct value or missed something similar out of the magical incantation so that the rest of the world is fooled into believing that we are in true BSL mode.

I've set CP, SP, S0CON, S0BG, SYSCON, STKUN, STKOV, not BUSCON but I don't think that is the problem. Any ideas?

Thanks

Reply to
adamroper
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.