ReadCode Writecode erasecode beyond 64k pbp 3.1.3


+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2023
    Posts
    1

    Default ReadCode Writecode erasecode beyond 64k pbp 3.1.3

    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

  2. #2
    Join Date
    Aug 2011
    Posts
    412


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: ReadCode Writecode erasecode beyond 64k pbp 3.1.3

    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')

Similar Threads

  1. Writecode/Erasecode/Readcode
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th May 2012, 21:29
  2. Erasecode,Writecode,Readcode - again
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 4th May 2012, 23:10
  3. READCODE and WRITECODE for a PIC16F727
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th June 2010, 03:57
  4. WRITECODE, ERASECODE, and interrupts
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th March 2010, 02:46
  5. Readcode,writecode,erasecode In 18f Devices
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th March 2007, 17:55

Members who have read this thread : 10

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts