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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
I think you should be using PFMReadand PFWrite -these are block read/writes and should work for you.
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 :-)
Re the Progmem/Pfmwrite. i can look tomorrow.
I emailed you in response to your last email, today.
ok, thanks.
Btw, i respond to your email and wait for your answer :-)
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
Resolved in next release of GCSTUDIO.