Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - adhome1

#1
Thanks for the help. I found the problem. With the new firmware i added some code. This results in, that my compiler moved the Bootcode (i posted)
to the end of the codemomory at FD03

This can of cause not working.

Thanks for the help.


#2
Hallo,

I do have a P89C668. Normaly I start bootloader with this code:

#pragma asm
MOV AUXR1,#20H ;set the ENBOOT bit
MOV R0,#8 ;FOSC
MOV R1,#06H ;program status byte or boot vector
MOV DPTR,#0000h ;specify status byte
MOV A,#10 ;
CALL 0xFFF0 ;execute the function
#pragma endasm
WDTRST = 0x1E;
WDTRST = 0xE1;   // RESET


After programming with Flashmagic I reset by normal powerunplug.
Today I tried the first time the "execute" function in Flashmagic.
The device did reset after programming. Function working (;

But after that, i can not excecute the bootloader anymore. The device is simple not responding after the code.
Normaly, all ports must go on. But there is nothing. No reset by watchdog.
(After Powerunplug, the normal program is running)

Did the execute function change the bootvector?

If you need additional infos please ask.

(Sorry for my bad english. I'm german)