Page 1 of 1

Undeclared FLASH_Erase_write_64 problem

Posted: 27 Dec 2023 06:19
by kumar123
Hi,
I am working on a bootloader code for pic micro-controller. I am using pic18f67k40 uC. In this code when I write FLASH_Erase_write_64 function in my code, and I am trying to compile it but it is giving an error.
13 324 Undeclared identifier 'FLASH_Erase_Write_64' in expression code_test.c
Even I have already included flash library.
flash.png
flash.png (168.24 KiB) Viewed 312 times
Regards,
Kumar

Re: Undeclared FLASH_Erase_write_64 problem

Posted: 27 Dec 2023 08:43
by IvanJeremic
Hi,

Unfortunately Flash_Erase_Write_64 is not supported for the MCU that you are using, the only Flash functions that are supported are Flash_Erase, Flash_Read and Flash_Write.

You can see in the Library Manager on the right which functions are supported.

If you change the MCU to PIC18F8520 for example you will see Flash_Erase_Write_64 in the Library Manager.

Regards,

Ivan.