Hello,
Currently I have a TMS470R1VF67 communicating with JTAG using a J-Link. I'd like the option to use J-Flash to program sectors of the chip but I can't get the chip to agree.
I can use JCommander with the 'w' commands to write 8bit or 16bits, ect, but I cannot send bulk data as the process will error out.
Where does Segger get the RAM address of 0x400000? I don't see this reference anywhere else, on any datasheet or anything. My specific TMS470 chip will initialize using TMS470R1B512 settings, which makes sense as it appears very close to what I have.
Log from J-Flash-
Connecting ...
- Connecting via USB to probe/ programmer device 0
- Probe/ Programmer firmware: J-Link V11 compiled Feb 4 2021 12:59:17
- Device "TMS470R1B512 (ALLOW KEYS)" selected.
- Target interface speed: 4000 kHz (Fixed)
- VTarget = 3.322V
- TotalIRLen = 4, IRPrint = 0x01
- JTAG chain detection found 1 devices:
- #0 Id: 0x3100E02F, IRLen: 04, ARM7TDMI Core
- Executing init sequence ...
- Initialized successfully
- Target interface speed: 4000 kHz (Fixed)
- CPU clock frequency: 6880 kHz (Auto detected)
- Found 1 JTAG device. Core ID: 0x3100E02F (None)
- Connected successfully
so a connection is made. If I test up/download speed at 0x400200, size of 0x40000 and 3 readings; I get a successful test. Same thing at address 0x400000.
Log-
Testing speed ...
- Speed tested successfully - Completed after 6.526 sec
but if I try to read any part of the flash, it fails at 0x400200
Failed Log-
Reading target memory (0x00000000 - 0x00003FFF) ...
- Start of preparing flash programming
- ERROR: Verification of RAMCode failed @ address 0x00400200.
Write: 0xC5634D43 C04670BD
Read: 0x00000DA0 84000DA0
- ERROR: Failed to prepare for programming.
Failed to download RAMCode!
- End of preparing flash programming
- Start of restoring
- End of restoring
- ERROR: Failed to read back target memory
Disconnecting ...
- Disconnected
I'm just not sure what this means. Do I have an incorrect RAM address at 0x400000? or is the RAM somehow locked from reading/writing? but it passes the test up/down?
I can use JCommander and savebin to save the flash out of the TMS470. It will dump the entire 0x0-0x7FFFF contents. I would assume RAM starts at 0x80000 but I'm not sure? JTAG will not initialize at this address.
I also tried to initialize JTAG at 0x400200 instead of 0x400000 but it will not work there.
If the chip does have some sort of memory block, is it possible to get around this? Am I completely off base?
Any help is greatly appreciated.
Currently I have a TMS470R1VF67 communicating with JTAG using a J-Link. I'd like the option to use J-Flash to program sectors of the chip but I can't get the chip to agree.
I can use JCommander with the 'w' commands to write 8bit or 16bits, ect, but I cannot send bulk data as the process will error out.
Where does Segger get the RAM address of 0x400000? I don't see this reference anywhere else, on any datasheet or anything. My specific TMS470 chip will initialize using TMS470R1B512 settings, which makes sense as it appears very close to what I have.
Log from J-Flash-
Connecting ...
- Connecting via USB to probe/ programmer device 0
- Probe/ Programmer firmware: J-Link V11 compiled Feb 4 2021 12:59:17
- Device "TMS470R1B512 (ALLOW KEYS)" selected.
- Target interface speed: 4000 kHz (Fixed)
- VTarget = 3.322V
- TotalIRLen = 4, IRPrint = 0x01
- JTAG chain detection found 1 devices:
- #0 Id: 0x3100E02F, IRLen: 04, ARM7TDMI Core
- Executing init sequence ...
- Initialized successfully
- Target interface speed: 4000 kHz (Fixed)
- CPU clock frequency: 6880 kHz (Auto detected)
- Found 1 JTAG device. Core ID: 0x3100E02F (None)
- Connected successfully
so a connection is made. If I test up/download speed at 0x400200, size of 0x40000 and 3 readings; I get a successful test. Same thing at address 0x400000.
Log-
Testing speed ...
- Speed tested successfully - Completed after 6.526 sec
but if I try to read any part of the flash, it fails at 0x400200
Failed Log-
Reading target memory (0x00000000 - 0x00003FFF) ...
- Start of preparing flash programming
- ERROR: Verification of RAMCode failed @ address 0x00400200.
Write: 0xC5634D43 C04670BD
Read: 0x00000DA0 84000DA0
- ERROR: Failed to prepare for programming.
Failed to download RAMCode!
- End of preparing flash programming
- Start of restoring
- End of restoring
- ERROR: Failed to read back target memory
Disconnecting ...
- Disconnected
I'm just not sure what this means. Do I have an incorrect RAM address at 0x400000? or is the RAM somehow locked from reading/writing? but it passes the test up/down?
I can use JCommander and savebin to save the flash out of the TMS470. It will dump the entire 0x0-0x7FFFF contents. I would assume RAM starts at 0x80000 but I'm not sure? JTAG will not initialize at this address.
I also tried to initialize JTAG at 0x400200 instead of 0x400000 but it will not work there.
If the chip does have some sort of memory block, is it possible to get around this? Am I completely off base?
Any help is greatly appreciated.