Kinetis write to data flash region from JFlashARM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Kinetis write to data flash region from JFlashARM

1,743件の閲覧回数
frank26080115
Contributor II

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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

926件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee


Hi Frank,

What Kinetis device and which IDE are you using?

Carlos

0 件の賞賛
返信

926件の閲覧回数
frank26080115
Contributor II

I am using Eclipse, GCC 4.7.2, and MK10DX64

0 件の賞賛
返信

926件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Have you tried CodeWarrior? The last version is CW10.6 and you can download it from www.freescale.com/cwmcu10


0 件の賞賛
返信