AnsweredAssumed Answered

MCUXpresso Debugger Console with LPC-Link2 (LPC4370)

Question asked by Simon Prentice on Jul 19, 2018
Latest reply on Jul 24, 2018 by Simon Prentice

I have two LPC-Link2 boards; one as the debugger and one as the target.

MCUXpresso IDE v10.2.0 [Build 759] [2018-05-15] .

Thanks to the NXP community I now have Fast GPIO (100MHz) and HSADC (80Msps).

I now also have a massive array full of data which I want to output to a format I can use to evaluate it.


As yet I've not managed to get data output to the Debug Console and need some help getting it running.


I went back a step and started with the periph_systick example.

Set the library as Redlib semihost (in Settings->MCU Linker->Managed Linker Script)


Added the following to the code and run.



The Debugger Console output has some information regarding the status of the debug but none of the 'user' output data.

GNU gdb (GNU Tools for Arm Embedded Processors 7-2017-q4-major)
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word".
Program stopped.
0x10402d62 in ?? ()
No line 85 in file "C:/nxp/workspace/periph_systick/src/systick.c".
Temporary breakpoint 2, main () at ../src/systick.c:72
72  SystemCoreClockUpdate();
Note: automatically using hardware breakpoints for read-only addresses.
Breakpoint 4, main () at ../src/systick.c:83
83   DEBUGOUT("talk\r\n");
Breakpoint 3, main () at ../src/systick.c:84
84   printf("talk\r\n");


What obvious thing have I missed this time?


Full code below:

int main(void)
 /* Enable and setup SysTick Timer at a periodic rate */
 SysTick_Config(SystemCoreClock / TICKRATE_HZ);
 while (1) {

Thanks, Simon.