Problem Running first project on LPC1769

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Running first project on LPC1769

43 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nanohueso on Thu Sep 12 12:41:57 MST 2013
I got a code for turning ON/OFF the led of the board. ( Im programming on LPC1769 board)
Build : 0 problems , but when running the program i got this error
[img][IMG]http://img694.imageshack.us/img694/2512/xj74.png[/IMG]  Uploaded with ImageShack.us[/img]

When clicking on Details>>
i got this

Error starting process.
Cannot run program "C:\Users\Mariano\Documents\Facultad\Info II\XPRESSO\prueba\Debug\prueba.axf": Launching failed
Cannot run program "C:\Users\Mariano\Documents\Facultad\Info II\XPRESSO\prueba\Debug\prueba.axf": Launching failed
Cannot run program "C:\Users\Mariano\Documents\Facultad\Info II\XPRESSO\prueba\Debug\prueba.axf": Launching failed
Labels (1)
0 Kudos
3 Replies

18 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nanohueso on Sat Sep 14 10:25:18 MST 2013
Hi, first , thank you for your time.
I was debugging in the wrong way. I have to click on Programm Flash ( didn't know that :S ).
Im learning to program on the LPC1769 board.
0 Kudos

18 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Sat Sep 14 06:14:30 MST 2013
What board are you using? Have you tried using one of the supplied example projects? How are you starting your debug session - using the "Debug" button in the Quickstart Panel?

Regards,
LPCXpresso Support
0 Kudos

18 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Irappa on Sat Sep 14 03:54:21 MST 2013
Just create a project, don't add any header files or source files in source foder.

Try this code:

/*
===============================================================================
Name        : main.c
Author      :
Version     :
Copyright   : Copyright (C)
Description : main definition
===============================================================================
*/

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

void delay(int);
// TODO: insert other include files here

// TODO: insert other definitions and declarations here

int main(void) {

LPC_GPIO0->FIODIR = 0x000000FF;
LPC_GPIO0->FIOCLR = 0x000000FF;


// TODO: insert code here

// Enter an infinite loop, just incrementing a counter
//volatile static int i = 0 ;
while(1) {

LPC_GPIO0->FIOSET = 1<<6;
delay(5000);
LPC_GPIO0->FIOCLR = 0x000000FF;
delay(5000);
//i++ ;
}
return 0 ;
}
void  delay(int x)
{
unsigned  int  k,l;
for(k = x;k > 0;k--)
for(l = 0;l < x;l++);
}
0 Kudos