ROS study notes five: admiration for the Arduino environment

    Arduino is in contact with after 2011 ( https://user.qzone.qq.com/478273778/blog/1298984045 ), has gone 8 years.
    At that time the views of the Arduino is: a platform for non-professionals to play, the mega168 and 328 are too weak to use, the program package and consume more resources, leaving too little space to play the programmers; and because the package is programmed easy, but reduced performance, and had to run faster microcontroller, RAM and less, so no real value.
    So basically I play a bit, did not go any further.

    
    The study ROS, ROS because of the classic platform controller Open Turtlebot3 of the CR with the Arduino IDE, let me touch the Arduino environment again and found that it has shrunk up.
    Access to relevant information found: Arduino can introduce a variety of development platforms, no longer stick to AVR family (even if later the mega2560, after all, is an 8-bit machine, the performance was flat), several mainstream MCU has support full use of the open-source advantage, so that manufacturers or individuals interested in their favorite hardware platform Arduino IDE can be introduced in both share its accessibility features, but also to resolve its native hardware performance constraints.
    I have found that the non-native hardware platform there: STM32, ESP8266, ESP32, nrf52 .


    At present I am mainly interested to STM32, I first bought a piece of Nucleo F103RB experience.


    At 16.04 in the installed version of the IDE ubuntu Arduino 1.8.8 STM32 boards, using a STM32duino:
https://github.com/stm32duino/Arduino_Core_STM32
development board Import Address:
https://github.com/stm32duino/BoardManagerFiles /raw/master/STM32/package_stm_index.json


    On github seems more than this one, I chose this because it supports more development board, Nucleo series basically supported.


    After installation costs a little bit of trouble: Although the U disk mode Nucleo board ubuntu understanding, but in this mode the program does not download successfully, but to try STLink mode, you need to install the driver STLink under ubuntu.


    After driver installation program downloaded to normal, I tried three examples:
    1, the standard Blink, after compiling download, completely normal, it seems that with the native Arduino board, I feel good.

    2, STM32 own example used, servo drive, it is very natural to see the source code and the native routine is basically the same, it seems STM32 hardware abstraction doing well.

    3, based on the test routines ROS, already installed in ROS_LIB Arduino IDE, and tested based on routine Arduino Nano success. The same routine is downloaded to the compiled Blink Nucleo F103RB, exactly the same! ! !


    If this is so, the use of Arduino IDE on most of wonder OpenCR program also chose Arduino environment, it uses but STM32F746 ah, already Cortex-M series strongest MCU, and can be developed under the Arduino IDE, do not worry about performance can not play, STM32 other series should be no problem.


    After the installation carefully read the STM32 library files found with the latest HAL and LL libraries, such combined STM32 information and share resources Arduino should make STM32 development much easier. It is expected to ......


    Up to now only regret is: based on the relevant documents Arduino IDE STM32 development program did not find systematic, do not know or I did not find? If there is hope for the guidance of experts know, first thanks!

Guess you like

Origin blog.csdn.net/embedream/article/details/91822486