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
Hi Frank,
What Kinetis device and which IDE are you using?
Carlos
I am using Eclipse, GCC 4.7.2, and MK10DX64
Have you tried CodeWarrior? The last version is CW10.6 and you can download it from www.freescale.com/cwmcu10