Suppose that the flashloader is for all OS as Windows/Linux/MacOS, does it?
I got strange result when loadbin for specific address with my flashloader on MacOS but it works well on Linux and Windows with JLinkExe of v7.82a
I found from log, the sectors was analyzed differently for the same bin file and the same address to program.
Operating on Linux:
Display All
Operating on MacOS:
Display All
I got strange result when loadbin for specific address with my flashloader on MacOS but it works well on Linux and Windows with JLinkExe of v7.82a
I found from log, the sectors was analyzed differently for the same bin file and the same address to program.
Operating on Linux:
Source Code
- Looking for J-Link GUI Server exe at: /opt/SEGGER/JLink_V782a/JLinkGUIServerExe
- T8672F740 005:137.204 Forking J-Link GUI Server: /opt/SEGGER/JLink_V782a/JLinkGUIServerExe
- T8672F740 005:464.821 Failed to connect to J-Link GUI Server.
- T8672F740 005:464.898 -- CPU speed could not be measured.
- T8672F740 005:464.960 -- Start of comparing flash
- T8672F740 005:464.986 -- Flash algorithm supports a native verify function which is used to compare the flash content.
- T8672F740 005:465.013 -- Comparing range 0x10038000 - 0x1003FFFF (8 Sectors, 32 KB), using verify function of the RAMCode
- T8672F740 005:465.041 -- Recalculating RAMUsage for optimal performance during programming
- T8672F740 005:465.073 --
- T8672F740 005:465.092 -- Recalculating RAMUsage for optimal performance during programming
- T8672F740 005:465.116 --
- T8672F740 005:477.577 -- Data does not match for sectors 56-63
- T8672F740 005:477.660 -- End of comparing flash
- T8672F740 005:477.691 -- Start of erasing sectors
- T8672F740 005:477.722 -- Erasing range 0x10038000 - 0x1003FFFF ( 8 Sectors, 32 KB)
- T8672F740 005:477.750 -- Recalculating RAMUsage for optimal performance during programming
- T8672F740 005:477.776 --
- T8672F740 005:477.795 -- Initializing RAMCode (InitType: 1 = Erase)
- T8672F740 005:477.821 --
- T8672F740 005:477.870 -- Executing UnInit()
- T8672F740 005:477.896 --
- T8672F740 005:480.769 -- Executing Init(1)
- T8672F740 005:480.823 --
- T8672F740 005:835.376 -- End of erasing sectors
- T8672F740 005:835.429 -- Start of flash programming
- T8672F740 005:835.451 -- Programming range 0x10038000 - 0x1003FFFF ( 8 Sectors, 32 KB)
- T8672F740 005:835.472 -- Recalculating RAMUsage for optimal performance during programming
- T8672F740 005:835.483 --
- T8672F740 005:835.507 -- Initializing RAMCode (InitType: 2 = Program)
- T8672F740 005:835.525 --
- T8672F740 005:835.539 -- Executing UnInit()
Operating on MacOS:
Brainfuck Source Code
- T14132C0 001:702.373 Looking for J-Link GUI Server exe at: /Applications/SEGGER/JLink_V780/JLinkGUIServerExe
- T14132C0 001:702.507 Forking J-Link GUI Server: /Applications/SEGGER/JLink_V780/JLinkGUIServerExe
- T14132C0 001:706.161 J-Link GUI Server info: "J-Link GUI server V7.82a "
- T14132C0 001:711.535 -- CPU speed could not be measured.
- T14132C0 001:711.574 -- Start of comparing flash
- T14132C0 001:711.597 -- Flash algorithm supports a native verify function which is used to compare the flash content.
- T14132C0 001:762.182 -- Comparing range 0x10038000 - 0x10038FFF (1 Sector, 4 KB), using verify function of the RAMCode
- T14132C0 001:762.220 -- Recalculating RAMUsage for optimal performance during programming
- T14132C0 001:762.230 --
- T14132C0 001:762.237 -- Recalculating RAMUsage for optimal performance during programming
- T14132C0 001:762.246 --
- T14132C0 001:914.218 -- Data does not match for sector 56
- T14132C0 001:914.283 -- End of comparing flash
- T14132C0 001:914.304 -- Start of erasing sectors
- T14132C0 001:914.325 -- Erasing range 0x10038000 - 0x10038FFF ( 1 Sector, 4 KB)
- T14132C0 001:914.342 -- Recalculating RAMUsage for optimal performance during programming
- T14132C0 001:914.357 --
- T14132C0 001:983.192 -- End of erasing sectors
- T14132C0 001:983.212 -- Start of flash programming
- T14132C0 001:983.224 -- Programming range 0x10038000 - 0x10038FFF ( 1 Sector, 4 KB)
- T14132C0 001:985.594 -- Recalculating RAMUsage for optimal performance during programming
- T14132C0 001:985.609 --
- T14132C0 001:985.617 -- Program page timeout too high. Use default timeout: 10000 [s]
- T14132C0 001:985.628 --
- T14132C0 012:760.814
- ***** Error:
- T14132C0 012:760.997
- PC of target system has unexpected value after programming sector. (PC = 0x00000000)!
- ---------------------------------------------------------------------- Registers -------------------------------------------------------------------------------------
- PC = 00000000
- Current: R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
- R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- T14132C0 012:773.215
- ***** Error:
- T14132C0 012:773.348 Programming failed (error code = -1) for block @ address 0x10038000 (207479589)
- T14132C0 012:773.399 -- End of flash programming
- T14132C0 012:773.464 -- Start of restoring
- T14132C0 012:773.508 -- End of restoring
- T14132C0 012:785.750 Restarting due to program error (possibly skipped erasure of half-way erased sector).