PDA

View Full Version : ReadCode Writecode erasecode beyond 64k pbp 3.1.3



mavidos
- 2nd October 2023, 07:27
Hello friends
Recently I updated to version 3.15 and the ReadCode and Writecode commands started to accept only word-type variables as memory content,
and no longer accept byte types. Generating a bug in my online firmware update bootloader.I fixed the bug and ok.
I would like to know how I reach addresses above FFFF using readcode and writecode if the parameters of these memory addressing functions
are of the word type. I intend to upgrade my microcontroller to pic18f47k40, currently I use pic18f46k22 (64k flash memory).

thanks

tumbleweed
- 2nd October 2023, 12:24
I tried both v3.1.5 and the latest version (v3.1.6), and readcode/writecode seem to accept both byte or word variables ok for me, so I'm not sure what you're seeing.

If you use a device with >64K code space then enable LONG support ('compile and program options | use compiler long words') and the address parameter will accept LONG addresses (ie '$12345')