如何打开uart2打印调试器通知吗ation

2 posts / 0 new
Last post
z20121202038
Offline
Last seen:3 years 11 months ago
Joined:2016-03-30 12:51
如何打开uart2打印调试器通知吗ation

hi,
The "arch_printf()" is frequently used. Then how to make them be called really.
I have defined "#define CFG_PRINTF" in the "da1458x_config_basic.h", but it still cannot work.
thanks.

Keywords:
Device:
Gongyu_Dialog
Offline
Last seen:3 days 17 hours ago
Joined:2016-04-27 07:07
static inline void schedule

static inline void schedule_while_ble_on(void)
{
.....
if (ble_evt_end_set)
{
uint32_t sleep_duration = 0;
rcx20_read_freq ();

//if you have enough time run a temperature calibration of the radio
if (lld_sleep_check(&sleep_duration, 4)) //6 slots -> 3.750 ms
// check time and temperature to run radio calibrations.
conditionally_run_radio_cals();
}
arch_printf_process(); ---------------------------------------------newly add
//grant control to the application, try to go to sleep
//if the applciation returns GOTO_SLEEP
if (!app_asynch_trm()) --------- by default , return false, then break
break;

//SDKIMPROVEMENTS Needs testing!! We can add the following condition and move
// it out of the loop
// we may consider putting it in before the app_asynch_trm
//if (GetBits16(CLK_CTRL_REG, RUNNING_AT_XTAL16M))

// execute the printf process
arch_printf_process();
}

Topic locked