Hello Antonio and David.
Instead of following the Zephyr build I follow the instructions per 'https://tf-m-user-guide.trustedfirmware.org/building/tfm_build_instruction.h...' and build for Musca S1,
The build command lines are cmake -S . -B cmake_build -DTFM_PLATFORM=musca_s1 -DTEST_PSA_API=CRYPTO cmake --build cmake_build -- install
I get an error "/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/lib/thumb/v8-m.main/nofp/libnosys.a(sbrk.o): in function `_sbrk': Memory region Used Size Region Size %age Used FLASH: 159572 B 380 KB 41.01% RAM: 48656 B 256 KB 18.56% collect2: error: ld returned 1 exit status"
Am I using the correct command? How do I get this to build successfully?
I get the same error if I use "-DTEST_S=ON -DTEST_NS=ON" instead of "-DTEST_PSA_API=CRYPTO"
If I do not provide either of the two specific "-D" options for test, the build completes.
With this I see the ".hex", ".bin" files in 'cmake_build/bin/'. If I copy 'tfm_s_ns_signed.bin' to the DAPLink USB MSD partition that gets mounted, I see a "FAIL.TXT" file created there with content "An error occurred during the transfer".
This is with the default "main" branch of the Git repo of 'trusted-firmware-m'. I get the same error for "-DTEST_PSA_API=CRYPTO" if I checkout "TF-Mv1.8.1" tag.
Is this expected to work for the Musca S1? Am I using the correct command line(s)?