Not good solution at all. Because you need to erase FLASH before writing.
That code need to be in bootloader, as I explained in few post above.
GOTO need to be placed in while assembling, not at runtime.
EDIT:
Try this in bootloader
Code:DEFINE RESET_ORG 80h @ ORG 0 @ GOTO 80h @ ORG 8 @ GOTO 3008h @ ORG 4 @ GOTO 3004h
Bookmarks