Hallo,
Ich sitze momentan an einem eigenen Board mit einem lpc1313/01 und
möchte dieses mit lpcXpresso und der lpcOpen Codebase programmieren.
Mein Code schaut wie folgt aus:
1 | #if defined (__USE_LPCOPEN)
|
2 | #if defined(NO_BOARD_LIB)
|
3 | #include "chip.h"
|
4 | #else
|
5 | #include "board.h"
|
6 | #endif
|
7 | #endif
|
8 |
|
9 | #include <cr_section_macros.h>
|
10 |
|
11 | // TODO: insert other include files here
|
12 | #include <gpio_13xx_2.h>
|
13 | // TODO: insert other definitions and declarations here
|
14 |
|
15 | int main(void) {
|
16 | // TODO: insert code here
|
17 | Chip_GPIO_Init(LPC_GPIO_PORT);
|
18 | Chip_GPIO_WriteDirBit(LPC_GPIO_PORT, 0, 8, true);
|
19 | Chip_GPIO_WritePortBit(LPC_GPIO_PORT, 0, 8, false);
|
20 | // Force the counter to be placed into memory
|
21 | volatile static int i = 0 ;
|
22 | // Enter an infinite loop, just incrementing a counter
|
23 | while(1) {
|
24 | i++ ;
|
25 | }
|
26 | return 0 ;
|
27 | }
|
Am reset liegt im Betrieb 0V an dies sollte also stimmen allerdings wird
der PIO0.8 nicht auf low gezogen sonder ist auf 3.3V auch die anderen
PINs an denen ich gemessen habe liegen auf 3.3V.
Ich bekomme keine Warnungen und den sysinit.c habe ich so gelassen wie
sie erstellt wurde.
Vielleicht hat ja jemand Ideen woran es liegen kann ich steh irgendwie
ziehmlich aufm Schlauch.
Gruß Tobias