• RP2040 reset idea

    From john larkin@3:770/3 to All on Mon Sep 16 19:58:04 2024
    XPost: sci.electronics.design

    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.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Sylvia Else@3:770/3 to john larkin on Tue Sep 17 12:16:55 2024
    XPost: sci.electronics.design

    On 17-Sept-24 10:58 am, 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.


    If the board needs to be powered up, rather than just reset, while the
    button is pressed, then how does your solution work? If not, then why is
    the fact that there are three power supplies relevant?

    Sylvia.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Arie de Muijnck@3:770/3 to john larkin on Tue Sep 17 10:49:58 2024
    XPost: sci.electronics.design

    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.

    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.

    Arie

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to john larkin on Tue Sep 17 11:07:17 2024
    XPost: sci.electronics.design

    On 17/09/2024 03: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.

    Thats' what my PICO powered thermostats have. For the onboard button though Resetting is done by pulling the power.

    The point is that if you do power up with the button pressed, you wipe
    the entire FLASH RAM I think.


    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.
    At a brief glance, yes, but I donbt see why a simmle disconnect power
    switch in addition to the onboard switch wouldn't be as easy.

    Schmitt trigger U3 is unfortunate and likely unnecessary, but it
    insures against a low-probability hazard.

    Once you start laying out a board, put everything on it you may need,
    Can always leave it out later


    --
    New Socialism consists essentially in being seen to have your heart in
    the right place whilst your head is in the clouds and your hand is in
    someone else's pocket.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From john larkin@3:770/3 to All on Tue Sep 17 07:10:39 2024
    XPost: sci.electronics.design

    On Tue, 17 Sep 2024 12:16:55 +0800, Sylvia Else <sylvia@email.invalid>
    wrote:

    On 17-Sept-24 10:58 am, 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.


    If the board needs to be powered up, rather than just reset, while the
    button is pressed, then how does your solution work? If not, then why is
    the fact that there are three power supplies relevant?

    Sylvia.

    Asserting BOOT- (or pushing the button on the Pico board) at the end
    of reset should launch it into boot mode. On the Pico board,
    asserrting RESET- is done by cycling the power.

    My user might have to remove all three power sources (PoE, 24 volt
    wart, USB) to force a reset, if we did the boot button like the Pico
    does.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From john larkin@3:770/3 to All on Tue Sep 17 07:15:23 2024
    XPost: sci.electronics.design

    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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From john larkin@3:770/3 to tnp@invalid.invalid on Tue Sep 17 07:20:54 2024
    XPost: sci.electronics.design

    On Tue, 17 Sep 2024 11:07:17 +0100, The Natural Philosopher <tnp@invalid.invalid> wrote:

    On 17/09/2024 03: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.

    Thats' what my PICO powered thermostats have. For the onboard button though >Resetting is done by pulling the power.

    The point is that if you do power up with the button pressed, you wipe
    the entire FLASH RAM I think.

    If BOOT- is low at the end of reset, it powers up in USB memory stick
    mode. I don't think that wipes the files stored in the big serial
    flash.




    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.
    At a brief glance, yes, but I donbt see why a simmle disconnect power
    switch in addition to the onboard switch wouldn't be as easy.

    There are three potential power sources to disconnect, and I don't
    really want a power switch.


    Schmitt trigger U3 is unfortunate and likely unnecessary, but it
    insures against a low-probability hazard.

    Once you start laying out a board, put everything on it you may need,
    Can always leave it out later

    The schmitt adds way under a tenth of a per cent to the board area and
    the cost, so may as well leave it in.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Arie de Muijnck@3:770/3 to john larkin on Tue Sep 17 17:39:28 2024
    XPost: sci.electronics.design

    On 2024-09-17 16:15, john larkin wrote:
    On Tue, 17 Sep 2024 10:49:58 +0200, Arie de Muijnck <noreply@ademu.nl>
    wrote:
    ...............
    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.


    Probably not weld, but destroy the plating. The peak current is very high.
    A 100R SMD resistor is not that expensive...

    Arie

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Theo@3:770/3 to john larkin on Tue Sep 17 16:42:36 2024
    XPost: sci.electronics.design

    In comp.sys.raspberry-pi john larkin <JL@gct.com> wrote:
    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

    Looks neat. But I wonder if there's a mechanical solution. eg give the customer a loop to put a padlock through to lock the lid, and hide the boot button behind, such that they can't press it without undoing the
    padlock. Could even be something simple like a Kensington lock slot where
    the boot button is deeply recessed in the slot - you have to stick a screwdriver in the slot and can't do so if there's a lock inserted.

    Of course that might cost more than your solution, so you can probably
    ignore me :)

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From john larkin@3:770/3 to tnp@invalid.invalid on Tue Sep 17 09:09:28 2024
    XPost: sci.electronics.design

    On Tue, 17 Sep 2024 11:07:17 +0100, The Natural Philosopher <tnp@invalid.invalid> wrote:

    On 17/09/2024 03: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.

    Thats' what my PICO powered thermostats have. For the onboard button though >Resetting is done by pulling the power.

    The point is that if you do power up with the button pressed, you wipe
    the entire FLASH RAM I think.


    My Pi guy verifies that entering boot mode doesn't change the contents
    of flash. Power cycle and things run like before.

    You had me worried!

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to john larkin on Tue Sep 17 17:21:36 2024
    XPost: sci.electronics.design

    On 17/09/2024 17:09, john larkin wrote:
    On Tue, 17 Sep 2024 11:07:17 +0100, The Natural Philosopher <tnp@invalid.invalid> wrote:

    On 17/09/2024 03: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.

    Thats' what my PICO powered thermostats have. For the onboard button though >> Resetting is done by pulling the power.

    The point is that if you do power up with the button pressed, you wipe
    the entire FLASH RAM I think.


    My Pi guy verifies that entering boot mode doesn't change the contents
    of flash. Power cycle and things run like before.

    You had me worried!


    Really?

    I guess whenever I entered that mode it was to download fresh code...


    --
    "What do you think about Gay Marriage?"
    "I don't."
    "Don't what?"
    "Think about Gay Marriage."

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From john larkin@3:770/3 to tnp@invalid.invalid on Tue Sep 17 15:33:14 2024
    XPost: sci.electronics.design

    On Tue, 17 Sep 2024 17:21:36 +0100, The Natural Philosopher <tnp@invalid.invalid> wrote:

    On 17/09/2024 17:09, john larkin wrote:
    On Tue, 17 Sep 2024 11:07:17 +0100, The Natural Philosopher
    <tnp@invalid.invalid> wrote:

    On 17/09/2024 03: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.

    Thats' what my PICO powered thermostats have. For the onboard button though >>> Resetting is done by pulling the power.

    The point is that if you do power up with the button pressed, you wipe
    the entire FLASH RAM I think.


    My Pi guy verifies that entering boot mode doesn't change the contents
    of flash. Power cycle and things run like before.

    You had me worried!


    Really?

    I guess whenever I entered that mode it was to download fresh code...

    It looks like a USB memory stick. You can delete or add files if you
    want.

    It boots CPU 0 (the one we call Alice) from a file with the extension
    .UL2

    Why .UL2 one wonders.

    We'll put a bunch of files into the flash. Code for Bob, the 2nd CPU.
    An FPGA bitstream file. A prototype calibration table. A README file
    to explain everything in plain English.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From john larkin@3:770/3 to theom+news@chiark.greenend.org.uk on Tue Sep 17 19:02:10 2024
    XPost: sci.electronics.design

    On 17 Sep 2024 16:42:36 +0100 (BST), Theo
    <theom+news@chiark.greenend.org.uk> wrote:

    In comp.sys.raspberry-pi john larkin <JL@gct.com> wrote:
    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

    Looks neat. But I wonder if there's a mechanical solution. eg give the >customer a loop to put a padlock through to lock the lid, and hide the boot >button behind, such that they can't press it without undoing the
    padlock. Could even be something simple like a Kensington lock slot where >the boot button is deeply recessed in the slot - you have to stick a >screwdriver in the slot and can't do so if there's a lock inserted.

    Of course that might cost more than your solution, so you can probably
    ignore me :)

    Theo

    It's a pretty small box.

    https://www.dropbox.com/scl/fi/phhyn6p5lnwyza9of9qil/B953_Right.jpg?rlkey=xuu5qclmygkruncrat6li1u3j&dl=0

    If we mount two in a 1U rack adapter, it wouldn't be practical to
    remove the covers.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From john larkin@3:770/3 to john larkin on Wed Sep 18 12:56:44 2024
    XPost: sci.electronics.design

    On Tue, 17 Sep 2024 15:33:14 -0700, john larkin <jl@650pot.com> wrote:

    On Tue, 17 Sep 2024 17:21:36 +0100, The Natural Philosopher ><tnp@invalid.invalid> wrote:

    On 17/09/2024 17:09, john larkin wrote:
    On Tue, 17 Sep 2024 11:07:17 +0100, The Natural Philosopher
    <tnp@invalid.invalid> wrote:

    On 17/09/2024 03: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.

    Thats' what my PICO powered thermostats have. For the onboard button though
    Resetting is done by pulling the power.

    The point is that if you do power up with the button pressed, you wipe >>>> the entire FLASH RAM I think.


    My Pi guy verifies that entering boot mode doesn't change the contents
    of flash. Power cycle and things run like before.

    You had me worried!


    Really?

    I guess whenever I entered that mode it was to download fresh code...

    It looks like a USB memory stick. You can delete or add files if you
    want.

    It boots CPU 0 (the one we call Alice) from a file with the extension
    .UL2

    Why .UL2 one wonders.

    We'll put a bunch of files into the flash. Code for Bob, the 2nd CPU.
    An FPGA bitstream file. A prototype calibration table. A README file
    to explain everything in plain English.


    Update:

    The Pico only allows one file to be saved to the flash using USB
    memory-stick mode.

    If you copy a bunch of files into the flash, Windows will lie about
    what's there, but there is really only one. If you disconnect the USB
    cable and reconnect, Windows will show the one file.

    The Pi tools support packing a bunch of things into that one file,
    including the executable for Alice, namely CPU0. Alice takes over and
    loads Bob, CPU1, and can access other components of the big file.

    Power cycling, normal or into USB memory stick mode, does not wipe
    that big file.

    There's no simple way to examine the components of the big file, other
    than to ask Alice. Alice knows.

    All that is based on experiment.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Lawrence D'Oliveiro@3:770/3 to john larkin on Thu Sep 19 02:45:34 2024
    XPost: sci.electronics.design

    On Wed, 18 Sep 2024 12:56:44 -0700, john larkin wrote:

    If you copy a bunch of files into the flash, Windows will lie about
    what's there, but there is really only one. If you disconnect the USB
    cable and reconnect, Windows will show the one file.

    What if you try it from Linux?

    Unlike Windows, Linux is less prone to lie about things.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Lasse Langwadt@3:770/3 to john larkin on Fri Sep 20 00:09:43 2024
    XPost: sci.electronics.design

    On 9/18/24 00:33, john larkin wrote:
    On Tue, 17 Sep 2024 17:21:36 +0100, The Natural Philosopher <tnp@invalid.invalid> wrote:

    On 17/09/2024 17:09, john larkin wrote:
    On Tue, 17 Sep 2024 11:07:17 +0100, The Natural Philosopher
    <tnp@invalid.invalid> wrote:

    On 17/09/2024 03: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.

    Thats' what my PICO powered thermostats have. For the onboard button though
    Resetting is done by pulling the power.

    The point is that if you do power up with the button pressed, you wipe >>>> the entire FLASH RAM I think.


    My Pi guy verifies that entering boot mode doesn't change the contents
    of flash. Power cycle and things run like before.

    You had me worried!


    Really?

    I guess whenever I entered that mode it was to download fresh code...

    It looks like a USB memory stick. You can delete or add files if you
    want.

    It boots CPU 0 (the one we call Alice) from a file with the extension
    .UL2

    Why .UL2 one wonders.

    We'll put a bunch of files into the flash. Code for Bob, the 2nd CPU.
    An FPGA bitstream file. A prototype calibration table. A README file
    to explain everything in plain English.

    sure it's not UF2?

    https://github.com/microsoft/uf2

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)