[SOLVED] ATWINC1500 debug UART sends garbage although it shouldn't

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

 

We are evaluating the ATWINC1500 module. To make our life easier we connected an WINC1500-XPRO module to an SAMD21 X board and tried a couple of examples which went well. However, we could not use the debug UART on the module. We soldered the necessary 3 pins (GND, TX, RX) to J103 and connected to a CP2103 USB UART converter. According to the user guide of the module, we should be able to receive debug output with br 115200 8N1. Only garbage we could receive and we tried with 2 USB-UART converters. We even tried other common baud rates and settings but in vain. We have no idea how to proceed.

 

Please note that we were uploading some certs with the original example firmware upgrade application (code unmodified, only root certs were added).

 

Thanks!

This topic has a solution.
Last Edited: Wed. Feb 3, 2021 - 09:14 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SOLVED: the baud rate is actually  460800 contrary to the module's user guide where it is stated as 115200.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sgergo wrote:
SOLVED

please see Tip #5 in my signature, below, for how to mark the solution:

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The baud rate is 115200 on all the WINC1500/WILC1000 modules I've used.

 

It sounds like your CPU clock is 4 times slower than your firmware is expecting.

 

A quick look on the Tx/Rx pins with a 'scope will clear up any confusion.

 

Steve

 

Maverick Embedded Technologies Ltd. Home of Maven and wAVR.

Maven: WiFi ARM Cortex-M Debugger/Programmer

wAVR: WiFi AVR ISP/PDI/uPDI Programmer

https://www.maverick-embedded.co...