Elektroda.pl
Elektroda.pl
X
Proszę, dodaj wyjątek www.elektroda.pl do Adblock.
Dzięki temu, że oglądasz reklamy, wspierasz portal i użytkowników.

LPCXpresoo - Problem z bibliotekami

pawelse 27 Lut 2016 12:13 906 7
  • #1 27 Lut 2016 12:13
    pawelse
    Poziom 16  

    Witam. Posiadam płytkę NXP LPCXpresso1769 i program LPCXpresso. Podczas próby uruchomienia przykładowych programów mam problem z dodawaniem bibliotek przez program podczas kompilacji. Z programem do obsługi UART poradziłem sobie w ten sposób, że ręcznie dodałem do projektu brakujące biblioteki, program się skompilował i działał poprawnie. Następnie chciałem do programu dodać obsługę I2C, aby móc wysyłać temperaturę z czujnika LM75 za pomocą UART. Spróbowałem więc najpierw skompilować przykład I2C lecz znów pojawił się problem problem z brakiem biblioteki type.h. Gdy dodałem ją ręcznie to brakowało kolejnych. W czym może być problem? Podejrzewam, że w konfiguracji środowiska programistycznego.

    W konsoli pojawia się:

    Code:
    11:34:28 **** Clean-only build of configuration Debug for project I2C ****
    
    make -r clean
    rm -rf  ./src/cr_startup_lpc176x.o ./src/i2c.o ./src/i2cmst.o  ./src/cr_startup_lpc176x.d ./src/i2c.d ./src/i2cmst.d  I2C.axf
     

    11:34:28 Build Finished (took 330ms)

    11:34:33 **** Build of configuration Debug for project I2C ****
    make -r all
    Building file: ../src/cr_startup_lpc176x.c
    Invoking: MCU C Compiler
    arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2_LPC17xx -O0 -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/cr_startup_lpc176x.d" -MT"src/cr_startup_lpc176x.d" -o "src/cr_startup_lpc176x.o" "../src/cr_startup_lpc176x.c"
    Finished building: ../src/cr_startup_lpc176x.c
     
    Building file: ../src/i2c.c
    Invoking: MCU C Compiler
    arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2_LPC17xx -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/i2c.d" -MT"src/i2c.o" -MT"src/i2c.d" -o "src/i2c.o" "../src/i2c.c"
    ../src/i2c.c:22:18: fatal error: type.h: No such file or directory
     #include "type.h"


    Zamieszczam screeny i program.

    LPCXpresoo - Problem z bibliotekami LPCXpresoo - Problem z bibliotekami LPCXpresoo - Problem z bibliotekami LPCXpresoo - Problem z bibliotekami

    0 7
  • Pomocny post
    #2 27 Lut 2016 15:31
    2675900
    Użytkownik usunął konto  
  • Pomocny post
    #3 27 Lut 2016 15:40
    grko
    Poziom 33  

    @Piotrus_999
    Nieprawda. W przypadku "" przeszukiwany jest najpierw katalog bieżący (ten w którym znajduje się aktualnie preprocesowany plik) a następnie przeszukiwane są katalogi te co w przypadku <>.

    @pawelse
    Dodaj wywołania kompilatora: -I_sciezka_do_katalogu_w_ktorym_znajduje_sie_plik_type_h

    0
  • Pomocny post
    #4 27 Lut 2016 15:43
    2675900
    Użytkownik usunął konto  
  • #6 29 Lut 2016 21:15
    pawelse
    Poziom 16  

    Witam. Dziękuję za odpowiedzi. Chyba udało mi się dołączyć biblioteki, jednak wyskakują mi takie o to błędy:

    Code:
    21:05:52 **** Build of configuration Debug for project I2C ****
    
    make -r all
    Building file: ../src/cr_startup_lpc176x.c
    Invoking: MCU C Compiler
    arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2_LPC17xx -O0 -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/cr_startup_lpc176x.d" -MT"src/cr_startup_lpc176x.d" -o "src/cr_startup_lpc176x.o" "../src/cr_startup_lpc176x.c"
    Finished building: ../src/cr_startup_lpc176x.c
     
    Building file: ../src/i2c.c
    Invoking: MCU C Compiler
    arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2_LPC17xx -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/i2c.d" -MT"src/i2c.o" -MT"src/i2c.d" -o "src/i2c.o" "../src/i2c.c"
    ../src/i2c.c: In function 'I2C0_IRQHandler':
    ../src/i2c.c:62:23: error: 'LPC_I2C_TypeDef' has no member named 'STAT'
       StatValue = LPC_I2C0->STAT;
                           ^
    ../src/i2c.c:67:10: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      LPC_I2C0->DAT = I2CMasterBuffer[0][WrIndex0++];
              ^
    ../src/i2c.c:68:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = (I2CONCLR_SIC | I2CONCLR_STAC);
              ^
    ../src/i2c.c:74:10: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      LPC_I2C0->DAT = I2CMasterBuffer[0][WrIndex0++];
              ^
    ../src/i2c.c:75:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = (I2CONCLR_SIC | I2CONCLR_STAC);
              ^
    ../src/i2c.c:81:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C0->CONSET = I2CONSET_STO;      /* Set Stop flag */
                ^
    ../src/i2c.c:86:12: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
        LPC_I2C0->DAT = I2CMasterBuffer[0][WrIndex0++];
                ^
    ../src/i2c.c:88:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC;




              ^
    ../src/i2c.c:94:12: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
        LPC_I2C0->DAT = I2CMasterBuffer[0][WrIndex0++]; /* this should be the last one */
                ^
    ../src/i2c.c:100:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C0->CONSET = I2CONSET_STA; /* Set Repeated-start flag */
               ^
    ../src/i2c.c:104:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C0->CONSET = I2CONSET_STO;      /* Set Stop flag */
               ^
    ../src/i2c.c:108:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:112:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C0->CONSET = I2CONSET_STO;      /* Set Stop flag */
              ^
    ../src/i2c.c:114:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:121:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C0->CONSET = I2CONSET_AA; /* assert ACK after data is received */
                ^
    ../src/i2c.c:126:12: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
        LPC_I2C0->CONCLR = I2CONCLR_AAC; /* assert NACK after data is received */
                ^
    ../src/i2c.c:128:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:132:42: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      I2CSlaveBuffer[0][RdIndex0++] = LPC_I2C0->DAT;
                                              ^
    ../src/i2c.c:135:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C0->CONSET = I2CONSET_AA; /* assert ACK after data is received */
                ^
    ../src/i2c.c:139:12: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
        LPC_I2C0->CONCLR = I2CONCLR_AAC; /* assert NACK on last byte */
                ^
    ../src/i2c.c:141:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:145:42: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      I2CSlaveBuffer[0][RdIndex0++] = LPC_I2C0->DAT;
                                              ^
    ../src/i2c.c:147:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C0->CONSET = I2CONSET_STO; /* Set Stop flag */
              ^
    ../src/i2c.c:148:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC; /* Clear SI flag */
              ^
    ../src/i2c.c:153:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C0->CONSET = I2CONSET_STO;      /* Set Stop flag */
              ^
    ../src/i2c.c:155:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:162:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C0->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c: In function 'I2C1_IRQHandler':
    ../src/i2c.c:183:23: error: 'LPC_I2C_TypeDef' has no member named 'STAT'
       StatValue = LPC_I2C1->STAT;
                           ^
    ../src/i2c.c:188:10: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      LPC_I2C1->DAT = I2CMasterBuffer[1][WrIndex1++];
              ^
    ../src/i2c.c:189:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = (I2CONCLR_SIC | I2CONCLR_STAC);
              ^
    ../src/i2c.c:195:10: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      LPC_I2C1->DAT = I2CMasterBuffer[1][WrIndex1++];
              ^
    ../src/i2c.c:196:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = (I2CONCLR_SIC | I2CONCLR_STAC);
              ^
    ../src/i2c.c:202:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C1->CONSET = I2CONSET_STO;      /* Set Stop flag */
                ^
    ../src/i2c.c:207:12: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
        LPC_I2C1->DAT = I2CMasterBuffer[1][WrIndex1++];
                ^
    ../src/i2c.c:209:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:215:12: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
        LPC_I2C1->DAT = I2CMasterBuffer[1][WrIndex1++]; /* this should be the last one */
                ^
    ../src/i2c.c:221:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C1->CONSET = I2CONSET_STA; /* Set Repeated-start flag */
               ^
    ../src/i2c.c:225:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C1->CONSET = I2CONSET_STO;      /* Set Stop flag */
               ^
    ../src/i2c.c:229:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:233:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C1->CONSET = I2CONSET_STO;      /* Set Stop flag */
              ^
    ../src/i2c.c:235:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:242:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C1->CONSET = I2CONSET_AA; /* assert ACK after data is received */
                ^
    ../src/i2c.c:247:12: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
        LPC_I2C1->CONCLR = I2CONCLR_AAC; /* assert NACK after data is received */
                ^
    ../src/i2c.c:249:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:253:42: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      I2CSlaveBuffer[1][RdIndex1++] = LPC_I2C1->DAT;
                                              ^
    ../src/i2c.c:256:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C1->CONSET = I2CONSET_AA; /* assert ACK after data is received */
                ^
    ../src/i2c.c:260:12: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
        LPC_I2C1->CONCLR = I2CONCLR_AAC; /* assert NACK on last byte */
                ^
    ../src/i2c.c:262:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:266:42: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      I2CSlaveBuffer[1][RdIndex1++] = LPC_I2C1->DAT;
                                              ^
    ../src/i2c.c:268:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C1->CONSET = I2CONSET_STO; /* Set Stop flag */
              ^
    ../src/i2c.c:269:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC; /* Clear SI flag */
              ^
    ../src/i2c.c:274:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C1->CONSET = I2CONSET_STO;      /* Set Stop flag */
              ^
    ../src/i2c.c:276:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:283:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C1->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c: In function 'I2C2_IRQHandler':
    ../src/i2c.c:304:23: error: 'LPC_I2C_TypeDef' has no member named 'STAT'
       StatValue = LPC_I2C2->STAT;
                           ^
    ../src/i2c.c:309:10: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      LPC_I2C2->DAT = I2CMasterBuffer[2][WrIndex2++];
              ^
    ../src/i2c.c:310:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = (I2CONCLR_SIC | I2CONCLR_STAC);
              ^
    ../src/i2c.c:316:10: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      LPC_I2C2->DAT = I2CMasterBuffer[2][WrIndex2++];
              ^
    ../src/i2c.c:317:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = (I2CONCLR_SIC | I2CONCLR_STAC);
              ^
    ../src/i2c.c:323:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C2->CONSET = I2CONSET_STO;      /* Set Stop flag */
                ^
    ../src/i2c.c:328:12: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
        LPC_I2C2->DAT = I2CMasterBuffer[2][WrIndex2++];
                ^
    ../src/i2c.c:330:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:336:12: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
        LPC_I2C2->DAT = I2CMasterBuffer[2][WrIndex2++]; /* this should be the last one */
                ^
    ../src/i2c.c:342:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C2->CONSET = I2CONSET_STA; /* Set Repeated-start flag */
               ^
    ../src/i2c.c:346:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C2->CONSET = I2CONSET_STO;      /* Set Stop flag */
               ^
    ../src/i2c.c:350:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:354:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C2->CONSET = I2CONSET_STO;      /* Set Stop flag */
              ^
    ../src/i2c.c:356:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:363:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C2->CONSET = I2CONSET_AA; /* assert ACK after data is received */
                ^
    ../src/i2c.c:368:12: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
        LPC_I2C2->CONCLR = I2CONCLR_AAC; /* assert NACK after data is received */
                ^
    ../src/i2c.c:370:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:374:42: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      I2CSlaveBuffer[2][RdIndex2++] = LPC_I2C2->DAT;
                                              ^
    ../src/i2c.c:377:12: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
        LPC_I2C2->CONSET = I2CONSET_AA; /* assert ACK after data is received */
                ^
    ../src/i2c.c:381:12: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
        LPC_I2C2->CONCLR = I2CONCLR_AAC; /* assert NACK on last byte */
                ^
    ../src/i2c.c:383:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:387:42: error: 'LPC_I2C_TypeDef' has no member named 'DAT'
      I2CSlaveBuffer[2][RdIndex2++] = LPC_I2C2->DAT;
                                              ^
    ../src/i2c.c:389:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C2->CONSET = I2CONSET_STO; /* Set Stop flag */
              ^
    ../src/i2c.c:390:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC; /* Clear SI flag */
              ^
    ../src/i2c.c:395:10: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
      LPC_I2C2->CONSET = I2CONSET_STO;      /* Set Stop flag */
              ^
    ../src/i2c.c:397:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c:404:10: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
      LPC_I2C2->CONCLR = I2CONCLR_SIC;
              ^
    ../src/i2c.c: In function 'I2CStart':
    ../src/i2c.c:427:19: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C[portNum]->CONSET = I2CONSET_STA; /* Set Start flag */
                       ^
    ../src/i2c.c: In function 'I2CStop':
    ../src/i2c.c:459:19: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C[portNum]->CONSET = I2CONSET_STO;      /* Set Stop flag */
                       ^
    ../src/i2c.c:460:19: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
       LPC_I2C[portNum]->CONCLR = I2CONCLR_SIC;  /* Clear SI flag */
                       ^
    ../src/i2c.c:463:26: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       while( LPC_I2C[portNum]->CONSET & I2CONSET_STO );
                              ^
    ../src/i2c.c: In function 'I2C0Init':
    ../src/i2c.c:486:11: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
       LPC_I2C0->CONCLR = I2CONCLR_AAC | I2CONCLR_SIC | I2CONCLR_STAC | I2CONCLR_I2ENC;   
               ^
    ../src/i2c.c:495:11: error: 'LPC_I2C_TypeDef' has no member named 'SCLL'
       LPC_I2C0->SCLL   = I2SCLL_SCLL;
               ^
    ../src/i2c.c:496:11: error: 'LPC_I2C_TypeDef' has no member named 'SCLH'
       LPC_I2C0->SCLH   = I2SCLH_SCLH;
               ^
    ../src/i2c.c:502:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C0->CONSET = I2CONSET_I2EN;
               ^
    ../src/i2c.c: In function 'I2C1Init':
    ../src/i2c.c:539:11: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
       LPC_I2C1->CONCLR = I2CONCLR_AAC | I2CONCLR_SIC | I2CONCLR_STAC | I2CONCLR_I2ENC;   
               ^
    ../src/i2c.c:542:11: error: 'LPC_I2C_TypeDef' has no member named 'SCLL'
       LPC_I2C1->SCLL   = I2SCLL_SCLL;
               ^
    ../src/i2c.c:543:11: error: 'LPC_I2C_TypeDef' has no member named 'SCLH'
       LPC_I2C1->SCLH   = I2SCLH_SCLH;
               ^
    ../src/i2c.c:548:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C1->CONSET = I2CONSET_I2EN;
               ^
    ../src/i2c.c: In function 'I2C2Init':
    ../src/i2c.c:574:11: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
       LPC_I2C2->CONCLR = I2CONCLR_AAC | I2CONCLR_SIC | I2CONCLR_STAC | I2CONCLR_I2ENC;   
               ^
    ../src/i2c.c:577:11: error: 'LPC_I2C_TypeDef' has no member named 'SCLL'
       LPC_I2C2->SCLL   = I2SCLL_SCLL;
               ^
    ../src/i2c.c:578:11: error: 'LPC_I2C_TypeDef' has no member named 'SCLH'
       LPC_I2C2->SCLH   = I2SCLH_SCLH;
               ^
    ../src/i2c.c:583:11: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C2->CONSET = I2CONSET_I2EN;
               ^
    ../src/i2c.c: In function 'I2CEngine':
    ../src/i2c.c:605:19: error: 'LPC_I2C_TypeDef' has no member named 'CONSET'
       LPC_I2C[portNum]->CONSET = I2CONSET_STA; /* Set Start flag */
                       ^
    ../src/i2c.c:618:19: error: 'LPC_I2C_TypeDef' has no member named 'CONCLR'
       LPC_I2C[portNum]->CONCLR = I2CONCLR_STAC;
                       ^
    make: *** [src/i2c.o] Error 1

    21:05:53 Build Finished (took 952ms)


    Co może być tego przyczyną? Czy nadal brakuje którejś biblioteki, bądz jest nieaktualna?

    0
  • Pomocny post
    #7 29 Lut 2016 21:53
    2675900
    Użytkownik usunął konto  
  • #8 10 Mar 2016 08:38
    pawelse
    Poziom 16  

    Doszedłem już z tym ładu. Dziękuję wszystkim za pomoc.

    0