When trying to migrate an RP2040 project (running fine when compiled with SDK 2.0 on the Pico board) to the Pico 2 I get compile errors from the file spin_lock.h (I am using the queue functions)
152 | #error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform and
193 | #error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
In the first place, line 152 should refer to SW_SPIN_LOCK_LOCK (probably just a copy/paste error)
PICO_RP2350 and PICO_USE_SW_SPIN_LOCKS are both defined and are both 1. When checking further __ARM_ARCH_8M_MAIN__ seems to be undefined, and this causes SW_SPIN_TRY_LOCK and SW_SPIN_LOCK_LOCK to be undefined.
in cmakelists.txt the Pico2 is correctly defined, so not sure what else should be done to get the queue functions to compile for the RP2350
152 | #error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform and
193 | #error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
In the first place, line 152 should refer to SW_SPIN_LOCK_LOCK (probably just a copy/paste error)
PICO_RP2350 and PICO_USE_SW_SPIN_LOCKS are both defined and are both 1. When checking further __ARM_ARCH_8M_MAIN__ seems to be undefined, and this causes SW_SPIN_TRY_LOCK and SW_SPIN_LOCK_LOCK to be undefined.
in cmakelists.txt the Pico2 is correctly defined, so not sure what else should be done to get the queue functions to compile for the RP2350
Statistics: Posted by MKuip — Thu Sep 05, 2024 2:26 pm — Replies 0 — Views 28