emflex / emflex-firmware

Firmware for Emflex prototypes
GNU Lesser General Public License v3.0
0 stars 2 forks source link

STM32VL compilation is broken #12

Closed rspolyak closed 7 years ago

rspolyak commented 7 years ago

Description: STM32VL compilation is broken for tracking profile

Steps to reproduce: 1) make TRG=ST_STM32VL_DISCOVERY 2) Following error is observed: In file included from OS/Chibios/os/rt/include/ch.h:78:0, from drivers/network/wifi.c:25: drivers/network/wifi.c:34:37: error: 'WIFI_TASK_STACK_SIZE' undeclared here (not in a function) static THD_WORKING_AREA(wifiThread, WIFI_TASK_STACK_SIZE); ^ OS/Chibios/os/rt/include/chschd.h:123:16: note: in definition of macro 'THD_ALIGN_STACK_SIZE' (((((size_t)(n)) - 1U) | (sizeof(stkalign_t) - 1U)) + 1U) ^ OS/Chibios/os/rt/include/chschd.h:134:43: note: in expansion of macro 'PORT_WA_SIZE' THD_ALIGN_STACK_SIZE(sizeof(thread_t) + PORT_WA_SIZE(n)) ^ OS/Chibios/os/rt/include/chschd.h:147:16: note: in expansion of macro 'THD_WORKING_AREA_SIZE' stkalign_t s[THD_WORKING_AREA_SIZE(n) / sizeof(stkalign_t)] ^ drivers/network/wifi.c:34:8: note: in expansion of macro 'THD_WORKING_AREA' static THD_WORKING_AREA(wifiThread, WIFI_TASK_STACK_SIZE); ^ drivers/network/wifi.c:34:25: warning: 'wifiThread' defined but not used [-Wunused-variable] static THD_WORKING_AREA(wifiThread, WIFI_TASK_STACK_SIZE); ^ OS/Chibios/os/rt/include/chschd.h:147:14: note: in definition of macro 'THD_WORKING_AREA' stkalign_t s[THD_WORKING_AREA_SIZE(n) / sizeof(stkalign_t)]

rspolyak commented 7 years ago

Compilation is broken for all profiles. But we do not use this board, so it is fine for now