I am using a dev kit DK-LM3S815 (http://www.ti.com/lit/ml/spmu148/spmu148.pdf)
Here is the messages during an programming using JLINK:-
Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\TexasInstruments\FlashLM3Sxxx.mac
JLINK command: ProjectFile = C:\start_Debug.jlink, return = 0
JLINK command: device = LM3S815, return = 0
DLL version: V4.20m, compiled Oct 28 2010 09:07:34
Firmware: J-Link Ultra Rev.1 compiled Feb 8 2011 17:39:33
JTAG speed is initially set to: 32 kHz
TotalIRLen = 4, IRPrint = 0x01
Found Cortex-M3 r0p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
Hardware reset with strategy 0 was performed
Initial reset was performed
Found 1 JTAG device, Total IRLen = 4:
#0 Id: 0x2BA00477, IRLen: 4, IRPrint: 0x1 CoreSight JTAG-DP
Turning off watchdog
392 bytes downloaded and verified (0.87 Kbytes/sec)
Loaded debugee: C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\TexasInstruments\FlashLM3SxxxRAM8K.out
Target reset
Downloaded c.out to flash memory.
TotalIRLen = 4, IRPrint = 0x01
Found Cortex-M3 r0p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
Hardware reset with strategy 0 was performed
21260 bytes downloaded into FLASH and verified (9.49 Kbytes/sec)
Loaded debugee: c.out
TotalIRLen = 4, IRPrint = 0x01
Found Cortex-M3 r0p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
Hardware reset with strategy 0 was performed
Target reset
I set the clock to 50Mhz using PLL:-
SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_6MHZ);
When I debug the system will lock up. So when I try to debug again using JLINK the popup message appears
Wrong AHB ID (15:3). Expected 0x04770001 (Mask 0x0FFFFFFF), Found 0x00000000
and the Debug Log within IAR is
Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\TexasInstruments\FlashLM3Sxxx.mac
JLINK command: ProjectFile = start_Debug.jlink, return = 0
JLINK command: device = LM3S815, return = 0
DLL version: V4.20m, compiled Oct 28 2010 09:07:34
Firmware: J-Link Ultra Rev.1 compiled Feb 8 2011 17:39:33
JTAG speed is initially set to: 32 kHz
TotalIRLen = 4, IRPrint = 0x01
Found Cortex-M3 r0p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.
CPU did not halt, trying to disable WDT.
Core did not halt after reset, trying to disable WDT.
CPU did not halt, trying to disable WDT.
Core did not halt after reset, trying to disable WDT.
CPU did not halt, trying to disable WDT.
Fatal error: Wrong AHB ID (15:3). Expected 0x04770001 (Mask 0x0FFFFF0F), Found 0x00000000 Session aborted!
Failed to load flash loader: C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\TexasInstruments\FlashLM3SxxxRAM8K.out
Failed to load flash loader: C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\config\flashloader\TexasInstruments\FlashLM3S8xx.flash
What is causing the problem?
Thanks,
Liam