area-8051 / uni-STC

SDCC support + HAL + drivers for STC 8051 MCU
23 stars 4 forks source link

STC15W101 - isp bit to execute code in eeprom #2

Closed mightymos closed 1 year ago

mightymos commented 1 year ago

I finally realized if I wrote in assembly I could mix in linker instructions to reposition function addresses. But unfortunately I could not make code execute in eeprom space.

I will just close this issue but wanted to post the work in case an error is spotted: https://gist.github.com/mightymos/f6ed05ac96b2b26f1a4394df43f241e8

But my conclusion for now is setting ISP bit only executes bootloader rom.

mightymos commented 1 year ago

Experiments documented here: https://github.com/mightymos/stc15bootisp