Some Kinetis chips have separate program flash and data flash regions. I made my linker script and code to store some stuff in the data 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.
Thanks
edit:
I have tried editing my .jflash file
Display All
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"
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.
Thanks
edit:
I have tried editing my .jflash file
Source Code
- [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"
The post was edited 2 times, last by frank26080115 ().