Orion Board debugWire does not work


#1

Hello just tried to debug my new orion code. just after initiating debugWire fuse DWEN my board stopped responding. Digging a little bit deeper i’ve figured out that there is a 1 µF capacitor on reset switch which keeps debug wire from working just had a look on the schematic from Atmel. They use a smaller capacitor.

Could you please point me to the propper part C14 on the board so i can fix that.

For future products it makes sense to keep debug wire working with AVR Dragon. That also would reduce time to maket for accessories.

Current state of my Orion board bricked :frowning:

Kind Regards Jean


#2

Hi Jean,

Thank you for posting here.
To use Debug Interface, you must remove the capacitor C14 on the reset pin.

Atmel official data sheet:
• Pull-up resistors on the dW/(RESET) line must not be smaller than 10k. The pull-up resistor is not required for debugWIRE functionality.
• Connecting the RESET pin directly to VCC will not work.
• Capacitors connected to the RESET pin must be disconnected when using debugWire.
• All external reset sources must be disconnected.

If you use the debug interface ,the board becomes AVR, not arduino.
Check the circuit digram as below, hope it can help:

Please feel free to contact us if you need help.

Best regards!
Christina

Makeblock Community Team


#3

Thank you you very much ,

got my board back to live. Debugging is fun, just the bootloader get lost.

Which bootloader image / fuse settings do you use for orion board ?

Do you have a custom one ? or can i use the arduino UNO bootloader ?


#4

Hi Jean,

Check the code below:

uno.name=Arduino Uno
uno.upload.protocol=arduino
uno.upload.maximum_size=32256
uno.upload.speed=115200
uno.bootloader.low_fuses=0xff
uno.bootloader.high_fuses=0xde
uno.bootloader.extended_fuses=0x05
uno.bootloader.path=optiboot
uno.bootloader.file=optiboot_atmega328.hex
uno.bootloader.unlock_bits=0x3F
uno.bootloader.lock_bits=0x0F
uno.build.mcu=atmega328p
uno.build.f_cpu=16000000L
uno.build.core=arduino
uno.build.variant=standard

You can find these from Arduino UNO official library as below:
C:\Program Files
(x86)\Arduino\hardware\arduino\bootloaders\optiboot\optiboot_atmega328.hex

Let me know if you have further question, thank you.

Christina@makeblock.cc
Makeblock Community Team


#5

Perfect, now i can debug it with AVR Studio and use the Arduino. Is it possible to replace C14 by a transistor kind of open collector reset ? I’m not sure what is default output of CH340G DTR# but i gues its low active so a pnp could do the job for initiating arduino download. Or use a 100K for RN2D and a 10K series resistor to DTR# ?
Just an idea.
Kind Regards Jean


#6