Forum: Mikrocontroller und Digitale Elektronik lpcopen lpc1313


von TM (Gast)


Lesenswert?

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

von TM (Gast)


Lesenswert?

Ok ich bekomm doch eine Warnugn allerdings in der sysinit.c die 
automatisch generiert wurde.
1
implicit declaration of function 'Chip_SystemInit' [-Wimplicit-function-declaration]  sysinit.c  /bldc/src  line 43  C/C++ Problem

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.