PIC24 Write Flash Question

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Bluedog01
Posts: 25
Joined: 16 Dec 2019 05:59

PIC24 Write Flash Question

#1 Post by Bluedog01 » 25 May 2022 22:23

Hi,

I am wanting to use flash on P24EP512GU810 for nv data storage.

I am looking through example code for writing / reading flash and have a question about the following:

// --- erase the block first
FLASH_Erase(0x006400);

// --- now for some non-compact flash-write
FLASH_Write(0x006500, WriteWordArr);

How was the location 0x006400 determined. If mcu was changed to P24EP256GU810 ( with less program flash memory ) would the location 0x006400 need to change also?

Andy

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC24 Write Flash Question

#2 Post by filip » 27 May 2022 08:51

Hi,

You should consult the MCUs datasheet of Flash memory range and addresses.

Regards,
Filip.

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”