Menu

RESOLVED: Compiler Error when use programerase with PIC 18F47Q10

ikonsgr74
2024-07-23
2024-07-24
  • ikonsgr74

    ikonsgr74 - 2024-07-23

    I tried to use flash memory program commands, programwrite and programread seemed to compile ok, but with programerase i get the following errors:
    system.h ** (5128): Error: Incorrect parameters in Set, expected: Set variable.bit status (System Include)
    system.h ** (5148): Error: Incorrect parameters in Set, expected: Set variable.bit status (System Include)
    Compiler version: 2024.6.29 (Windows 64 bit) : Build 1393

     

    Last edit: ikonsgr74 2024-07-23
  • Anobium

    Anobium - 2024-07-23

    I think you should be using PFMReadand PFWrite -these are block read/writes and should work for you.

     
  • ikonsgr74

    ikonsgr74 - 2024-07-23

    Well,i tried pfmwrite, but it doesn't actually write anything in flash memory, probably it needs to use the erase command first?
    Btw, Evan i'm waiting for an answer regarding the "safety guard" i proposed you, in bootloader code of PIC18F47Q10 :-)

     
  • Anobium

    Anobium - 2024-07-23

    Re the Progmem/Pfmwrite. i can look tomorrow.

    I emailed you in response to your last email, today.

     
  • ikonsgr74

    ikonsgr74 - 2024-07-23

    ok, thanks.
    Btw, i respond to your email and wait for your answer :-)

     
  • Anobium

    Anobium - 2024-07-24

    The method _PFMwriteBlock() in your system.h needs to be updated.

    The method should work in the release version of GCSTUDIO. system.h has been updated to support 18fxxQ10 type chips.

    This new method tests for the bit SECER ( this is NVMCON1.SECER) and then sets the BIT to enable the block read/write/erase then block write.

    I cannot test.

    Evan

    EDITED to explain in the next release of GCSTUDIO.

     

    Last edit: Anobium 2024-07-24
  • Anobium

    Anobium - 2024-07-24

    Resolved in next release of GCSTUDIO.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.