Arduino Yun Rev.2 - SD card

Ciao,

pochi giorni fa ho comprato un Arduino Yun Rev2.

Alla pagina:
"Getting Started with the Arduino Yún" https://www.arduino.cc/en/Guide/ArduinoYun
è riportato:
" You're discouraged from using the Yún's built-in non-volatile memory, because it has a limited number of writes.
You can use external memory like a microSD card or thumb drive for saving data, or your own scripts, web pages, etc. For the Yún to access and store information on these drives through the 32U4, they need to have a directory named arduino in the root of the volume."

Perciò tramite lo Sketch che si trova alla pagina:

ho formattato la SD. Lo Sketch crea anche le cartelle "Arduino" e "WWW".

Ho verificato la SD con Putty:

root@Arduino:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 8960 8960 0 100% /rom
tmpfs 29964 80 29884 0% /tmp
/dev/sda2 14869944 43800 14051080 0% /overlay
overlayfs:/overlay 14869944 43800 14051080 0% /
tmpfs 512 0 512 0% /dev
/dev/sda2 14869944 43800 14051080 0% /mnt/sda2
/dev/mtdblock5 5696 1588 4108 28% /mnt/mtdblock5
/dev/sda1 15344992 40 15344952 0% /mnt/sda1

root@Arduino:/# ls -l
drwxr-xr-x 2 root root 802 Apr 27 2018 bin
drwxr-xr-x 4 root root 1600 Apr 27 2018 dev
drwxr-xr-x 1 root root 4096 Apr 27 2018 etc
drwxr-xr-x 1 root root 4096 Apr 27 2018 lib
drwxr-xr-x 1 root root 4096 Apr 27 2018 mnt
drwxr-xr-x 6 root root 4096 Jan 1 1970 overlay
dr-xr-xr-x 78 root root 0 Jan 1 1970 proc
drwxrwxr-x 16 root root 223 Apr 27 2018 rom
drwxr-xr-x 1 root root 4096 Apr 27 2018 root
drwxr-xr-x 2 root root 824 Apr 27 2018 sbin
dr-xr-xr-x 11 root root 0 Jan 1 1970 sys
drwxrwxrwt 14 root root 360 Sep 30 21:56 tmp
drwxr-xr-x 1 root root 4096 Apr 24 2018 usr
lrwxrwxrwx 1 root root 3 Apr 27 2018 var -> tmp
drwxr-xr-x 1 root root 4096 Sep 25 14:05 www

Tuttavia, nel thread:
https://forum.arduino.cc/index.php?topic=191304.0
si dice quanto segue:
"The SD card is not used to store the sketch, but to store additional files (like a web frontend to your sketch, as in the TemperatureWebPanel example)"
"The SD card is not used to expand the RAM available to your sketch, nor to upload sketches greater than what can fit into the 32u4. It's just like a hard drive (and you can actually use an external hard drive instead of an SD card) so it's disk space, not RAM"

Domande:
1 - è corretta l'affermazione che, anche con SD installata, gli Sketch vengono comunque memorizzati nella memoria del 32U4 ?
2 - è corretto pensare che per danneggiare la memoria del 32U4 ci vogliono migliaia di scritture ?
3 - in che directory vengono memorizzati gli Sketch ?

Grazie

Hai presente come è fatta una Yún?


... come vedi la SD nulla ha a che vedere con la parte Arduino, quindi:

  • il codice eseguibile Arduino viene ogni volta scritto nella memoria flash del ATmega32U4.
  • la flash del ATmega32U4 è garantita per 10'000 scritture, oltre potrebbe dare problemi (non è detto, ma superando tale limite il produttore NON ne garantisce più l'affidabilità).
  • in nessuna directory (la SD NON è collegata al ATmega32U4), vengo scritti nella memoria flash del ATmega32U4.
    Guglielmo

Ottimo. Grazie 1000 per la veloce ed esauistiva risposta.