weatherbox:bumblebee:bootloading_troubleshoot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
weatherbox:bumblebee:bootloading_troubleshoot [2021/03/14 22:44]
lcorpuz
weatherbox:bumblebee:bootloading_troubleshoot [2022/03/08 04:29]
jgrous
Line 1: Line 1:
-Troubleshooting Bootloading Information:​ 
-  * Arduino to a Microcontroller:​ https://​www.arduino.cc/​en/​Tutorial/​BuiltInExamples/​ArduinoToBreadboard 
-  * Minicore Guide: https://​github.com/​MCUdude/​MiniCore#​wiring-reference ​ 
-  * Circuit IO Guide: https://​www.circuito.io/​blog/​atmega328p-bootloader/​ 
-  * Nick Gammon Bootloading:​ https://​www.gammon.com.au/​bootloader 
-  * More Nick Gammon: https://​github.com/​nickgammon/​arduino_sketches 
-  
  
-Troubleshoot Bootloading & FTDI Programming For:+**=== Updated Bootloading Procedure (February 7, 2022):​===** 
 +  * links to tutorials:  
 +  * https://​docs.arduino.cc/​built-in-examples/​arduino-isp/​ArduinoISP 
 +  * https://​docs.arduino.cc/​built-in-examples/​arduino-isp/​ArduinoToBreadboard 
 +  * Copy the schematic below but instead of using two Arduino Boards use one Arduino Board with ATMEGA 328P microcontroller as the programmer and the PCB as the target. On the PCB, pins MOSI, MISO and SCK are the same pins as digital pin 11, 12 and 13, respectively.  
 +  * {{:​weatherbox:​bumblebee:​programmer_to_target_2022-02-07_190812.png?​400|}} 
 +  * Linked here is the pin-out for the PCB.     
 +  * {{:​weatherbox:​bumblebee:​pcb_pin-out_2022-02-07_184917.png?​400|}} 
 +  * Once finished wiring the Arduino and PCB, Connect the Arduino to the computer and open Arduino IDE 
 +  * Open Arduino ISP under: File -> Examples -> 11.ArduinoISP -> ArduinoISP 
 +  * Tools should have the following configuration (Connect to port with (Arduino/​Genuino Uno)) 
 +{{:​weatherbox:​bumblebee:​screenshot_2022-02-07_184917.png?​400|}} 
 +  * Upload code to Arduino Uno: 
 +  * Once completed, burn bootloader under tools 
 +  * Once bootload is done with no errors move onto uploading code using the FTDI 
 +  * Now, take out the microcontroller from the Arduino and connect the Arduino to the PCB as described below. 
 +  * Also, connect the XBEE to the PCB shown below 
 +{{:​weatherbox:​bumblebee:​screen_shot_2022-02-07_at_19.41.53.png?​400|}} 
 +  * There should be five wires connected the Arduino to the PCB.  On the PCB, connect pins RX, TX , RESET, VCC, GND to TX, RX, RESET, 5V, GND to the Arduino, respectively. ​ This is different from the Arduino tutorial link as TX and RX must be swapped. 
 +  * Open Arduino ISP and go to file -> Examples -> Basics -> Fade and upload the code.  Check and make sure the LED on the PCB is fading in and out.  You can also try and upload your relay code to verify everything is working properly. 
 +  * Tools should have the following configuration  
 +{{:​weatherbox:​bumblebee:​screenshot_2022-02-07_184917.png?​400|}} 
 + 
 + 
 + 
 + 
 +**=== Troubleshoot Bootloading & FTDI Programming For: ===**
    It should be noted that a no communication code 0x0000 could be a hardware or software issue. ​    It should be noted that a no communication code 0x0000 could be a hardware or software issue. ​
    ​fastest way to verify a hardware issue is attempting to boot load a known good device.    ​fastest way to verify a hardware issue is attempting to boot load a known good device.
Line 47: Line 66:
       ​       ​
  
-How to bootload PCB boards+**=== How to bootload PCB boards: ===**
   * Open up board schematic & board layout (we used v4.0 but same process for both versions)   * Open up board schematic & board layout (we used v4.0 but same process for both versions)
   * Determine correct ISP pins for bootloading   * Determine correct ISP pins for bootloading
Line 57: Line 76:
   * Once upload to Arduino Uno is complete go to Tools and select correct configuration   * Once upload to Arduino Uno is complete go to Tools and select correct configuration
   * Tools should have the following configuration (Note: We are using the MiniCore Library to setup bootload/​FTDI programming upload)   * Tools should have the following configuration (Note: We are using the MiniCore Library to setup bootload/​FTDI programming upload)
-  * {{:​weatherbox:​bumblebee:​screenshot_2021-02-22_151542.jpg?400|}}+{{:​weatherbox:​bumblebee:​screenshot_2021-05-12_114407.jpg?400|}} 
   * Once completed, burn bootloader under tools   * Once completed, burn bootloader under tools
   * Once bootload is done with no errors move onto uploading code using the FTDI   * Once bootload is done with no errors move onto uploading code using the FTDI
 +
 +**=== Troubleshooting Bootloading Information:​===**
 +  * Arduino to a Microcontroller:​ https://​www.arduino.cc/​en/​Tutorial/​BuiltInExamples/​ArduinoToBreadboard
 +  * Minicore Guide: https://​github.com/​MCUdude/​MiniCore#​wiring-reference ​
 +  * Circuit IO Guide: https://​www.circuito.io/​blog/​atmega328p-bootloader/​
 +  * Nick Gammon Bootloading:​ https://​www.gammon.com.au/​bootloader
 +  * More Nick Gammon: https://​github.com/​nickgammon/​arduino_sketches
 +
  
  
  • weatherbox/bumblebee/bootloading_troubleshoot.txt
  • Last modified: 2022/03/08 04:29
  • by jgrous