MiniSTM32F103ZE: Difference between revisions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
This page is about a development board named "CZ miniSTM32F103ZE-EK" found on Aliexpress and making it work. | This page is about a development board named "CZ miniSTM32F103ZE-EK" found on Aliexpress and making it work. | ||
== Flashing the bootloader == | For about E12,- I ordered [https://nl.aliexpress.com/item/thisboard/1095346075.html this STM32 board] from AliExpress, it has 64 kB of RAM, micro SD card slot and a real-time clock on board. | ||
I'm looking if I can help to add support for this board to stm32duino and platformio. | |||
* [http://www.stm32duino.com/viewtopic.php?f=28&t=2913 Forum post] about this board on stm32duino forum. | |||
* [http://wiki.stm32duino.com/index.php?title=CZ_miniSTM32F103V_-EK similar looking CZ_miniSTM32F103V_-EK board] on the stm32duino wiki. | |||
* [http://www.st.com/en/microcontrollers/stm32f103ze.html official STM32F103ZE page] on the ST website | |||
This board is a nice candidate for a minimal bat call recorder: just add an analog preamplifier for the ultrasonic signal (+ a lot of software!). | |||
This thing already has all the other things: a fast 1 us ADC converter with DMA support, 64 kB of RAM for buffering ultrasonic audio, an SD card slot, a real-time clock to save files by date/time and a USB port for data transfer. | |||
The STM32F103ZE appears to be quite similar to the STM32F103VE, with the following differences: | |||
* 144 pin package instead of 100 pin package | |||
* more ADC channels | |||
* more GPIOs | |||
== Hardware == | |||
== Software == | |||
Software can be found [https://github.com/bertrik/ministm32f103ze on github]. | |||
=== Flashing the bootloader === | |||
To make it easy to upload software over USB, I recommend you install the stm32duino bootloader. | To make it easy to upload software over USB, I recommend you install the stm32duino bootloader. | ||
Line 31: | Line 52: | ||
If you now reset the board (e.g. press the reset button), you should be able to see the green LED flash. | If you now reset the board (e.g. press the reset button), you should be able to see the green LED flash. | ||
You can now upload programs using the 'dfu' method. | You can now upload programs using the 'dfu' method. | ||
=== platformio === | === platformio === |
Revision as of 17:25, 26 May 2018
Project MiniSTM32F103ZE | |
---|---|
File:Ohnopicture.jpg | |
Making my miniSTM32F103ZE-EK board work | |
Status | Initializing |
Contact | bertrik |
Last Update | 2018-05-26 |
Introduction
This page is about a development board named "CZ miniSTM32F103ZE-EK" found on Aliexpress and making it work.
For about E12,- I ordered this STM32 board from AliExpress, it has 64 kB of RAM, micro SD card slot and a real-time clock on board. I'm looking if I can help to add support for this board to stm32duino and platformio.
- Forum post about this board on stm32duino forum.
- similar looking CZ_miniSTM32F103V_-EK board on the stm32duino wiki.
- official STM32F103ZE page on the ST website
This board is a nice candidate for a minimal bat call recorder: just add an analog preamplifier for the ultrasonic signal (+ a lot of software!). This thing already has all the other things: a fast 1 us ADC converter with DMA support, 64 kB of RAM for buffering ultrasonic audio, an SD card slot, a real-time clock to save files by date/time and a USB port for data transfer.
The STM32F103ZE appears to be quite similar to the STM32F103VE, with the following differences:
- 144 pin package instead of 100 pin package
- more ADC channels
- more GPIOs
Hardware
Software
Software can be found on github.
Flashing the bootloader
To make it easy to upload software over USB, I recommend you install the stm32duino bootloader.
You need the stm32flash utility and a bootloader file for use with PE2. Get them from the stm32duino page.
Steps to flash the bootloader:
- wire a USB-serial converter to the board:
serial GND -> board GND serial +5V -> board 5V serial RXD -> board A9 serial TXD -> board A10
- put jumper BOOT0 in position 1 (to 3.3V)
- put jumper BOOT1 in position 0 (to GND)
- reset or power-cycle the board
- flash the bootloader using stm32flash:
./stm32flash -w ../../../../STM32duino-bootloader/binaries/generic_boot20_pe2.bin -v -g 0x0 /dev/ttyUSB0
- power down the board, put BOOT0 jumper back in position 0 (to GND)
If you now reset the board (e.g. press the reset button), you should be able to see the green LED flash. You can now upload programs using the 'dfu' method.
platformio
The archive contains a platformio configuration.
To compile:
pio run
To upload:
pio run -t upload
To run:
pio device monitor