Seeed-Studio / Seeed_Platform

27 stars 23 forks source link

Can't upload firmware to Seeeduino LoRaWAN since SerialDBG definition is missing #16

Closed MohsinEngineer closed 4 years ago

MohsinEngineer commented 4 years ago

The wiki for Seeeduino LoRaWAN board: http://wiki.seeedstudio.com/Seeeduino_LoRAWAN/ mentions the procedure for uploading the firmware to the Seeeduino Board.

The problem is that uploading the second sketch gives error "SerialDBG" is not defined. I looked into the core code and found that SERCOM1 pins PA30/PA31 which was used for SerialDBG uptil version 1.3.0 is no longer defined in the latest version 1.6.0 of Seeed SAMD Boards.

The arduino_zero variant.cpp file mentions it using for SWCLK and SWDIO purposes in the version 1.6.0 compared to TX & RX in version 1.3.0.

Due to hardware connections, firmware cannot be uploaded using any other pins on the MCU.

MohsinEngineer commented 4 years ago

Currently solution is making a SoftwareSerial on the pins (44/45) to simulate the Serial required to upload the firmware to Seeeduino LoRaWAN.

Either the wiki should be updated or SerialDBG definition should also be included in the upcoming versions.