Comments (6)
Are you using an ISP programmer or a bootloader? Sounds like a hardware or driver issue to me...
from mightycore.
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.
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.
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.
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.
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)
- Custom baud? HOT 2
- How to Solve avrdude.conf errors when programming Atmega324PB with USBasp and MightyCore on Arduino 1.8.19 HOT 4
- 10MHz external clock support HOT 1
- I cant compile code using mighty core even tho the code compilers using normal arduino , error exec: "cmd": executable file not found in %PATH% HOT 7
- Perhaps some setting of the delay/clock functions need to be revised. HOT 2
- Atmega324pb: OC1b vs XCK1, OC2A vs XCK2 HOT 6
- Feature request: add linuxgpio programmer to programmer options in arduino IDE HOT 7
- arduino-cli compile with --output-dir flag set fails to build *.with_bootloader.hex file. HOT 9
- ATmega1284 clock source fuses are not set HOT 9
- ATmega32 Serial doesn't work HOT 1
- No variants for ATmega32? HOT 2
- ATmega32 millis is not right using the 8 MHz internal oscillator? HOT 2
- Keep failure to flash the optiboot loader to the ATMEGA128P HOT 4
- urboot copy_flash_pages HOT 8
- Arduino IDE option for optiboot with version 3.0.0 HOT 12
- Error while burning bootloader (while using v3.0) HOT 1
- LED flashing on A, C, D, Atmega16 HOT 1
- Adding Profiles for 20 and 16 Mhz External clock (not crystal) - atmega32 HOT 1
- 3.0.1 issue "USBAPI.h uses delay.h -- which has an error when compiling" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mightycore.