« Return to Thread: Bug in GPUTILS ? Write to EEPROM for P18F2580

Bug in GPUTILS ? Write to EEPROM for P18F2580

by vaclavpe :: Rate this Message:

Reply to Author | View in Thread

Hello,

I found strange problem. In ASM I have following:

; ; Starting pCode block for absolute Ival
S_main__EE_prog code 0XF0007B
_EE_prog:
        DB 0x50, 0x72, 0x6f, 0x67, ... etc...

But in LST (and on HEX as well) I have problem:

f00078   006e     dw 0x6e  ;unknown opcode
                                           
                                           ; ; Starting pCode block for absolute Ival
                                           S_main__EE_prog code 0XF0007B
                                           _EE_prog:
f0007a   7250     btg 0x50, 0x1, 0         DB 0x50, 0x72, 0x6f, 0x67, ... etc ...

I must say that I don't want code of 0x7B to be put onto 0x7A. Is there something bad in GPASM or is there a workaround for this problem ?

If I move _EE_prog to 0x7A - I get following message: "error: multiple sections using address 0xf0007a"

I initialize data EEPROM directly in SDCC.

Thank you in advance,
Vaclav



---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...

 « Return to Thread: Bug in GPUTILS ? Write to EEPROM for P18F2580