LPC 1112 LED

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Kaveh.t on Fri Mar 13 03:46:06 MST 2015

Hi there, i have The LPC 1112 on my own PCB and associated  a LED  to Pin 22 .

This Pin 22 is Named    R/PIO1_0/AD1/CT32B1_CAP0    on the Pin Layout.

Now I want to configure the GPIO Funktion for the System.In The user Manual  there are several Modes for this Pin.

I want to create a GPIO Funktion in this Case i have to set bit 2:0  to the Value  01x for Selecting   PIO1_0  .

When I Debug there are no Errors but the LED is not Blinking.

I load the created Hexa File on my Flash Magic. without Problems.

Can you Please help me out which configuration I have to generate in my source code to make it work.

Console Output Screenshot and Source code are added as attachement.

Best Regards


1:38:32 **** Incremental Build of configuration Debug for project Blinky ****
make -r all
Building file: ../src/blinky.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -I"C:\nxp\workspace\CMSIS_CORE_LPC11xx\inc" -I"C:\nxp\workspace\Blinky\Common\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/blinky.d" -MT"src/blinky.o" -MT"src/blinky.d" -o "src/blinky.o" "../src/blinky.c"
Finished building: ../src/blinky.c

Building target: Blinky.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\nxp\workspace\CMSIS_CORE_LPC11xx\Debug" -Xlinker -Map="Blinky.map" -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "Blinky_Debug.ld" -o "Blinky.axf"  ./src/blinky.o ./src/cr_startup_lpc11.o  ./Common/src/clkconfig.o ./Common/src/gpio.o ./Common/src/timer16.o   -lCMSIS_CORE_LPC11xx
Finished building target: Blinky.axf

make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-objcopy -O ihex Blinky.axf Blinky.hex;

11:38:33 Build Finished (took 436ms)

Original Attachment has been moved to: LPC_Blinky_GPIO_Confguration.zip