Outils pour utilisateurs

Outils du site


nucleo

Utilisation de Nucleo

wget https://bvdp.inetdoc.net/files/nucleo/install_sw4stm32_linux_64bits-v1.8.run
./install_sw4stm32_linux_64bits-v1.8.run

Installer dans ~/Ac6 Crée une règle udev

./Ac6/SystemWorkbench/.installation/49-stlinkv2.rules

copiée dans

./etc/udev/rules.d/49-stlinkv2.rules

Lancement:

~/Ac6/SystemWorkbench/eclipse &

stockage des workspace dans (stocker par défaut)

/home/bvandepo/workspace_Ac6

File→import→General→Existing project into workspace

Select archive file, projet de jonathan dans test_nucleo.zip

Garder le projet test_nucleo coché seulement

click droit→debug as Ac6…

seconde tentative

dezipper SystemWorkbench.zip dans ~/Ac6:

mkdir ~/Ac6
wget https://bvdp.inetdoc.net/files/nucleo/SystemWorkbench.zip
unzip SystemWorkbench.zip
wget https://bvdp.inetdoc.net/files/nucleo/49-stlinkv2.rules
sudo mv 49-stlinkv2.rules /etc/udev/rules.d
sudo chown root:root /etc/udev/rules.d/49-stlinkv2.rules
sudo chmod 644 /etc/udev/rules.d/49-stlinkv2.rules

rechargement des règles udev:

sudo  udevadm control --reload-rules 
sudo udevadm trigger

affichage de déclenchement de règle udev:

sudo su -
udevadm monitor
branchement.txt
KERNEL[29352.357790] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
KERNEL[29352.413547] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
KERNEL[29352.413753] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1 (usb)
KERNEL[29352.413867] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12 (scsi)
KERNEL[29352.413899] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/scsi_host/host12 (scsi_host)
KERNEL[29352.414094] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2 (usb)
KERNEL[29352.414281] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2/tty/ttyACM0 (tty)
KERNEL[29352.414479] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.3 (usb)
UDEV  [29352.418792] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
UDEV  [29352.419791] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1 (usb)
UDEV  [29352.434564] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.3 (usb)
UDEV  [29352.434761] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2 (usb)
UDEV  [29352.436468] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12 (scsi)
UDEV  [29352.439076] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/scsi_host/host12 (scsi_host)
UDEV  [29352.440045] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2/tty/ttyACM0 (tty)
KERNEL[29353.417131] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0 (scsi)
KERNEL[29353.417215] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0 (scsi)
KERNEL[29353.417277] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/scsi_disk/12:0:0:0 (scsi_disk)
KERNEL[29353.417294] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/scsi_device/12:0:0:0 (scsi_device)
UDEV  [29353.418260] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0 (scsi)
UDEV  [29353.418828] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0 (scsi)
UDEV  [29353.419717] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/scsi_disk/12:0:0:0 (scsi_disk)
UDEV  [29353.419742] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/scsi_device/12:0:0:0 (scsi_device)
KERNEL[29353.419851] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/scsi_generic/sg3 (scsi_generic)
KERNEL[29353.421768] add      /devices/virtual/bdi/8:48 (bdi)
UDEV  [29353.421796] add      /devices/virtual/bdi/8:48 (bdi)
KERNEL[29353.421817] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/bsg/12:0:0:0 (bsg)
UDEV  [29353.421844] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/scsi_generic/sg3 (scsi_generic)
UDEV  [29353.423092] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/bsg/12:0:0:0 (bsg)
KERNEL[29353.427124] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/block/sdd (block)
UDEV  [29353.446150] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0 (usb)
UDEV  [29353.491657] add      /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host12/target12:0:0/12:0:0:0/block/sdd (block)
debranchement.txt
KERNEL[29330.765441] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0/11:0:0:0 (scsi)
UDEV  [29330.769768] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0/11:0:0:0/scsi_disk/11:0:0:0 (scsi_disk)
UDEV  [29330.769799] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0/11:0:0:0/scsi_device/11:0:0:0 (scsi_device)
UDEV  [29330.772697] remove   /devices/virtual/bdi/8:48 (bdi)
KERNEL[29330.780400] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0 (scsi)
KERNEL[29330.796167] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/scsi_host/host11 (scsi_host)
KERNEL[29330.796214] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11 (scsi)
KERNEL[29330.796381] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1 (usb)
UDEV  [29330.798750] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/scsi_host/host11 (scsi_host)
KERNEL[29335.571794] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2/tty/ttyACM0 (tty)
KERNEL[29335.571871] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2 (usb)
KERNEL[29335.571895] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.3 (usb)
KERNEL[29335.573142] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)
UDEV  [29335.575235] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2/tty/ttyACM0 (tty)
UDEV  [29335.575286] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.3 (usb)
UDEV  [29335.577977] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.2 (usb)
UDEV  [29335.704696] change   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0/11:0:0:0/block/sdd (block)
UDEV  [29335.707645] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0/11:0:0:0/block/sdd (block)
UDEV  [29335.712373] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0/11:0:0:0 (scsi)
UDEV  [29335.712408] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11/target11:0:0 (scsi)
UDEV  [29335.716134] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/host11 (scsi)
UDEV  [29335.722681] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1 (usb)
UDEV  [29335.736536] remove   /devices/pci0000:00/0000:00:14.0/usb2/2-2 (usb)

voir si les droits de la règles udev sont appliqués:

ll /dev/ttyACM0 
   crw-rw-rw- 1 root dialout 166, 0 mars   1 21:42 /dev/ttyACM0

stockage des workspace dans (stocker par défaut)

/home/bvandepo/workspace_Ac6

il faudra prévoir d'installer la règle udev à la main

nucleo.txt · Dernière modification : 2021/02/19 20:20 de 127.0.0.1