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 [2015/03/23 02:18]
darron
boards:stm32vl [2023/12/01 03:15]
darron [Issues]
Line 47: Line 47:
 </code> </code>
 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 ===
  
 Install [[:tools:libopencm3|OpenCM3]]. Install [[:tools:libopencm3|OpenCM3]].
 +
 +== STLink ==
 +
 +NB STLink no longer operates with this board's firmware.
  
 Install [[:tools:stlink|STLink]] programmer. Install [[:tools:stlink|STLink]] programmer.
Line 72: Line 134:
 </code> </code>
  
-Alternatively, install [[:tools:stm32flash|STM32Flash]] and program via the boot loader.+== STM32Flash == 
 + 
 +As an alternative to [[:tools:stlink|STLink]] install [[:tools:stm32flash|STM32Flash]] and program via the serial UART boot loader.
  
 <code> <code>
-STM32           CP2102 +STM32              CP2102 (NB Baite module has incorrect labels) 
-=====           ====== +=====              ====== 
-3V3  ---------+ +3V3     ---------- 
-BOOT ---220R--+ +BOOT    ---220R--- 
-PA10 ---470R--- RX  +PA10 RX ---------- RXD (TX) 
-PA9  ---470R--- TX +PA9  TX ---------- TXD (RX) 
-GND  ---------- GND+GND     ---------- GND
 </code> </code>
  
Line 110: Line 174:
  
 === Resources === === Resources ===
-[[http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/CD00267113.pdf|Manual]] 
  
 +[[http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/CD00267113.pdf|User manual]]
 +
 +[[https://www.st.com/resource/en/datasheet/stm32f100rb.pdf|MCU datasheet]]
 +
 +[[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]]