Re: RP2040 reset idea

Liste des GroupesRevenir à se design 
Sujet : Re: RP2040 reset idea
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.sys.raspberry-pi sci.electronics.design
Date : 21. Sep 2024, 09:12:06
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vclv4m$1he37$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 20/09/2024 19:00, john larkin wrote:
On 20 Sep 2024 11:30:13 +0100 (BST), Theo
<theom+news@chiark.greenend.org.uk> wrote:
 
In comp.sys.raspberry-pi The Natural Philosopher <tnp@invalid.invalid> wrote:
On 19/09/2024 23:09, Lasse Langwadt wrote:
On 9/18/24 00:33, john larkin wrote:
>
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
>
>
Definitely uf2 here.
>
And no, you cannot 'delete or add files' to it.
The action of pretending to download a uf2 file into what appears to be
an empty drive, erases everything on it and programs the flash.
>
There are no visible files to delete.
>
Neat.  So basically you throw some files at it, which causes a series of
block writes.  UF2 picks out specially tagged block writes and uses that to
program the flash.  It doesn't actually care what other stuff is written to
the flash as it ignores all of that, so it doesn't care about all the FAT
stuff or whatever junk your OS decides to put on there.
>
Means you can write any kind of files to it and it'll only pay attention to
the specific tagged blocks.  If the OS is happy to cache the medium (as many
do) you could maybe even reformat it as some other filesystem like NTFS and
it would still handle writing the UF2 file correctly.
>
Theo
 My Pi guy says that you can only write one file, and the act of
writing that file wipes anything that was there before. So the flash
probably doesn't have a file structure, and the USB memory-stick write
is, well, a sort of cheap trick.
 That's workable, if inelegant. We can pack everything we need into
that one big file and users can upgrade box code in the field pretty
easily.
 
It gets nastier if you want to preserve config info across reboots.
It is possible to read and write areas of flash from the code, but its no picnic.
And it gets wiped when new code is uploaded
It is an area I will have to tackle for one project tho.
--
Microsoft : the best reason to go to Linux that ever existed.

Date Sujet#  Auteur
17 Sep 24 * RP2040 reset idea35john larkin
17 Sep 24 +* Re: RP2040 reset idea2Sylvia Else
17 Sep 24 i`- Re: RP2040 reset idea1john larkin
17 Sep 24 +* Re: RP2040 reset idea28The Natural Philosopher
17 Sep 24 i+- Re: RP2040 reset idea1john larkin
17 Sep 24 i`* Re: RP2040 reset idea26john larkin
17 Sep 24 i `* Re: RP2040 reset idea25The Natural Philosopher
18 Sep 24 i  `* Re: RP2040 reset idea24john 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 idea20Lasse Langwadt
20 Sep 24 i    `* Re: RP2040 reset idea19The Natural Philosopher
20 Sep 24 i     `* Re: RP2040 reset idea18Theo
20 Sep 24 i      `* Re: RP2040 reset idea17john larkin
21 Sep 24 i       `* Re: RP2040 reset idea16The Natural Philosopher
21 Sep 24 i        +* Re: RP2040 reset idea14john larkin
21 Sep 24 i        i`* Re: RP2040 reset idea13The Natural Philosopher
21 Sep 24 i        i `* Re: RP2040 reset idea12john larkin
21 Sep 24 i        i  +* Re: RP2040 reset idea9Phil Hobbs
21 Sep 24 i        i  i`* Re: RP2040 reset idea8john larkin
21 Sep 24 i        i  i +* Re: RP2040 reset idea5Phil Hobbs
22 Sep 24 i        i  i i`* Re: RP2040 reset idea4john larkin
22 Sep 24 i        i  i i `* Re: RP2040 reset idea3The Natural Philosopher
22 Sep 24 i        i  i i  +- Re: RP2040 reset idea1john larkin
23 Sep 24 i        i  i i  `- Re: RP2040 reset idea1druck
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