Hi everybody!,
I'm new in this forum and using Segger J-Link (i've a J-Link Mini EDU). I have been using J-Link for programming a LPC4337 via SWD without any trouble, using commands in console (connect, h, loadbin, r, g, etc...).
Now, i want to perform a debug with Ozone, but when i "download and reset" (and run the code), inmediately the execution of the program enters in hardfault handler. The same happens in another uC, so i suppose that it's not a particular problem of the chip.
My config:
Device: LPC4337_M4
Peripherals: using "LPC43xx_43Sxx.svd" that i found on a NXP forum
Target interface: SWD
Speed: 4 MHz
File: using .elf file.
Any idea of what is going wrong?
Thanks in advance!
Regards,
Mauro.
Console output (last command Debug.Halt is done by me):
Display All
I'm new in this forum and using Segger J-Link (i've a J-Link Mini EDU). I have been using J-Link for programming a LPC4337 via SWD without any trouble, using commands in console (connect, h, loadbin, r, g, etc...).
Now, i want to perform a debug with Ozone, but when i "download and reset" (and run the code), inmediately the execution of the program enters in hardfault handler. The same happens in another uC, so i suppose that it's not a particular problem of the chip.
My config:
Device: LPC4337_M4
Peripherals: using "LPC43xx_43Sxx.svd" that i found on a NXP forum
Target interface: SWD
Speed: 4 MHz
File: using .elf file.
Any idea of what is going wrong?
Thanks in advance!
Regards,
Mauro.
Console output (last command Debug.Halt is done by me):
Source Code
- Debug.Start();
- Device "LPC4337_M4" selected.
- Found SW-DP with ID 0x2BA01477
- Scanning AP map to find all available APs
- AP[1]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x24770011)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0xE00FF000
- CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
- Found Cortex-M4 r0p1, Little endian.
- FPUnit: 6 code (BP) slots and 2 literal slots
- CoreSight components:
- ROMTbl[0] @ E00FF000
- ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
- ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
- ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
- ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
- ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
- ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
- J-Link: connected to target device
- LPC18xx/43xx reset: Halting CPU before performing reset...
- LPC18xx/43xx reset: Halted CPU before reset.
- Unknown LPC18xx/43xx bootloader variant. Halting after reset may fail.
- Elf.GetBaseAddr();
- Target.SetReg ("SP", 0x464C457F);
- Target.SetReg ("PC", 0x10101);
- J-Link: Flash download: Bank 0 @ 0x1A000000: 1 range affected (32768 bytes)
- J-Link: Flash download: Total time needed: 0.728s (Prepare: 0.059s, Compare: 0.009s, Erase: 0.439s, Program: 0.215s, Verify: 0.000s, Restore: 0.004s)
- Elf.GetBaseAddr();
- Target.SetReg ("SP", 0x464C457F);
- Target.SetReg ("PC", 0x10101);
- Debug.Halt();