Date: Sat, 9 Apr 2022 18:44:33 +0200 From: Tomek CEDRO <tomek@cedro.info> To: Axel Rau <Axel.Rau@chaos1.de> Cc: Hans Petter Selasky <hps@selasky.org>, hardware@freebsd.org Subject: Re: timeouts on USB ISP programmer Message-ID: <CAFYkXjmen4u6W3n9qXxp23r8x3=_SCngDrbXt9mOpRXPJUKYKQ@mail.gmail.com> In-Reply-To: <CAFYkXjkCZopGV2vOEtzNg_Ut76WuyHQ5NxxVOjoY-Sy-QNuGHw@mail.gmail.com> References: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <CAFYkXj=HMdxZG%2B8x0gpLCDy8cbu_qOpFqcN37RO9EG=WOBHkqw@mail.gmail.com> <CAFYkXjmjnFX1a3%2BCQxAxdwX=-oASSEWLdzrmx=%2B4QbX3_Og2Gw@mail.gmail.com> <CAFYkXjmgLi0F4gLVWQxtVwS6tCXCni%2BxU2-7KQM4ve%2B%2B-aEiBw@mail.gmail.com> <CAFYkXjnG5uOzF5_BbNZUgzBzTN8hpU9RmTTh1h_KDZ0EonZgEQ@mail.gmail.com> <CAFYkXjnbneNUszR8ZwS50xY8924uvCQyYQ9d3ohT_t1HZrjmDw@mail.gmail.com> <CAFYkXjmf8DpZw5hQ6Cc_FBurHufKNHhKGYiXpK%2BArB0SGCbqsg@mail.gmail.com> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <CAFYkXjnwvba60u3_tRMReEiyb5dohNZDLoenZWieNB2q_c_-0w@mail.gmail.com> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <CAFYkXjk2TgdC65j1YZqYw2AHn2zMVR2uZ52NTF8jTGVPRV60sg@mail.gmail.com> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <CAFYkXjkCZopGV2vOEtzNg_Ut76WuyHQ5NxxVOjoY-Sy-QNuGHw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ee8e3f05dc3c1b33 Content-Type: text/plain; charset="UTF-8" Two importan things I have noted while reading AVR datasheets: 1. Programming voltage is 5V. Unless reset is disabled then 12V is required on reset line. This is important if we program bare chip or chip on the board surrounded by components (that may not be 5V tolerant). 2. There are various programming protocols and interfaces for various avr chips. For instance Xplained416XNANO uses DebugWIRE protocol and connection to target MCU. From ATTiny85 datasheet it also looks it uses DebugWIRE for flashing and debug. But Xplained104XNANO uses TWI connection and protocol (the same as ATTiny10). I am working on using Xplained104XNANO to program ATtiny10, I have connection to Programmer, but simple rewire does not work (yet) to communicate with ATtiny10. Looks like knowing datasheet details and schematics of the hardware should not be skipped :-) -- CeDeROM, SQ7MHZ, https://www.tomek.cedro.info --000000000000ee8e3f05dc3c1b33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">Two importan things I have noted while reading AVR datash= eets:<div dir=3D"auto"><br><div dir=3D"auto">1. Programming voltage is 5V. = Unless reset is disabled then 12V is required on reset line. This is import= ant if we program bare chip or chip on the board surrounded by components (= that may not be 5V tolerant).</div><div dir=3D"auto"><br></div><div dir=3D"= auto">2. There are various programming protocols and interfaces for various= avr chips. For instance Xplained416XNANO uses DebugWIRE protocol and conne= ction to target MCU. From ATTiny85 datasheet it also looks it uses DebugWIR= E for flashing and debug. But Xplained104XNANO uses TWI connection and prot= ocol (the same as ATTiny10).</div><div dir=3D"auto"><br></div><div dir=3D"a= uto">I am working on using Xplained104XNANO to program ATtiny10, I have con= nection to Programmer, but simple rewire does not work (yet) to communicate= with ATtiny10.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Looks li= ke knowing datasheet details and schematics of the hardware should not be s= kipped :-)</div><div dir=3D"auto"><br><div data-smartmail=3D"gmail_signatur= e" dir=3D"auto">--<br>CeDeROM, SQ7MHZ, <a href=3D"https://www.tomek.cedro.i= nfo">https://www.tomek.cedro.info</a></div></div></div></div> --000000000000ee8e3f05dc3c1b33--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjmen4u6W3n9qXxp23r8x3=_SCngDrbXt9mOpRXPJUKYKQ>