How many Sectors are there in PN 7462 Flash memory?

cancel
Showing results for 
Search instead for 
Did you mean: 

How many Sectors are there in PN 7462 Flash memory?

Jump to solution
260 Views
amolborase
Contributor II

Hi,

We need to know that how many sectors are there in Flash memory of PN 7462 and how to erase flash memory as there is no erase API has given.

In case of GUI tool in MCUxpresso, Erase option is there but we are not getting that

1. How many sectors will be erased at a time?

2. If want to erase particular sector, how it can be erased?

 

Regards,

Amol

 

 

 

 

0 Kudos
1 Solution
136 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @amolborase,

The dwFormatPattern is the data that you want to load to the memory. In this case, if you want to erase it, you could try using 0xFFFFFFFF.

As mention in section 8.2.1 in the datasheet, each page has 64 bytes and each sector is 80 KB depth.

Best Regards,

Alexis Andalon

View solution in original post

0 Kudos
8 Replies
191 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @amolborase,

Sorry for the late reply. 

1. How many sectors will be erased at a time?

All the sectors will be erased

2. If want to erase a particular sector, how it can be erased?

If you want to erase a particular sector from the flash in software, you could call the following API:

Alexis_A_0-1616782764705.png

You can found it in the PN7462AU/phHAL/phhalFlash.

Only be careful to not erase a sector in the application.

Best Regards,

Alexis Andalon

176 Views
amolborase
Contributor II

Hello Alexis,

Thanks for reply,

 phhalFlash_FormatRegion( uint8_t *pbFlash, uint32_t dwBytesToWrite, uint32_t dwFormatPattern );

In the above mentioned API , still not clear about dwFormatPattern.

Can you provide some more information regarding that parameter and how can it be used to erase sectors?

We understand about PN7462 flash memory as :

1 page - 128 Bytes

As per document of PN7462, No. of pages - 0 to 1263 ( total - 1264) 

During project compilation we observed that one sector is of 2 K Bytes (2048 Bytes) 

2048/128 = 16 pages in single sector

If there is anything wrong with above understanding please correct us , so that we can move further.

 

Thanks & regards

Amol

0 Kudos
137 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @amolborase,

The dwFormatPattern is the data that you want to load to the memory. In this case, if you want to erase it, you could try using 0xFFFFFFFF.

As mention in section 8.2.1 in the datasheet, each page has 64 bytes and each sector is 80 KB depth.

Best Regards,

Alexis Andalon

View solution in original post

0 Kudos
125 Views
amolborase
Contributor II

Thank you Alexis,

You are right that in datasheet  each page is about 64 bytes, but in the flash section of SDK example 128  bytes are mentioned.

Another question, want to ask that how can we implement UART in PN7462 using polling as we are implementing Bootloader for the same. We are also referred AN10995 Application note and try to redirect Interrupt vectors, but always giving Hard fault error. 

We really appreciate your help. Kindly help in this regards.

Thank you & Regards, 

Amol 

0 Kudos
97 Views
amolborase
Contributor II

Is there in updates.......We are waiting for your reply.

Regards,

Amol

0 Kudos
78 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @Alexis_A,

Please check the following user manual, https://www.nxp.com/docs/en/user-guide/UM10957.pdf  this example is available in the NFC reader library. Please check in the document the section for Non-export controlled version since it is the public section,  there is a serial communication used please check this.

Best Regards,

Alexis Andalon

0 Kudos
62 Views
amolborase
Contributor II

Hello Alexis,

We already implemented HSU using interrupt method successfully and also go through PN7462AU Door Access User Manual. But in that example  code is related to transmit only and without interrupt we are able to send data, but in case of receive (in this example they are not using receive) it is using a HIF IRQ handler not a polling method . 

 

Regards,

Amol 

0 Kudos
244 Views
amolborase
Contributor II

Hello Dear NXP Support Team,

We are still waiting for information

 

0 Kudos