AnsweredAssumed Answered

Implement debug output to ble example frdm-kw41z

Question asked by Artem Kabakov on Dec 27, 2017
Latest reply on Jan 9, 2018 by Gerardo Rodríguez

Hi, I ran and tested hello_world project, debug output work. I'm trying to set up debug functionality in ble prj (MCUXpresso 10.0.2_411, SDK2.2_MKW41Z, frdmkw41z_wireless_examples_bluetooth_temperature_sensor) and have problem.
1) I added to linker script GROUP (libcr_semihost_nf.a libcr_c.a libcr_eabihelpers.a) and _pvHeapStart region.
2)Preprocessor:

CR_INTEGER_PRINTF

DEBUG

FRDM_KW41Z

FREEDOM

PRINTF_FLOAT_ENABLE=0

SCANF_FLOAT_ENABLE=0

PRINTF_ADVANCED_ENABLE=0

SCANF_ADVANCED_ENABLE=0

SDK_DEBUGCONSOLE=0

__MCUXPRESSO

__USE_CMSIS

CPU_MKW41Z512VHT4_cm0plus

CPU_MKW41Z512VHT4
__REDLIB__
3)Calling 
BOARD_InitPins();
BOARD_BootClockRUN();
BOARD_InitDebugConsole();

PRINTF("hello world.\r\n");

 

 

 

But nothing is output to the console. What's wrong?

Outcomes