I have never seen SCRATCH_Y work. Clear out the build directory and try again. Check your heap and stack settings.
LLVM with LTO:
Code:
PICO_SDK_PATH is /home/mateush/pico-sdk-2.0.0Target board (PICO_BOARD) is 'pico2'.Using board configuration from /home/mateush/pico-sdk-2.0.0/src/boards/include/boards/pico2.hPico Platform (PICO_PLATFORM) is 'rp2350-arm-s'.Configuring toolchain based on PICO_COMPILER 'pico_arm_cortex_m33_clang'Setting default C library to picolibc as LLVM appears to be using it-- The C compiler identification is Clang 18.1.3-- The CXX compiler identification is Clang 18.1.3-- The ASM compiler identification is Clang-- Found assembler: /home/mateush/LLVM-ET-Arm-18.1.3-Linux-x86_64/bin/clang-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working C compiler: /home/mateush/LLVM-ET-Arm-18.1.3-Linux-x86_64/bin/clang - skipped-- Detecting C compile features-- Detecting C compile features - done-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working CXX compiler: /home/mateush/LLVM-ET-Arm-18.1.3-Linux-x86_64/bin/clang++ - skipped-- Detecting CXX compile features-- Detecting CXX compile features - doneBuild type is Release-- Found Python3: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter TinyUSB available at /home/mateush/pico-sdk-2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.BTstack available at /home/mateush/pico-sdk-2.0.0/lib/btstackcyw43-driver available at /home/mateush/pico-sdk-2.0.0/lib/cyw43-driverlwIP available at /home/mateush/pico-sdk-2.0.0/lib/lwipmbedtls available at /home/mateush/pico-sdk-2.0.0/lib/mbedtls-- Configuring done-- Generating done-- Build files have been written to: /home/mateush/Dysk_RAM/wyswietlacz/build[2/84] Linking ASM executable pico-sdk/src/rp2350/boot_stage2/bs2_default.elfld.lld: warning: cannot find entry symbol _start; not setting start address[80/84] Building C object CMakeFiles/project_name.dir/file_name.c.obj../file_name.c:16:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 16 | void main() { | ^../file_name.c:16:1: note: change return type to 'int' 16 | void main() { | ^~~~ | int1 warning generated.[84/84] Linking CXX executable project_name.elfMemory region Used Size Region Size %age Used FLASH: 4070084 B 4 MB 97.04% RAM: 512 KB 512 KB 100.00% SCRATCH_X: 0 GB 4 KB 0.00% SCRATCH_Y: 2 KB 4 KB 50.00%
Statistics: Posted by MatSOBDev2 — Wed Oct 02, 2024 6:21 am