Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
boards:stm32vl [2022/11/19 10:48] – [Issues] darronboards:stm32vl [2023/12/01 04:40] (current) – [Issues] darron
Line 50: Line 50:
 ===Issues=== ===Issues===
  
-This device is recognised as a mass storage device which doesn't actually work +This device is recognised as a mass storage device which doesn't actually work. 
-so in Linux add this on the RPi to cmdline.txt+ 
 +On the RPi add the following to /boot/cmdline.txt and reboot.
  
 <code> <code>
-usb-storage.quirks=483:3744:i,483:374e:i+usb-storage.quirks=483:3744:i,483:374b:i,483:374e:i
 </code> </code>
  
-Similar modprobe options are:+With ARMBIAN, update /boot/armbianEnv.txt and reboot. 
 <code> <code>
-# Prevent ST-LINK from showing up as USB disk +usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u,0x0483:0x3744:i,0x0483:0x374b:i,0x0483:0x374e:
-options usb-storage quirks=483:3744:i,483:374e:i+</code> 
 + 
 +Similar modprobe options are used if mass storage is module. 
 + 
 +<code> 
 +options usb-storage quirks=483:3744:i,483:374b:i,483:374e:i
 </code> </code>
  
 When the device is plugged in, something like this is logged: When the device is plugged in, something like this is logged:
 +
 <code> <code>
 usb-storage 1-1.2.1:1.0: USB Mass Storage device detected usb-storage 1-1.2.1:1.0: USB Mass Storage device detected
Line 71: Line 79:
 This will stop mass storage using the device, however, it This will stop mass storage using the device, however, it
 doesn't mean it will function correctly and will take doesn't mean it will function correctly and will take
-a number of probes until it operates.+a number of probes until it operates and may never work.
  
-A solution is as follow+A solution is as follows
 <code> <code>
 #! /bin/sh #! /bin/sh
 # #
-UNPLUG STM32 VL Discovery+ON DEVICE ERROR
 # RUN THIS SCRIPT # RUN THIS SCRIPT
 +# UNPLUG STM32 VL Discovery
 # PLUG IN STM32 VL Discovery # PLUG IN STM32 VL Discovery
 # CTRL-C # CTRL-C
Line 86: Line 95:
         sleep 0.1         sleep 0.1
 done done
 +</code>
 +
 +===Clocks===
 +
 +<code>
 +HSE 8000000 X2 ESA8.00000F20D25F
 +HSI 8000000
 +LSE 32768   X3 MC306-G-06Q-32.768
 +LSI 40000
 </code> </code>
 === LED demo === === LED demo ===
Line 92: Line 110:
  
 == STLink == == STLink ==
 +
 +NB STLink no longer operates with this board's firmware.
  
 Install [[:tools:stlink|STLink]] programmer. Install [[:tools:stlink|STLink]] programmer.
Line 161: Line 181:
 [[https://www.st.com/resource/en/reference_manual/rm0041-stm32f100xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf|MCU reference manual]] [[https://www.st.com/resource/en/reference_manual/rm0041-stm32f100xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf|MCU reference manual]]
  
 +[[https://www.st.com/resource/en/errata_sheet/es093-stm32f100x4-stm32f100x6-stm32f100x8-and-stm32f100xb-low-and-mediumdensity-value-line-device-errata-stmicroelectronics.pdf|MCU errata]]