No target reset after flashing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No target reset after flashing

842 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by boris.fiedler.mpsd on Fri May 15 07:22:52 MST 2015
Hi,

I use a LPCXpresso LPC1114 REV A board for my first attempts ... almost everything works, but after flashing the devices ("GUI LPC-Link Probe v1.3, Windows 7, LPCXpresso v7.7.2 [Build 379] [2015-03-31] ) there is no target reset - I have to unplug the USB connector and reconnect it, so that the program starts! On the board unfortunately is no reset button.

Flash command:

crt_emu_lpc11_13_nxp -flash-load-exec "C:\Users\xxx\Documents\LPCXpresso_7.7.2_379\workspace\First_Try_CMSIS\Release\First_Try_CMSIS.axf" -g -2 -vendor=NXP -pLPC1114/302 -load-base=0x0  -wire=hid -s250  -flash-driver=LPC11_12_13_32K_8K.cfx

Debuging also works fine....



#ifdef __USE_CMSIS
#include "LPC11xx.h"
#endif

int main(void)
{      //Toggle a GPIO (FBD48 pin 23, PIO0_7, controls the LED on the LPC Expresso PCB)

     LPC_SYSCON->SYSAHBCLKCTRL   |= (1<<6);     //enable clock GPIO (sec 3.5.14)
     LPC_IOCON->PIO0_7           &= ~(0x10);    //NOT REQUIRED, turn off pull up (sec 7.4.19)
     LPC_GPIO0->DIR              |= (1<<7);     //set pin direction to output (sec 12.3.2)
     LPC_GPIO0->DATA             &= ~(1<<7);    //set pin low (sec 12.3.1)

     volatile unsigned int i = 0;

     while(1)
     {                      //infinite loop

          LPC_GPIO0->DATA           |= (1<<7);    //set pin high (sec 12.3.1)
          for(i = 0; i < 0x0004FFFF; ++i);          //arbitrary delay

          LPC_GPIO0->DATA           &= ~(1<<7);   //set pin low (sec 12.3.1)
          for(i = 0; i < 0x0004FFFF; ++i);          //arbitrary delay
     }

     return 0 ;
}
0 Kudos
Reply
3 Replies

828 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by boris.fiedler.mpsd on Mon May 18 07:40:25 MST 2015
Added a post-processing operation for building a binary at the end of the build prozess, flashing with binary works fine!
(The command already exists, but is commented out with a hash) --> http://www.lpcware.com/content/faq/lpcxpresso/post-processing-linked-application

Thank you!

0 Kudos
Reply

828 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri May 15 08:10:00 MST 2015
There is a known issue with using -flash-load-exec with an AXF file. Convert your AXF to a bin file and use that instead.

http://www.lpcware.com/content/forum/750-772-annoyances#comment-1144711

This has been fixed for the next release.

Regards,
LPCXpresso Support
0 Kudos
Reply

828 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri May 15 07:33:31 MST 2015
Could be useful if you post the complete project...

http://www.lpcware.com/content/faq/lpcxpresso/how-importexport-projects
0 Kudos
Reply