Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Testing of lpc2214 compling using Eclipse(Blinky Project on lpc2214)
Testing of lpc2214 compling using Eclipse [message #1750866] Fri, 30 December 2016 09:59 Go to next message
Ram Kumar is currently offline Ram KumarFriend
Messages: 1
Registered: December 2016
Junior Member

I am trying to compile Blinky LED program for lpc2214 using eclipse. The code builds without any errors. However, when the hex file is loaded to the target board(UNI-DS6 from mikroElectronica), nothing happens. Please tell where am i going wrong and suggest how to run this example. The code and Header file (copied from Keil) are attached.

#include <stdio.h>
#include <stdlib.h>
#include "lpc22xx.h"

void Delay(void);

            PINSEL0 = 0;
            PINSEL1 = 0;
            PINSEL2 &= 0x0000000C;
            PINSEL2 |= 0x00000030;

            IODIR0 = 0xFFFFFFFF;                                    // P0.0 - P0.31 defined as Outputs
            IODIR1 = 0xFFFFFFFF;                                    // P1.0 - P1.31 defined as Outputs
            IODIR2 = 0xFFFFFFFF;                                    // P2.0 - P2.31 defined as Outputs

            while (1)
                      IOSET0 = 0xFFFFFFFF;
                      IOSET1 = 0xFFFFFFFF;
                      IOSET2 = 0xFFFFFFFF;

                      IOCLR0 = 0xFFFFFFFF;
                      IOCLR1 = 0xFFFFFFFF;
                      IOCLR2 = 0xFFFFFFFF;
            return 0;


void Delay()
  long int i, j, k;

  for(i = 0; i <= 65535; i++)
    for(j = 0; j <= 65535; j++)
        for(k = 0; k <=65536; k++);


thanks in advance
  • Attachment: lpc22xx.h.txt
    (Size: 22.69KB, Downloaded 570 times)
Re: Testing of lpc2214 compling using Eclipse [message #1751008 is a reply to message #1750866] Tue, 03 January 2017 15:32 Go to previous message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 404
Registered: June 2014
Senior Member

I am not sure this is the right place to ask your question. We can generally help on using Eclipse C/C++ tools here. However you are having problems with real hardware. I recommend one of the (non-Eclipse) forums for the device you are using.

Previous Topic:MinGW detection - Visual Studio Toolchain
Next Topic:How to make Eclipse CDT Indexer find C++ standard includes from a different compiler
Goto Forum:

Current Time: Fri Jan 28 03:38:50 GMT 2022

Powered by FUDForum. Page generated in 0.02211 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top