AnsweredAssumed Answered

Kinetis write to data flash region from JFlashARM

Question asked by Frank Zhao on Apr 3, 2014
Latest reply on Apr 9, 2014 by Carlos_Musich

This is probably not the best place for this question, I already asked the question to Segger's forum ( J-Flash, flashing Freescale Kinetis data flash region - J-Link/Flasher related - SEGGER Forum )and I am awaiting their reply.

 

I made my linker script and code to store some stuff in the data flash region (not program flash region). The resulting ihex contains data for both regions in one file. When I attempt to use JFlashARM to write the ihex, it gives me an error "ERROR: Program (0x10000000 - 0x10001E5B) does not fit into selected flash sectors."

 

How can I force JFlashARM into writing this second region? Do I need a second custom jflash file with a custom flash address definition? Ideally I would like to write both regions in one step.

 

I have tried editing my .jflash file

 

[FLASH]
  NumBanks = 2
[FLASH0]
  aSectorSel[96] = 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
  AutoDetect = 0
  BankName = ""
  BankSelMode = 1
  BaseAddr = 0x00000000
  CheckId = 0
  CustomRAMCode = ""
  DeviceName = "MK10DX64xxx Program Flash"
  EndBank = 95
  OrgNumBits = 32
  OrgNumChips = 1
  StartBank = 0
  UseCustomRAMCode = 0
[FLASH1]
  aSectorSel[32] = 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
  AutoDetect = 0
  BankName = ""
  BankSelMode = 1
  BaseAddr = 0x10000000
  CheckId = 0
  CustomRAMCode = ""
  DeviceName = "Data Flash"
  EndBank = 31
  OrgNumBits = 32
  OrgNumChips = 1
  StartBank = 0
  UseCustomRAMCode = 0

 

but that gave me a error "Read CFI info: unsupported flash type / bus width (10113200), please contact info@segger.com Failed to read CFI info Failed to connect Could not auto program target, not connected"

 

Thanks

Outcomes