CN / EN
CN / EN

Ask a New Question

Get Supports

If you need one-on-one support for confidential technical issues with your project, please click on "Contact Us" below.

RTT output slow GR551x

row****com

2023-04-28 10:05

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 */
}



0 Favorites

0 Likes

2 Answers

zhongchengzhi

Goodix Employee
2023-05-03 20:01

Hi, we have seen your question, we are analysing now.

0 Comments

0 Likes

0 Favorites

Your comment

153***452

2023-05-04 19:33

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.

0 Comments

0 Likes

0 Favorites

Your comment

You can answer questions after logging in, please or register

Your Voice Matters
Contact Sales

Scan to follow

Open WeChat, use "Scan" to follow.