I resolved the architecture build errors and the culprit certainly is conan, as it seems the behaviour of the pico_sdk_import and pico_sdk_init() is altered, so that necessary flags like are not properly set, which they normally are when using the CMake files of the SDK.
Also, to even discover this issue I had to get past the problem of pioasm and elf2uf2 being compiled, which was solved by using the snippet from this comment:
(basically using pre-compiled binaries for those 2 tools)
https://github.com/raspberrypi/pico-sdk ... 2090985744
I will continue this in the issue created on the conan repository:
https://github.com/conan-io/conan/issues/16193
Code:
-mcpu=cortex-m0plus-mthumb-march=armv6-m
Also, to even discover this issue I had to get past the problem of pioasm and elf2uf2 being compiled, which was solved by using the snippet from this comment:
(basically using pre-compiled binaries for those 2 tools)
https://github.com/raspberrypi/pico-sdk ... 2090985744
I will continue this in the issue created on the conan repository:
https://github.com/conan-io/conan/issues/16193
Statistics: Posted by HackXIt — Fri May 03, 2024 6:59 am