What's the definition of a "Block"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What's the definition of a "Block"

Jump to solution
769 Views
roy_vanlierop
Contributor III

I cannot seem to figure out what's the definition of a "block" when reading through the S32K Reference Manual. 

The Datasheet (page 43) mentions block sizes of 64KB or 512KB for the S32K146 microcontroller. Where can I find which addresses fall under these blocks? 

From what I can fathom is that it's larger then a sector (4KB for interleaved flash) and smaller then the whole memory area as there are multiple blocks. 

My application has a small bootloader at the beginning which I'd like to protect with FPROT3[PROT0] = 0. The remainder of PFlash should be erased by calling erase_sector about a hundred times or using the mythical "block" erase method. 

roy_vanlierop_0-1621434647972.png

 

0 Kudos
Reply
1 Solution
760 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @roy_vanlierop,

Block is a read partition.

The S32K146 has 2 PFlash blocks (512KB each) and 1 DFlash block (64KB).

1st PFlash block 0x00000 - 0x7FFFF

2nd PFlash block 0x80000 - 0xFFFFF.

S32K1xx RM rev.13, Section 36.1.2.5 1 MB program flash / 64 KB FlexNVM / 4 KB FlexRAM module (S32K146).

 

Regards,

Daniel

 

View solution in original post

1 Reply
761 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @roy_vanlierop,

Block is a read partition.

The S32K146 has 2 PFlash blocks (512KB each) and 1 DFlash block (64KB).

1st PFlash block 0x00000 - 0x7FFFF

2nd PFlash block 0x80000 - 0xFFFFF.

S32K1xx RM rev.13, Section 36.1.2.5 1 MB program flash / 64 KB FlexNVM / 4 KB FlexRAM module (S32K146).

 

Regards,

Daniel