π Node [[stm32-pills]]
β³ π Subnode [[@ankostis/stm32 pills]]
β³ π Subnode [[@ankostis/stm32 pills]]
π
stm32-pills.md (text) by @ankostis
STM32 pills
- My x2 black-pill-I come from WeActTogether as seen from USB-IDs in the logs when connectin them.
- Registered in STM32-base boards
-
Board
- Name: WeAct Black Pill V1.2
- Part: Unknown
- Brand: WeAct Studio
- Origin: China
-
Microcontroller
- Part: STM32F401CCU6
- Manufacturer: ST-Microelectronics
- Core: Arm Cortex-M4
- Max. Clock Speed: 84MHz
- Package: UFQFPN 48 pins
-
Internal memories
- FLASH: 256KiB
- SRAM: 64KiB
-
Oscillators:
- HSI: 16MHz
- LSI: 32kHz
- HSE: 25MHz
- LSE: 32.768kHz
-
Power:
- Sources:
- Any: +3.3V pin (+3.3V)
- Any: +5V pin (+5V)
- USB: connector (+5V)
- VDDA pin: No
- VSSA pin: No
- VREF- pin: No
- VREF+ pin: No
- Backup battery: Pin
-
Regulator:
- Manufacturer: Diodes Incorporated
- Part: AP7343 (6T)
- Package: X2-DFN1010-4 4 pins
- Input: +3.52V to +5.25V
- Output: +3.3V @ 300mA
- Datasheet: AP7343.pdf
-
PCB:
- Color: Black
- Size (w x l): 20.78mm x 52.81mm
- Mounting: Breadboard
27 May 2022
-
effort: 0.5 (ACC 2022MAY)
-
Blue vs Black pills with many resources
-
Black-magic fw --> blue-pill FIT FOR STM32F103xxx ONLY (NOT FOR STM32F4(0 & 1)1, aka black-pill I & II)
-
blue-pill --> Black-magic probe DOES NOT WORK
-
Flashed BlackMagic following this guide DOES NOT WORK
$ dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D ~/tmp/t/blackmagic_dfu-swlink.bin dfu-util 0.11 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2021 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ dfu-util: Warning: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release Opening DFU capable USB device... Device ID 0483:df11 Device DFU version 011a Claiming USB DFU Interface... Setting Alternate Interface #0 ... Determining device status... DFU state(10) = dfuERROR, status(10) = Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations Clearing status Determining device status... DFU state(2) = dfuIDLE, status(0) = No error condition is present DFU mode device DFU version 011a Device returned transfer size 2048 DfuSe interface name: "Internal Flash " Downloading element to address = 0x08000000, size = 7280 Erase [=========================] 100% 7280 bytes Erase done. Download [=========================] 100% 7280 bytes Download done. File downloaded successfully Submitting leave request... Transitioning to dfuMANIFEST state
28 May 2022
- effort: 0.2 (ACC 2022MAY)
- Locate BlakMagic --> BlackPill guide!!!
-
install ARM gcc/gdb toolchain
- [-]
sudo apt install gcc-arm-none-eabi gdb-arm-none-eabi
DOES NOT FETCH ANY GDB!!
- [-]
-
download them from https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads
both are missing depends on libpython-3.6
-
gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tgz
- install Python3.6 from deadsnakes
-
- build them from sources
Jun 1 2022
- effort: 1 (ACC 2022JUN)
-
OpenOCD --> BlackMagic
-
someone had attempted this
and was promising (eg debug RTOS threads)...But need re-compile both MBP & OpenOCD.
- Have to build a special OpenOCD instead of cloning original repo BUILD FAILS reported as #3
- probably changes already incorporated in blackmagic
- file issue#2 begging for MRs to upstream
- file issue#570 beg also on announce issue
-
someone had attempted this
and was promising (eg debug RTOS threads)...But need re-compile both MBP & OpenOCD.
-
GDB --> BlackMagic
- follow Usefull GDB commands
- PlatformIO --> BlackMagic
- CubIDE -> BlackMagic
- How to re-install original WeCanAct BlackPill-1 firmware?
- Alternative BluePill firmware (discovered from reddit, abandoned since 2016): Versaloon Programmer (VSProg)
- OpenOCD+BMP use-case?
Jun 2 2022
- effort: 0.4 (ACC 2022JUN)
- WeActTC/MiniSTM32F4x1#37 asked source-code of WeAct fw
- try to dump orginal's black-pill fw as training
- Bluepill debug session post
Jun 3 2022
- work on OpenOCD + Blackpill
Jun 4 2022
- work on PlatfomIO + Blackpill
Loading context... (requires JavaScript)
ποΈ Stoas for [[@ankostis/stm32 pills]]
π Open document (Hedgedoc) at https://doc.anagora.org/stm32-pills
π Open document (Etherpad) at https://stoa.anagora.org/p/stm32-pills
πΉ Video conferencing space (Jitsi Meet) at https://meet.jit.si/stm32-pills