I am working with a MKW41Z. I am trying to use some string functions in stdio, sprintf(), to put some strings together to send over bluetooth. When I first tried to use it I got a lot of undefined errors because there was nothing at the beginning of the linkerfile such as GROUP(libcr_nohost.a libcr_c.a libcr_eabihelpers.a). I added that in and I was no longer getting a ton of undefined references but yet I still have a a single undefined reference to `_pvHeapStart' which will not allow my program to compile. I am not sure how to resolve this. I tried turning on managed linker settings and following nxps guide to change the library to redlib no host / semi host and neither worked and gave me a tons of undefined references. I ended up changing it back to use the linkerfile. The linker file is the one included with the ble uart freertos example project in the sdk. I am not sure what to do to get this to work.
This was the guide I was following which appears to be dated a bit. Not sure if it no longer works with the current sdk/mcuxpresso.
Using your own linker scripts
I have attached the project with the group() in the linkerscript and stdio.h included in wirelessuart.c