Programming sections of Flash on F51JM128 and CW 6.3

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming sections of Flash on F51JM128 and CW 6.3

290 Views
NXP Employee
NXP Employee

I'm trying to program a section of internal flash on the MCF51JM128 using CW6.3.  I only want to program the flash from 0xA000 to 0x1FFFF.  But the debugger always wants to mass erase the entire flash array.  I have a boot loader in lower memory, and I want that to remain.

I've tried changing the Debugging Memory Map, but no luck.

Is this possible with CW6.3?

Labels (1)
0 Kudos
4 Replies

12 Views
Specialist III

Hello

 

  In CodeWarrior for MCU V6.x, the flash programmer only has the granularity of the memory blocks listed in the

  Non Volatile Memory Control dialog.

 

  This dialog can be opened selected menu entry Flash in the connection specific menu (CFMultilinkCyclonePro > Flash,

  CFV1 Open Source BDM > Flash, ...)

 

  You cannot erase or program blocks which are smaller than the blocks listed there.

 

CrasyCat

0 Kudos

12 Views
NXP Employee
NXP Employee

Thanks for the quick answer.

But it seems odd that the block size is 128K.  The block size of the JM128 is 0x400 (2K).

See attachment.

 

 

 

0 Kudos

12 Views
Specialist III

Hello

 

I am not talking about the block size here, but about the granularity of the algorithm used to program the flash within CodeWarrior.

 

CrasyCat

0 Kudos

12 Views
NXP Employee
NXP Employee

OK.  But it seems the P&E Multilink has a granularity of 128K for this particular device.

Perhaps the Cyclone Pro is he way to do finer granularity.

0 Kudos