Coder Social home page Coder Social logo

Comments (6)

MCUdude avatar MCUdude commented on June 11, 2024

Are you using an ISP programmer or a bootloader? Sounds like a hardware or driver issue to me...

from mightycore.

TheEccentricGenius avatar TheEccentricGenius commented on June 11, 2024

I am using a serial chip CH340E on a breadboard with the correct bootloader for serial and 16MHZ external crystal burned.

The circuitry is a 10K pull down resistor and 100nF capacitor hooked up to dtr.

This all works perfectly on a ATmega328P but not on the 32A....Maybe the is an issue with the chip? they were sold as "seller refurbished" but work fine in all other aspects.

from mightycore.

MCUdude avatar MCUdude commented on June 11, 2024

I've used a CH340E on many boards and never had an issue with them. I buy them from LCSC.com, so I know these chips are from a trusted supplier. It may be the ATmega32 chip. If you measure the reset line with an oscilloscope you should be able to see the reset pulse appear. You can try to swap the 100nf capacitor with a 1uF or even 10uF to see if it helps.

from mightycore.

TheEccentricGenius avatar TheEccentricGenius commented on June 11, 2024

I'll try that out tomorrow.... I find it a pain that this circuit works perfectly well with the 328P.
The 32A chip may be faulty however.

from mightycore.

MCUdude avatar MCUdude commented on June 11, 2024

It may be as simple as the "programming ended" reset pulse is slightly shorter than the start pulse. And since the reset capacitor is quite small, maybe the reset line isn't pulled all the way down.

However, since MightyCore uses the latest version of Avrdude, you can actually connect the reset pin directly to the DTR or RTS pin on your USB to serial adapter, given that both the adapter and the microcontroller is running at the same voltage.

from mightycore.

TheEccentricGenius avatar TheEccentricGenius commented on June 11, 2024

I figured out how to make reset work....Just connected a diode parallel with the resistor like the Arduino auto-reset circuit and bingo it works.

I sampled it with the oscilloscope it was a spike down(not completely) and then a smaller spike up.... It looked a lot nicer with the diode in.

Thanks so much for your help MCUdude.

from mightycore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.