RDB1768cmsis_LedFlash problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RDB1768cmsis_LedFlash problem

612件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Maru_t on Mon Aug 30 03:10:32 MST 2010
Hello,
I tried and failed to show a demo sample program RDB1768cmsis_LedFlash on the LPCXpresso Board (Target LPC1768).

I shortened the original source codes to test it easier, as like below in the section of[Tested source codes].

[Results in Debug 'Build' execution]
(1)When started Debug execution on IDE(LPCXpresso v3.3), LED1 lights on without any falsh, continuing to be seemingly ON!
(2)LED2 lights on immediately after the LPC1768 board were connected to the PC.

*See an attached picture of the board I used where LED1 and LED2 are labeled on it. I suppose those labelling are correct.

I need any hints or supports to have the expected results where LED2 are flashing.
Any comments will be helping! Thank you!

[Tested source codes] *Other source modules codes are not changed.
int main(void) {
volatile static int i = 0 ;
int loop;
// Initialise GPIO to access user LEDs
leds_init();

// Enter an infinite loop, cycling through led flash sequence
while(1) {
// Turn all leds on, then off, 5 times
for (loop=1; loop < 5; loop++) {
led_on(LED_2);
short_delay(2000);
led_off(LED_2);
short_delay(2000);
}
short_delay(3000);

// Turn each led on (and then off) in turn
// Pattern is 3,2,5,4 because of order leds are
// laid out on board

// Turn on leds 2 and 3, ready for inverting
// Invert the current state of the leds, 5 times
for (loop=1; loop < 5; loop++) {
leds_invert();
short_delay (2000);
}
// Turn leds off, ready for next iteration of led flashes
leds_all_off();
short_delay(5000);
i++ ;
}
return 0 ;
}

Original Attachment has been moved to: 1100633_LPCLinkProblem.zip

0 件の賞賛
返信
2 返答(返信)

534件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Maru_t on Mon Aug 30 18:46:43 MST 2010
Hello,

Thank you, CodeRedSupport members, for you replying! I'll also find a Code Red's RDB1768 board here. And, I'm going to test 1768 LPCXpresso examples taking from the site you show.

I must be grateful for your taking time to clarify regarding my unawareness of different boards with LPC1768.

BTW, it is helping to know that LED1 is not user accessible!
If not, I might try to make LED1 flash.

Regards,
Maru_t
0 件の賞賛
返信

534件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Aug 30 03:52:25 MST 2010
The RDB1768cmsis_LedFlashapplication is written to run on Code Red's RDB1768 board, not the LPCXpresso board.

Although both boards have an LPC1768 MCU on them, their use of the peripherals is different in some cases (eg GPIO and leds).

I would suggest that you make use of the 1768 LPCXpresso examples instead, at least until you have become familar with the system.

There are some LPCXpresso 1768 examples provided in the examples subdirectory of the LPCXPresso IDE install, and further examples can be found at:

http://ics.nxp.com/support/lpcxpresso/

Note that LED1 on the LPCXpresso board relates the debug functionality - it is not user accessible.

Regards,

CodeRedSupport
0 件の賞賛
返信