16
NXPTM M522XX, KINETIS and i.MX RT / Undefined reference to _sbrk
« on: May 30, 2018, 12:13:03 PM »
Hi,
Been working to port the original project (based on Processor Expert and CodeWarrior) to uTasker and MCUXpresso. Things are going quite smoothly, support is great, but, as some parts of my code use dynamic memory allocation, ran into an 'undefined reference _sbrk' linker error. Did some digging and found the reason to be the lack of libcr_c.a and libcr_eabihelpers.a, which, as far as I can work out, are archives with Redlib implementations for these functions.
The new linker error is an undefined reference to _pvHeapStart which I can easily sort by defining those symbols in the linker file, but it somehow doesn't feel right.
Thanks!
Been working to port the original project (based on Processor Expert and CodeWarrior) to uTasker and MCUXpresso. Things are going quite smoothly, support is great, but, as some parts of my code use dynamic memory allocation, ran into an 'undefined reference _sbrk' linker error. Did some digging and found the reason to be the lack of libcr_c.a and libcr_eabihelpers.a, which, as far as I can work out, are archives with Redlib implementations for these functions.
The new linker error is an undefined reference to _pvHeapStart which I can easily sort by defining those symbols in the linker file, but it somehow doesn't feel right.
Thanks!