row****com
We are using the chip of the GR5513.
There is the simple code inherited from the rtos sample. When I using the UART mode, It can be fast output on the terminal, but when I selected RTT, the output in the terminal was too slow. The duration of the two items about 1s.
What's different between of them.
static void vEmpty(void *arg)
{
while(1)
{
APP_LOG_INFO("%s: %d\r\n", __func__, __LINE__);
app_log_flush();
vTaskDelay(10);
};
}
/**
*****************************************************************************************
* @brief main function
*****************************************************************************************
*/
int main(void)
{
app_periph_init(); /*<init user periph .*/
APP_LOG_INFO("\r\nBuild: %s-%s\r\n", __DATE__, __TIME__);
app_log_flush();
xTaskCreate(vEmpty, "empty", 512, NULL, configMAX_PRIORITIES - 1, NULL);
vTaskStartScheduler(); /*< freertos run all tasks*/
for (;;); /*< Never perform here */
}
zhongchengzhi
Hi, we have seen your question, we are analysing now.
153***452
Refer to the program you provided above to adapt in the RTOS project, and finally the RTT printing
message is normal, as shown in the figure below.
RTT works properly and there are two points to focus on. (1) RTT uses JLINK communication (IO0 and
IO1), at this time, it needs to be pwr_mgmt_mode_set (PMR_MGMT_SLEEP_MODE) in
user_periph_setup.c; Replace pwr_mgmt_mode_set (PMR_MGMT_ACTIVE_MODE); (2) Reference GR551x Developer
Guide,this is illustrated in Figures 30 and 31. In addition to this, #define APP_LOG_PORT 1 in custom_config.h.
Referring to the above method, RTT cannot be printed yet. You can provide more detailed
information, such as your SDK version information.
Open WeChat, use "Scan" to follow.