Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
boards:stm32vl [2022/11/15 18:07]
darron [LED demo]
boards:stm32vl [2023/12/01 04:40] (current)
darron [Issues]
Line 48: Line 48:
 CN3 is used to configure either internal or external programming.  CN3 is used to configure either internal or external programming. 
  
 +===Issues===
 +
 +This device is recognised as a mass storage device which doesn't actually work.
 +
 +On the RPi add the following to /boot/cmdline.txt and reboot.
 +
 +<code>
 +usb-storage.quirks=483:3744:i,483:374b:i,483:374e:i
 +</code>
 +
 +With ARMBIAN, update /boot/armbianEnv.txt and reboot.
 +
 +<code>
 +usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u,0x0483:0x3744:i,0x0483:0x374b:i,0x0483:0x374e:i
 +</code>
 +
 +Similar modprobe options are used if mass storage is a module.
 +
 +<code>
 +options usb-storage quirks=483:3744:i,483:374b:i,483:374e:i
 +</code>
 +
 +When the device is plugged in, something like this is logged:
 +
 +<code>
 +usb-storage 1-1.2.1:1.0: USB Mass Storage device detected
 +usb-storage 1-1.2.1:1.0: device ignored
 +</code>
 +
 +This will stop mass storage using the device, however, it
 +doesn't mean it will function correctly and will take
 +a number of probes until it operates and may never work.
 +
 +A solution is as follows
 +<code>
 +#! /bin/sh
 +#
 +# ON DEVICE ERROR
 +# RUN THIS SCRIPT
 +# UNPLUG STM32 VL Discovery
 +# PLUG IN STM32 VL Discovery
 +# CTRL-C
 +#
 +while test 1; do
 +        openocd -f "interface/stlink.cfg" -c "transport select hla_swd" -f "target/stm32f1x.cfg"
 +        sleep 0.1
 +done
 +</code>
 +
 +===Clocks===
 +
 +<code>
 +HSE 8000000 X2 ESA8.00000F20D25F
 +HSI 8000000
 +LSE 32768   X3 MC306-G-06Q-32.768
 +LSI 40000
 +</code>
 === LED demo === === LED demo ===
  
Line 53: 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 122: 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]]