AnsweredAssumed Answered

Freescale K60DX256xxx10 FlexNVM/EEPROM partitioning using JLinkGDBServer

Question asked by Nitin Harish on Jun 16, 2016
Latest reply on Jun 16, 2016 by Nitin Harish

Here is my JLINK GDB Server based GDB file running on Linux system :

 

target remote:2331

monitor halt

monitor flash device = MK60DX256xxx10

 

# Reset FSTAT Error Bits

monitor MemU8 0x40020000 = 0x70

 

# Let us go to FCCOB0 register (offset of 0x7) and select PROGRAM PARTITION COMMAND 0x80

monitor MemU8 0x40020007 = 0x80

 

# Let us go to FCCOB5 register (offset of 0xA) and select FLEXNVM_PARTITION COMMAND 0x03, Data Flash = 224 KB

monitor MemU8 0x4002000A = 0x03

 

# Let us go to FCCOB4 register (offset of 0xB) and select EEPROM_DATA_SET_SIZE COMMAND 0x32, EEPROM Backup Size = 32 KB

monitor MemU8 0x4002000B = 0x32

 

# Let us launch command sequence

monitor MemU8 0x40020000 = 0x80

 

# QUESTION: HOW CAN I VERIFY HERE THAT PARTITIONING IS SUCCESSFUL ? ? ?

 

monitor sleep 2000

monitor halt

monitor reset

 

# Load SREC

load og2_prod_1dot7dot2.srec

monitor halt

monitor reset

 

# I try to read back, but these registers which are EEPROM and FLASH partitioning codes are always 0

monitor MemU8 0x4002000A

monitor MemU8 0x4002000B

 

monitor halt

monitor regs

monitor reset

monitor go

 

quit

 

Mark Butcher, Hui Ma, ZhangJennie, igorpadykov, @soledad Thoughts ?

Outcomes