AnsweredAssumed Answered

printf causing hard fault in NewLibNano(semihost)

Question asked by leo838 on Dec 8, 2019
Latest reply on Dec 14, 2019 by leo838

Hello All,


I recently tried running demo programs (provided in an LPC812 SDK) in debug mode on a LPC812 Xpresso board (eg. lpcxpresso812max_sctimer_16bit_counter ) & because of memory space constraints was forced to compile it with the Newlibano(semihost) library. This resulted during running in a hard fault (redirection to  function void HardFault_Handler(void)). Once the printf's were committed out the program executed normally.


Am I doing something wrong? From what I've read printf's should be supported in this library./ environment.