hello,
the below code first erase memory location and then write some code from external eeprom and then uses goto statement to jump to execute new code. everything is working properly except the goto statement. it return back without executing the code. target pic is pic18f4550. i am using DT_INTS-18 and DT_HID260 for usb. i would really appreciate any help.
Code:
for aa = $69A0 to $6B9F step 64
erasecode aa
next aa
for aa = $69A0 to $6B9F
i2cread sda, SCL, $A1, cc, [w2]
writecode aa, w2
cc = cc + 1
next aa
@goto 0x69A0
my idea is to store firmware in external eeprom and then programming 18f4550 from it, similar to bootloader but using external eeprom
thank you
Bookmarks