AnsweredAssumed Answered

Upgrade Project STM32F1xx UV2 to UV5 Error stdbool

Question asked by fabien.zampeze on Aug 1, 2014
Latest reply on Aug 7, 2014 by Clive One
Hello,


i'm Fabien and i'm a beginner with UV5 and STM32 and i need to modify a project but i have a 64bit windows so i need use UV5 with a new lib stm32f10x.h.
I can change my project but i have a lot of error with the stdbool.h (see below).
I don't understand in my code i have #include <stdbool> but i always have these errors. In the different forum,  I see that there is a problem with that but i don't understand the solution. anybody can hepl me?

Thank


Rebuild target 'OU399'
compiling main.c...
compiling Clavier.c...
Fonctions_Principales\Clavier.c(37): error:  #20: identifier "BOOL" is undefined
  extern BOOL TIMEOUT_texto;
Fonctions_Principales\Clavier.c(658): error:  #20: identifier "TRUE" is undefined
                else if((Touche_precedente!=ToucheEntree && ToucheEntree<=touche_9) || TIMEOUT_texto==TRUE )
Fonctions_Principales\Clavier.c: 0 warnings, 2 errors
compiling RFID.c...
compiling Zigbee.c...
Fonctions_Principales\Zigbee.c(26): error:  #260-D: explicit type is missing ("int" assumed)
  extern waitDiezKeyIsPressToContinue(void);
Fonctions_Principales\Zigbee.c: 0 warnings, 1 error
compiling lcd.c...
compiling Fonctions_globales.c...
compiling IHM.c...
Fonctions_Principales\IHM.c(111): error:  #20: identifier "FALSE" is undefined
        bool bAdmin = (strcmp((const char*)UserStatut,"ADMIN") ? FALSE:TRUE); 
Fonctions_Principales\IHM.c(111): error:  #20: identifier "TRUE" is undefined
        bool bAdmin = (strcmp((const char*)UserStatut,"ADMIN") ? FALSE:TRUE); 
Fonctions_Principales\IHM.c: 0 warnings, 2 errors
compiling CTDPE.c...
TestsElectriques\CTDPE.c(324): error:  #20: identifier "FALSE" is undefined
        bool        erreur_continiutee=FALSE;
TestsElectriques\CTDPE.c(412): error:  #20: identifier "TRUE" is undefined
                  erreur_continiutee=TRUE;
TestsElectriques\CTDPE.c(425): error:  #20: identifier "TRUE" is undefined
                  erreur_continiutee=TRUE;
TestsElectriques\CTDPE.c(441): error:  #20: identifier "TRUE" is undefined
                                erreur_continiutee=TRUE;
TestsElectriques\CTDPE.c(450): error:  #20: identifier "TRUE" is undefined
              if(erreur_continiutee==TRUE)
TestsElectriques\CTDPE.c: 0 warnings, 5 errors
compiling CTDRB.c...
compiling Communication_implant.c...
TestsElectriques\Communication_implant.c(29): error:  #20: identifier "BOOL" is undefined
  extern volatile BOOL TIMEOUT_texto;
KB: Unexpected type: 0
error type>(41): error:  #20: identifier "FALSE" is undefined
  bool CONVERSION_ADC_TRAME_IMPLANT=FALSE;
TestsElectriques\Communication_implant.c(55): error:  #20: identifier "TRUE" is undefined
                if(CONVERSION_ADC_TRAME_IMPLANT == TRUE)
TestsElectriques\Communication_implant.c(114): error:  #20: identifier "TRUE" is undefined
                        CONVERSION_ADC_TRAME_IMPLANT = TRUE;
TestsElectriques\Communication_implant.c: 0 warnings, 4 errors
compiling ADC.c...
Gestion microcontroleur\ADC.c(99): error:  #20: identifier "ADC1_2_IRQChannel" is undefined
        IRQ_ADC.NVIC_IRQChannel=ADC1_2_IRQChannel;
Gestion microcontroleur\ADC.c(127): error:  #20: identifier "FALSE" is undefined
        CONVERSION_ADC_TRAME_IMPLANT=FALSE;
Gestion microcontroleur\ADC.c: 0 warnings, 2 errors
compiling Timers.c...
Gestion microcontroleur\Timers.c(43): error:  #20: identifier "BOOL" is undefined
  BOOL TIMEOUT_texto;
Gestion microcontroleur\Timers.c(90): error:  #20: identifier "TRUE" is undefined
                TIMEOUT_texto=TRUE;
Gestion microcontroleur\Timers.c(160): error:  #20: identifier "FALSE" is undefined
        TIMEOUT_texto=FALSE;
Gestion microcontroleur\Timers.c(218): error:  #20: identifier "FALSE" is undefined
        TIMEOUT_texto=FALSE;
Gestion microcontroleur\Timers.c: 0 warnings, 4 errors
compiling RTX_Conf_CM.c...
assembling startup_stm32f10x_hd.s...
compiling system_stm32f10x.c...
compiling misc.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_adc.c...
".\Obj\Blinky.axf" - 20 Error(s), 0 Warning(s).
Target not created

Outcomes