Debug version of newlib

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug version of newlib

245 Views
davenadler
Senior Contributor I

Using latest MCUXpresso for an LPC55S69, need to debug a possible newlib problem.
For now we'll concentrate on variant full newlib (not nano), none.
Thus a few questions for NXP:

  1. have NXP published the debug version of newlib (if so, where, if not, why not)?
  2. where is the build script NXP have used for newlib?
  3. have NXP made any modifications to newlib, or used unchanged version 3.1.0?

Thanks!
Best Regards, Dave
PS: @v_canoz - This is regarding your concurrency issue...

Tags (2)
0 Kudos
4 Replies

222 Views
davenadler
Senior Contributor I

Thanks @converse, good to know NXP did not make mods.
But I did not find any newlib debug builds on the ARM site.
Do you know where I can find debug version(s) of newlib, which is my main question?
Thanks,
Best Regards, Dave

0 Kudos

218 Views
ErichS
Senior Contributor II

Hi Dave,

to my knowledge there is no pre-built debug version of the library. What I did in the past (but not recently) was building it myself:

https://mcuoneclipse.com/2014/08/23/gnu-libs-with-debug-information-rebuilding-the-gnu-arm-libraries...

you will be better better off building it on Linux.

Erich

0 Kudos

205 Views
davenadler
Senior Contributor I

Hi @ErichS - I saw your excellent (as always) page, where I could see building newlib is a PITA. Perhaps I'll spin up a Linux VM to build it, but that always wastes a few hours too unfortunately. @v_canoz has a concurrency problem, which looks like a real platform issue (and not related to free storage). Seems really unlikely but might be GCC runtime as built for ARM or FreeRTOS. He's come up with a trivial test case that crashes despite plenty of stack space and no obvious configuration settings error. I checked all the usual suspects. More likely MCUXpresso build setting wrong somehow, but I don't see it yet.

0 Kudos

241 Views
converse
Senior Contributor IV

NXP take their GNU Tools releases (unchanged) directly from the ARM GNU Tools project. Everything you need can be found there:

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-...

If you think there is a bug, search the GNU newlib forum

0 Kudos