Toc
  1. H7PI_Arduino
  2. Avaliable on Gitee and Github
  3. What is H7PI_Arduino?
  4. Feature
  5. What Has Worked
  6. How to use
  7. Use Multiple Thread
  8. Files Structure
  9. Build & Debug
  10. Default Running
Toc
0 results found
Pinno
H7PI_Arduino
2020/03/10 H7PI H7PI Arduino

H7PI_Arduino

目前Arduino开发慢慢在完善,因此会先在MDK keil中开发测试,保证编译下载正常,后期会移动到VS Code中并使用GCC编译。

H7PI_Arduino is developing now, and will be tested with MDK Keil first to ensure that users can compile and download code. It will be moved in a VS Code project and compile with GCC.

Avaliable on Gitee and Github

  1. H7PI_Arduino On Gitee
  2. H7PI_Arduino On Github

What is H7PI_Arduino?

H7PI_Arduino is a project for H7PI developers who use arduino for coding.

Feature

  • Based on STM32Cube HAL lib.
  • MDK Keil support.
  • STM32CubeMx support for initial code generation.
  • Arduino IDE support (future).
  • Serial com and USB Mass Storage for firmware update.
  • 8M QSPI Flash for app running.

What Has Worked

  • digitalWrite,digitalRead
  • analogRead,analogReadVoltage
  • delay,delayMicroSenconds
  • USB MassStorage and USB CDC(virtual com)
  • SD Card and On Board flash filesystem
  • USBSerial as default debug serialport

How to use

  1. Download H7PI_MultiBootloader project, compile and burn into H7PI.
  2. Download this project, edit your own app code, compile and burn into H7PI.

Use Multiple Thread

H7PI_Samples support freeRTOS and now add an entry for arduino users, you can develop your app with multiple thread.

Files Structure

Project files as below, users can add own file here by right clicking the folder
file_structure.png

board.cpp: board initial code and peripheral define for Arduino
boardcpp1.png
boardcpp2.png

arduino.cpp: setup() and loop() function for Arduino, users should edit own code here
arduinocpp1.png

Build & Debug

Operate as below to build and debug
build-download-debug.png

build-download-debug2.png

Default Running

usb run as a mass storage and cdc, you can also find that led blinking GREEN and RED
usb-cdc.png
usb-mass-storage.png

打赏
支付宝
微信
本文作者:Pinno
版权声明:本文首发于Pinno,转载请注明出处!