This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error while debugging using jtag debugger

#include "LPC8xx.h"                     // Device header
#include "lpc_types.h"
int main()
{
 
 LPC_SYSCON->PDRUNCFG      |=0x0000ed12;//power on irc
 LPC_SYSCON->MAINCLKSEL    &=0xfffffffc;//main clk slt
 //update clock
 LPC_SYSCON->MAINCLKUEN    &=0xffffffe;
 LPC_SYSCON->MAINCLKUEN    |=0x0000001;
 LPC_SYSCON->SYSAHBCLKDIV  &=0xfffff01;// sys clk divider
 //system clk control for gpio_6
 LPC_SYSCON->SYSAHBCLKCTRL &=0xfff0000;
 LPC_SYSCON->SYSAHBCLKCTRL +=0x80;
 SysTick->LOAD =0x5b8d7f;//systick reload value
 SysTick->VAL=0x0;//clear systick counter value
 //systick timer control
 SysTick->CTRL &=0x11111118;
 SysTick->CTRL+=0x1;
 LPC_GPIO_PORT->DIR0|=0x00004000;//pin14 as output
 while(1){
 while(SysTick->CTRL&0x00010000){
 //toggle pin_17
 LPC_GPIO_PORT->NOT0 =(1<<14);
 }
}
 
 
  
}
i wrote above code for led blinking and tried to debug using jtag debugger but it shows no device found and below errors

 
* JLink Info: Found SW-DP with ID 0x0BC11477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[0]: Stopped AP scan as end of AP map seems to be reached
* JLink Info: Iterating through AP map to find AHB-AP to use
**JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware.
* JLink Info: Found SW-DP with ID 0x0BC11477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[0]: Stopped AP scan as end of AP map seems to be reached
* JLink Info: Iterating through AP map to find AHB-AP to use
***JLink Error: Could not find core in Coresight setup
Error: Flash Download failed  -  Target DLL has been cancelled
Flash Load finished at 15:11:22

Parents
  • Probably check your board as per the warning:

    "**JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware."

    Might also be a good idea to check with Segger, in case the updated FW for JLINK is available 

Reply
  • Probably check your board as per the warning:

    "**JLink Warning: RESET (pin 15) high, but should be low. Please check target hardware."

    Might also be a good idea to check with Segger, in case the updated FW for JLINK is available 

Children
No data