I'm having some issues compiling my project which I've been trying to hunt down. Much to my surprise, I am getting the same issue when I try to compile the HAL test programs:
../../../../os/various/shell/shell_cmd.c: In function 'cmd_test':
../../../../os/various/shell/shell_cmd.c:182:8: warning: implicit declaration of function 'chThdCreateFromHeap' [-Wimplicit-function-declaration]
tp = chThdCreateFromHeap(NULL, SHELL_CMD_TEST_WA_SIZE,
^~~~~~~~~~~~~~~~~~~
../../../../os/various/shell/shell_cmd.c:182:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
tp = chThdCreateFromHeap(NULL, SHELL_CMD_TEST_WA_SIZE,
^
main.c: In function 'main':
main.c:153:27: warning: implicit declaration of function 'chThdCreateFromHeap' [-Wimplicit-function-declaration]
thread_t *shelltp = chThdCreateFromHeap(NULL, SHELL_WA_SIZE,
^~~~~~~~~~~~~~~~~~~
main.c:153:27: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
Linking build/ch.elf
/tmp/cc5triM9.ltrans0.ltrans.o: In function `cmd_test':
/home/charlesrwest/cpp/libraries/ChibiOS/testhal/STM32/STM32F0xx/USB_CDC/../../../../os/various/shell/shell_cmd.c:182: undefined reference to `chThdCreateFromHeap'
/tmp/cc5triM9.ltrans3.ltrans.o: In function `main':
/home/charlesrwest/cpp/libraries/ChibiOS/testhal/STM32/STM32F0xx/USB_CDC/main.c:153: undefined reference to `chThdCreateFromHeap'
collect2: error: ld returned 1 exit status
../../../../os/common/startup/ARMCMx/compilers/GCC/rules.mk:249: recipe for target 'build/ch.elf' failed
make: *** [build/ch.elf] Error 1
As far as I can tell, the demo's chconf.h has the "#define CH_CFG_USE_HEAP TRUE" line which should resolve this issue.
If I may ask, is anyone else having this problem?
P.S.
using https://sourceforge.net/projects/chibio ... Exception/ (ChibiOS_17.6.3_exception.7z) freshly downloaded this morning.