On Thursday, December 16, 2021 9:37:27 AM CET Ryan McClue wrote:
Hello, I'm trying to cross compile with arm-none-eabi-gcc on an Ubuntu x64 build machine.
My CMake toolchain file contains the following flags:
mcpu=cortex-m4 -mthumb -mfloat-abi=soft -fdata-sections -ffunction-sections \ --specs=rdimon.specs -lgcc -lc -lm -lrdimon
This doesn't look like how a toolchain file should look like! Those are just CFLAGS.
https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html
Example: https://gitlab.com/cmocka/cmocka/-/blob/master/cmake/Toolchain-Debian-mips.c...
Best regards
Andreas