Hi Antonio,
Following if any matter or can help: - If I build the same for the MPS2 AN521, I see no error - everything builds ok. - If I build for the Musca S1 without the "-DTEST_S=ON -DTEST_NS=ON" options, it builds ok, no linker error. - I am using the GCC compiler toolchain.
The entire error output when it does emit the 'sbrk' linker error is: /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': /build/newlib-pB30de/newlib-3.3.0/build/arm-none-eabi/thumb/v8-m.main/nofp/ libgloss/libnosys/../../../../../../../libgloss/libnosys/sbrk.c:21: undefined reference to `end' Memory region Used Size Region Size %age Used FLASH: 228704 B 380 KB 58.77% RAM: 57148 B 256 KB 21.80% collect2: error: ld returned 1 exit status gmake[2]: *** [secure_fw/CMakeFiles/tfm_s.dir/build.make:366: bin/tfm_s.axf]
Regards, -Arun.