Learn MoreFAQsTutorials

3 posts / 0 new
Last post
jlabuac
Offline
Last seen:1 year 2 months ago
加入:2017-04-20 06:06
Serial Debug

Hi,

I have been trying to enable the serial debug using your tutorial (https://support.dialog-semiconductor.com/system/files/resources/Training...) but could not get any message out. I tried both Tera Term and the SmartSnippet ToolBox to view uart messages but was unsuccessful.

I am using the pro development kit.

Device:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi jlabuac,

Hi jlabuac,

I dont see any issues with the SDK and i am perfectly able to print via the arch_printf() function, please re-check your configuration and make sure that its like below.

  • #define CFG_PRINTF in the da1458x_config_basic.h
  • Change the uart ports of the fw and assign the UART_TX port/pin to P04 and UART_RX port/pin to P05 (make sure that the configuration that you have changed is under the HW_CONFIG_PRO_DK and that this the board declared in the HW_CONFIG definition).
  • Invoke the arch_printf() function in order to print for example when the device starts advertising.
  • 包括arch_console.h file.

If there is no printing please try the above on a out of a box SDK.

Thanks MT_dialog

jlabuac
Offline
Last seen:1 year 2 months ago
加入:2017-04-20 06:06
I checked the header file

I checked the header file definition again and it seemed that I missed the "#undef CFG_PRINTF" at the bottom because I defined another one at the top.

I also notice that your definition is UART2_TX_GPIO_PORT but used GPIO_UART2_TX_PORT.

After doing the necessary changes, I am now able to get some debug messages.