公关oblem with arch_printf

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
公关oblem with arch_printf

Hi there,

It seems that even I did follow this linkhttps://support.dialog-semiconductor.com/faq/how-debug-uart. It seems to be a problem for my Tera Term to display the output from the arch_printf function. I do not know what is the reason for this since I have defined the variables according to the respective link. I put the arch_printf just before the while (1) loop in the arch_main.c. Any advice will do. Thanks!

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

As mentioned in the previous thread please use the SDK5 instead of SDK3, regarding the FAQ that you found this is for a much older SDK 3.0.2.1. Apart from that since you are using the SDK3.0.10.1 which is the only available release for the 3.0.10 in the previous software releases in order print with the arch_printf() what you should do is the following (tested on the template_project).

  • define the CFG_PRINTF in the da14580_config.h file
  • change the port/pins to the corresponding port/pins that you have set and connected on the dev kit (for example on the pro dev kit in the set_pad_functions() function change the TX to GPIO_PORT_0 and GPIO_PIN_4 and for the RX to GPIO_PORT_0 and GPIO_PIN_4), you will have to change the pins to the GPIO_reservations() function.
  • After you're done with that include the app_console.h file and use the arch_printf() function in order to print.

Thanks MT_dialog

herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
Hi there,

Hi there,

I have tried but it still cannot print. Here's the attachment that you can have a look. Hopefully, you can find some errors. Thank you very much!

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

In the attachments that you have uploaded you have the port/pin of the UART in their original configuration GPIO_PORT_1 and GPIO_PIN_2 and GPIO_PIN_3, if you wish to use those ports for printing you will need an additional FTDI cable to connect to those ports or you can use the FTDI of the pro kit or the Jlink from the basic kit, you will just need to connect the P12 and P13 to the RX/TX of the FTDI or JLINK depending on which dev kit you are using with fly wires or change the pin/port configuration as i ve indicated above in order to re-configure the pins and just use the default jumper configuration that dev kits have.

Thanks MT_dialog

herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
Thanks!..It works now.

Thanks!..It works now.