avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inverting RST pin (using configuration file) not working on Raspberry Pi


From: John Klimek
Subject: Inverting RST pin (using configuration file) not working on Raspberry Pi?
Date: Tue, 1 Jun 2021 13:59:33 -0400

I'm using avrdude (v6.3-20171130) on my Raspberry Pi, but I need the
RST pin to be inverted because I'm using an NPN transistor to protect
the RPi from my Arduino's 5V power.

Here is the command line I'm using for testing:

avrdude -C /root/hid/.platformio/packages/tool-avrdude/avrdude.conf -C
+avrdude-rpi.conf -P /dev/spidev0.0:/dev/gpiochip0 -c rpi -p m32u4 -v
-v -v -v

Here is avrdude-rpi.conf:

programmer
        id = "rpi";
        desc = "RPi SPI programmer";
        type = "linuxspi";
        reset = ~25;
        baudrate = 400000;
;

Here is the avrdude output:

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is
"/root/hid/.platformio/packages/tool-avrdude/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular
file, skipping
         Additional configuration file is "avrdude-rpi.conf"

         Using Port                    : /dev/spidev0.0:/dev/gpiochip0
         Using Programmer              : rpi

avrdude done.  Thank you.

I've checked the RST pin (25) on my oscilloscope and it's not
triggering at all when I use the inverted (~) syntax.  If I remove the
(~) then it does trigger the RST pin but not inverted as I need.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]