# Pastebin FRHl8lYj jfred@lambdacrypt ~/sources/reform/reform2-lpc-fw [env]$ make COMPILING startup_lpc11u_gnumake.o COMPILING system_LPC11Uxx.o COMPILING math_helper.o COMPILING RTX_hook.o COMPILING printf-retarget.o COMPILING board_lpcnfc.o COMPILING board_reform2.o src/boards/reform2/board_reform2.c: In function 'disable_charge_current': src/boards/reform2/board_reform2.c:263:7: error: 'REFORM_MOTHERBOARD_REV' undeclared (first use in this function); did you mean 'REFORM_MBREV_R2'? if (REFORM_MOTHERBOARD_REV >= REFORM_MBREV_R1) { ^~~~~~~~~~~~~~~~~~~~~~ REFORM_MBREV_R2 src/boards/reform2/board_reform2.c:263:7: note: each undeclared identifier is reported only once for each function it appears in src/boards/reform2/board_reform2.c: In function 'enable_charge_current': src/boards/reform2/board_reform2.c:271:7: error: 'REFORM_MOTHERBOARD_REV' undeclared (first use in this function); did you mean 'REFORM_MBREV_R2'? if (REFORM_MOTHERBOARD_REV >= REFORM_MBREV_R1) { ^~~~~~~~~~~~~~~~~~~~~~ REFORM_MBREV_R2 src/boards/reform2/board_reform2.c: In function 'turn_som_power_on': src/boards/reform2/board_reform2.c:471:7: error: 'REFORM_MOTHERBOARD_REV' undeclared (first use in this function); did you mean 'REFORM_MBREV_R2'? if (REFORM_MOTHERBOARD_REV >= REFORM_MBREV_R1 && REFORM_MOTHERBOARD_REV < REFORM_MBREV_25_R2) { ^~~~~~~~~~~~~~~~~~~~~~ REFORM_MBREV_R2 src/boards/reform2/board_reform2.c: In function 'turn_som_power_off': src/boards/reform2/board_reform2.c:492:7: error: 'REFORM_MOTHERBOARD_REV' undeclared (first use in this function); did you mean 'REFORM_MBREV_R2'? if (REFORM_MOTHERBOARD_REV >= REFORM_MBREV_R1 && REFORM_MOTHERBOARD_REV < REFORM_MBREV_25_R2) { ^~~~~~~~~~~~~~~~~~~~~~ REFORM_MBREV_R2 src/boards/reform2/board_reform2.c: In function 'boardInit': src/boards/reform2/board_reform2.c:617:7: error: 'REFORM_MOTHERBOARD_REV' undeclared (first use in this function); did you mean 'REFORM_MBREV_R2'? if (REFORM_MOTHERBOARD_REV >= REFORM_MBREV_25_R2) { ^~~~~~~~~~~~~~~~~~~~~~ REFORM_MBREV_R2 src/boards/reform2/board_reform2.c: In function 'handle_commands': src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:762:59: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"norm:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:762:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"norm:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:762:44: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"norm:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:762:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"norm:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:762:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"norm:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:762:56: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"norm:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:764:59: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"baln:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:764:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"baln:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:764:44: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"baln:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:764:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"baln:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:764:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"baln:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:764:56: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"baln:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:766:59: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"cool:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:766:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"cool:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:766:44: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"cool:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:766:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"cool:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:766:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"cool:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:766:56: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"cool:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:768:59: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"uvol:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:768:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"uvol:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:768:44: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"uvol:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:768:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"uvol:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:768:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"uvol:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:768:56: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"uvol:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:770:62: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"miss:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",missing_reason,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:770:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"miss:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",missing_reason,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:770:40: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"miss:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",missing_reason,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:770:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"miss:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",missing_reason,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:770:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"miss:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",missing_reason,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:770:53: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"miss:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",missing_reason,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:770:59: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"miss:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",missing_reason,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:772:59: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"full:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:772:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"full:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:772:44: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"full:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:772:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"full:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:772:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"full:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:772:56: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"full:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:774:59: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"psav:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:774:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"psav:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:774:44: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"psav:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:774:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"psav:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:774:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"psav:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:774:56: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"psav:%d mAh:%d:%d:%d up:%d "FW_REV"\r",cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:66:27: error: expected ')' before 'FW_STRING2' #define FW_REV FW_STRING1 FW_STRING2 FW_STRING3 ^ src/boards/reform2/board_reform2.c:776:62: note: in expansion of macro 'FW_REV' sprintf(uartBuffer,"unkn:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",state,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ^~~~~~ src/boards/reform2/board_reform2.c:776:37: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"unkn:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",state,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:776:40: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"unkn:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",state,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:776:47: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"unkn:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",state,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:776:50: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"unkn:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",state,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:776:53: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"unkn:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",state,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:776:59: warning: format '%d' expects a matching 'int' argument [-Wformat=] sprintf(uartBuffer,"unkn:%d:%d mAh:%d:%d:%d up:%d "FW_REV"\r",state,cycles_in_state,min_mah,acc_mah,max_mah,cycles_uptime); ~^ src/boards/reform2/board_reform2.c:758:13: warning: unused variable 'max_mah' [-Wunused-variable] int max_mah = (int)(capacity_max_ampsecs/3.6); ^~~~~~~ src/boards/reform2/board_reform2.c:757:13: warning: unused variable 'acc_mah' [-Wunused-variable] int acc_mah = (int)(capacity_accu_ampsecs/3.6); ^~~~~~~ src/boards/reform2/board_reform2.c:756:13: warning: unused variable 'min_mah' [-Wunused-variable] int min_mah = (int)(capacity_min_ampsecs/3.6); ^~~~~~~ src/boards/reform2/board_reform2.c: In function 'handle_spi_commands': src/boards/reform2/board_reform2.c:993:23: error: 'FW_STRING2' undeclared (first use in this function); did you mean 'FW_STRING1'? memcpy(spi_buf, FW_STRING2, 8); ^~~~~~~~~~ FW_STRING1 src/boards/reform2/board_reform2.c: In function 'main': src/boards/reform2/board_reform2.c:1181:9: error: 'REFORM_MOTHERBOARD_REV' undeclared (first use in this function); did you mean 'REFORM_MBREV_R2'? if (REFORM_MOTHERBOARD_REV >= REFORM_MBREV_25_R2) { ^~~~~~~~~~~~~~~~~~~~~~ REFORM_MBREV_R2 make: *** [Makefile:404: bin/obj/board_reform2.o] Error 1