Skip to main content

Serial Port is not working

1 year ago

Serial Port is not working

Posted byjon4790 points 3 replies
0 upvotes

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? :(

1 year ago

PM_Dialog

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

1 year ago

jon479 0 points

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 :)

1 year ago

PM_Dialog

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