Adsense HTML/JavaScript

Sunday, June 28, 2020

STM32F411CEU6 minimum development board, and install stm32duino/Arduino_Core_STM32 on Arduino IDE/Windows 10.

Just received a STM32F411CEU6 minimum development board:



claimed:
STM32F411 Development Board
- Frequency up to 100 MHz
- Up to 512 Kbytes of Flash memory
- 128 Kbytes of SRAM

Information available at https://pan.baidu.com/s/1MDfunchq5IWM3hQ6MRw18A with access code: xbc9

But I'm outside China Mainland, so I cannot access Baidu cloud storage!


Test with stm32duino/Arduino_Core_STM32 on Arduino IDE/Windows 10

This board used DFU to upload program, so have to install STM32CubeProgrammer first.

Visit https://www.st.com/en/development-tools/stm32cubeprog.html, follow the steps to install STM32CubeProgrammer.

Then add the path of bin directory of installed STM32CubeProgrammer to your system PATH.




Install stm32duino/Arduino_Core_STM32, this repo adds the support of STM32 MCU in Arduino IDE.

To install Arduino_Core_STM32, open Arduino IDE.

Click Menu > File > Preferences, add the following URL to Additional Boards Manager URLs:
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json


> Tools > Board: STM32 Boards (slected from submenu) > Generic STM32F4 series

> Tools > select submenu of Board part number > BlackPill F411CE

> Tools > Upload method > STM32CubeProgrammer (DFU)

Load the example Blink

Now press the buttons on the board to enter DFU mode.
> Press and hold the button BOOT0
> Preess and release the button RST
> Release the button BOOT0

The LED D3 will OFF.

Now you can verify and upload the program to the board.

Done. Now the LED D3 will start to blink.


remark:
Before trying BlackPill F411CE, I tried board part number of Generic F411CE. Success to verify and upload, but the LED not turn on.



Next: 

Related:

Tuesday, June 23, 2020

Install Python 2 and pip on Ubuntu 20.04

In 20.04 LTS, the python included in the base system is Python 3.8. Python 2.7 has been moved to universe and is not included by default in any new installs. (ref: Ubuntu 20.04 LTS (Focal Fossa) release notes)


To install Python 2 on Ubuntu 20.04, it's easy as run the command:
$ sudo apt install python

But you cannot install pip using old approach! If you run the "sudo apt install python-pip", you will be report with "E: Unable to locate package python-pip".

To install pip for Python 2 on Ubuntu 20.04:

Visit https://bootstrap.pypa.io/ and download get-pip.py

Install with python:
$ sudo python get-pip.py