Unable to Build RP2040 Demo (Windows 11)

Discussions and support about ChibiOS/RT, the free embedded RTOS.
militaryk
Posts: 1
Joined: Wed Jan 31, 2024 4:16 am

Unable to Build RP2040 Demo (Windows 11)

Postby militaryk » Wed Jan 31, 2024 4:24 am

Good Afternoon,
I am attempting to compile a project through ChibiStudio, and am unable to compile the project. The DEMO stm project compiles correctly, but the RP2040 project does not. I have verified the files exist in the locations referenced.

16:11:44 **** Build of configuration Default for project RT-RP2040-PICO ****
make -j16 all
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffered_serial.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_flash.c
Compiling hal_mmcsd.c
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal.c:25:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
Compiling hal_pal.c
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal_st.c:25:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal_buffered_serial.c:25:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal_st.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal.o] Error 1
compilation terminated.
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal_buffered_serial.o] Error 1
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal_buffers.c:41:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal_queues.c:40:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal_buffers.o] Error 1
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal_queues.o] Error 1
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal_flash.c:25:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal_flash.o] Error 1
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal_mmcsd.c:25:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../../../os/hal/include/hal.h:249,
from ../../../os/hal/src/hal_pal.c:25:
../../../os/hal/ports/RP/RP2040/hal_lld.h:34:10: fatal error: hardware/clocks.h: No such file or directory
34 | #include "hardware/clocks.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal_mmcsd.o] Error 1
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:190: build/obj/hal_pal.o] Error 1
"make -j16 all" terminated with exit code 2. Build might be incomplete.

16:11:46 Build Failed. 17 errors, 0 warnings. (took 1s.482ms)

Any help is appreciated.

User avatar
Giovanni
Site Admin
Posts: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Unable to Build RP2040 Demo (Windows 11)

Postby Giovanni » Wed Jan 31, 2024 9:58 am

Hi,

You need to unpack the PICO SDK under /ext, it is provided in .7z format.

Giovanni


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 1 guest