You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried compiling the i2c\lcd_1602_i2c example and got the below error, any idea on how I can get around this?
C:\Users-\Documents\pico\pico-examples\build\i2c\lcd_1602_i2c>mingw32-make
PICO_SDK_PATH is C:/Users/-/Downloads/pico-sdk-master (1)/pico-sdk
Target board (PICO_BOARD) is 'pico'.
Using board configuration from C:/Users/-/Downloads/pico-sdk-master (1)/pico-sdk/src/boards/include/boards/pico.h
Pico Platform (PICO_PLATFORM) is 'rp2040'.
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/VSARM/mingw/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/VSARM/mingw/mingw64/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
It sounds like something's gone a bit screwy with your compiler setup under mingw - you seem to have both C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe and also C:/VSARM/mingw/mingw64/bin/gcc.exe. It seems to be the latter which isn't happy with the -mcpu=cortex-m0plus -mthumb options, but normally you'd expect these to be passed to arm-none-eabi-gcc.exe.
Can you provide the output of C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe -v and C:/VSARM/mingw/mingw64/bin/gcc.exe please?
I tried compiling the i2c\lcd_1602_i2c example and got the below error, any idea on how I can get around this?
C:\Users-\Documents\pico\pico-examples\build\i2c\lcd_1602_i2c>mingw32-make
PICO_SDK_PATH is C:/Users/-/Downloads/pico-sdk-master (1)/pico-sdk
Target board (PICO_BOARD) is 'pico'.
Using board configuration from C:/Users/-/Downloads/pico-sdk-master (1)/pico-sdk/src/boards/include/boards/pico.h
Pico Platform (PICO_PLATFORM) is 'rp2040'.
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/VSARM/mingw/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/VSARM/mingw/mingw64/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
-- Configuring incomplete, errors occurred!
mingw32-make: *** [Makefile:1520: cmake_check_build_system] Error 1
The text was updated successfully, but these errors were encountered: