Re: RP2040 reset idea

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: RP2040 reset idea
De : JL (at) *nospam* gct.com (john larkin)
Groupes : comp.sys.raspberry-pi sci.electronics.design
Date : 17. Sep 2024, 15:15:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <3h3jej5072rp8v7dou767q1k75j7jrneeu@4ax.com>
References : 1 2
User-Agent : ForteAgent/8.00.32.1272
On Tue, 17 Sep 2024 10:49:58 +0200, Arie de Muijnck <noreply@ademu.nl>
wrote:

On 2024-09-17 04:58, john larkin wrote:
The RP2040 has a cool mode where it can be made to boot up with the
USB port looking like a memory stick. That's great for software
installs or upgrades. The Pico board has a BOOT button on the board;
if the pico is powered up with the button pushed, it goes into that
boot mode.
 
But if I have a product (actually a family of products) in a nice
aluminum box, a user would have to remove the top cover, remove all
power sources (there can be three), and hold the button down while
reconnecting power.
 
Some of my customers also want to lock a box such that it's impossible
to write to any nonvolatile memory while it's in a secure area.
 
So here's an idea: a small hole in the box allows a toothpick or a
paper clip to push a button. A short push is a regular reset. A long
push is a memory-stick mode boot. We can have a rotary switch LOCK
hole too.
 
https://www.dropbox.com/scl/fi/bbhdy053xsdzv77g0brc5/B-box_Reset_Button_3.jpg?rlkey=40ozzdvczf4z8625u8i081a9b&raw=1
 
Does that look like it will work? The paranoid customer can pave over
the two holes, and even the end-plate screws, with an official-looking
sticker.
 
Schmitt trigger U3 is unfortunate and likely unnecessary, but it
insures against a low-probability hazard.
 
>
I used the same idea, but with less hardware. The switch triggered (RC differentiator) the reset pulse and the MCU senses the state of the switch after the reset pulse trailing edge. I used the bootloader code for that timing. The RP2040 could sense the switch state on the BOOT- pin after a long (5 second?) reset pulse, but that would mean a slow start on each power on.

My circuit doesn't delay a normal powerup. That's dominated by the
roughly 200 msec reset generated by the MAX809 after the 3.3 supply
stabilizes.

>
I think your idea would work OK, just a bit complex. Just NEVER short a cap with a switch (or relay) without a series resistor.

I don't think the 10u cap will weld the contacts of the pushbutton.


>
Arie

Date Sujet#  Auteur
17 Sep 24 * RP2040 reset idea36john larkin
17 Sep 24 +* Re: RP2040 reset idea2Sylvia Else
17 Sep 24 i`- Re: RP2040 reset idea1john larkin
17 Sep 24 +* Re: RP2040 reset idea29The Natural Philosopher
17 Sep 24 i+- Re: RP2040 reset idea1john larkin
17 Sep 24 i`* Re: RP2040 reset idea27john larkin
17 Sep 24 i `* Re: RP2040 reset idea26The Natural Philosopher
18 Sep 24 i  `* Re: RP2040 reset idea25john larkin
18 Sep 24 i   +* Re: RP2040 reset idea3john larkin
19 Sep 24 i   i`* Re: RP2040 reset idea2Lawrence D'Oliveiro
19 Sep 24 i   i `- Re: RP2040 reset idea1John R Walliker
20 Sep 24 i   `* Re: RP2040 reset idea21Lasse Langwadt
20 Sep 24 i    `* Re: RP2040 reset idea20The Natural Philosopher
20 Sep 24 i     `* Re: RP2040 reset idea19Theo
20 Sep 24 i      `* Re: RP2040 reset idea18john larkin
21 Sep 24 i       `* Re: RP2040 reset idea17The Natural Philosopher
21 Sep 24 i        +* Re: RP2040 reset idea15john larkin
21 Sep 24 i        i`* Re: RP2040 reset idea14The Natural Philosopher
21 Sep 24 i        i `* Re: RP2040 reset idea13john larkin
21 Sep 24 i        i  +* Re: RP2040 reset idea10Phil Hobbs
21 Sep 24 i        i  i`* Re: RP2040 reset idea9john larkin
21 Sep 24 i        i  i +* Re: RP2040 reset idea6Phil Hobbs
22 Sep 24 i        i  i i`* Re: RP2040 reset idea5john larkin
22 Sep 24 i        i  i i `* Re: RP2040 reset idea4The Natural Philosopher
22 Sep 24 i        i  i i  +- Re: RP2040 reset idea1john larkin
23 Sep 24 i        i  i i  `* Re: RP2040 reset idea2druck
24 Sep 24 i        i  i i   `- Re: RP2040 reset idea1Bob Martin
22 Sep 24 i        i  i `* Re: RP2040 reset idea2The Natural Philosopher
22 Sep 24 i        i  i  `- Re: RP2040 reset idea1john larkin
22 Sep 24 i        i  `* Re: RP2040 reset idea2The Natural Philosopher
22 Sep 24 i        i   `- Re: RP2040 reset idea1john larkin
22 Sep 24 i        `- Re: RP2040 reset idea1The Natural Philosopher
17 Sep 24 +* Re: RP2040 reset idea2john larkin
17 Sep 24 i`- Re: RP2040 reset idea1Arie de Muijnck
17 Sep 24 `* Re: RP2040 reset idea2Theo
18 Sep 24  `- Re: RP2040 reset idea1john larkin

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal