With respect to the MPC5510 Microcontroller Family is it feasible to erase any single Flash core block (i.e. any single Flash core block within the ranges L0..L9, M0, M1, and H1..H7)?

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

With respect to the MPC5510 Microcontroller Family is it feasible to erase any single Flash core block (i.e. any single Flash core block within the ranges L0..L9, M0, M1, and H1..H7)?

Jump to solution
637 Views
rogersaunders
Contributor I

The MPC5510 Microcontroller Family Reference Manual
MPC5510RM, Rev.3, 07/2014 Chapter 22 Flash Array and Control tables 22-8 – LMS
Field Descriptions, 22-9 – HBS Field Descriptions, and section 22.5.5 – Flash
Erase gives the impression  contiguous Flash core blocks always starting
from block 0 are erased.

 

For example, if I desire to erase low-address space block L3
do I simply:

    Select block L3 for erase

    Low-/Mid-Address Space Block Select
Register (LMS) LSEL[0:9] bits 0b0000000100, and

    Unlock block L3

    Set Low-/Mid-Address Space Block Locking
Register (LML) LLOCK[9:0] bits 0b1111111011 ?

Labels (1)
0 Kudos
1 Solution
520 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is possible, I don’t see anything that would speak against this.

Manual only says “If multiple blocks are selected for erase during an erase sequence, the blocks are erased sequentially starting with the lowest numbered block and terminating with the highest.”

But it does not say this space must be contiguous.

View solution in original post

0 Kudos
2 Replies
521 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is possible, I don’t see anything that would speak against this.

Manual only says “If multiple blocks are selected for erase during an erase sequence, the blocks are erased sequentially starting with the lowest numbered block and terminating with the highest.”

But it does not say this space must be contiguous.

0 Kudos
520 Views
rogersaunders
Contributor I

Thank you David.

Agreed, it possible to erase and single Flash core block.

The following link provides an example of how to erase a block from Low-Address space: https://community.freescale.com/thread/307346

0 Kudos