Serial Port is not working

⚠️
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.
4 posts / 0 new
Last post
jon479
Offline
Last seen:6 months 3 weeks ago
加入:2020-02-13 16:29
Serial Port is not working

In my DA14531 Development Kit-USB is the serial port not working anymore. I'm using keil debugger with the blinky example. The LED is blinking but if i connect Tera Term there is no UART Serial port output. I've used the SPI flash programmer to upload the blinky code once but i think that was a mistake as it doesn't work anymore since there. The firmware in the beginning worked and i could see the Mac address in the serial port. What did i do wrong? :(

Device:
PM_Dialog
Offline
Last seen:1 day 36 min ago
工作人员
加入:2018-02-08 11:03
Hi jon479,

Hi jon479,

Are you able to detect the COM port in the Windows Device Manager? I would suggest you to erase the SPI Flash using SmartSnippets Toolbox and try to reprogram it. Please make sur that you make the device bootable. If you download the blink fw in the System-Ram using Keil, is this working?

Please take a look into the following tutorial to get started with the DA14531 and SDK6:

Getting Started with SDK6 (HTML)

BLE Advertising Tutorial (HTML)

Thanks, PM_Dialog

jon479
Offline
Last seen:6 months 3 weeks ago
加入:2020-02-13 16:29
Thanks a lot for your answer!

Thanks a lot for your answer! I've managed to get the UART working with changing the user_periph_setup.h and the TX pin to P0_5. As the default is 1-wire UART. But how do I communicate through the terminal using RX and TX and debugg at the same time? I've tried to set the dip switches to 2 wire UART but if i want to use the SmartSnippeds Toolbox Booter it showes me to press the reset button but if i press it nothing happens. How can I load a firmware on the chip and use UART TX/RX? Thanks so much in advance for the help :)

PM_Dialog
Offline
Last seen:1 day 36 min ago
工作人员
加入:2018-02-08 11:03
Hi jon479,

Hi jon479,

You should use the Keil IDE in order to debug your code. Initially you should build the project. Then you should press the “Start/Stop Debug Session” button once, add a breakpoint somewhere in the code, and press the “Run” button.

Thanks, PM_Dialog