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
Last revision Both sides next revision
boards:stm32vl [2022/11/15 17:52]
darron [Resources]
boards:stm32vl [2023/12/01 03:15]
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.
 +
 +In Linux add this on the RPi 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 80: Line 139:
  
 <code> <code>
-STM32           CP2102 +STM32              CP2102 (NB Baite module has incorrect labels) 
-=====           ====== +=====              ====== 
-3V3  ---------+ +3V3     ---------- 
-BOOT ---220R--+ +BOOT    ---220R--- 
-PA10 ---------- RX  +PA10 RX ---------- RXD (TX) 
-PA9  ---------- TX +PA9  TX ---------- TXD (RX) 
-GND  ---------- GND+GND     ---------- GND
 </code> </code>
  
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]]