1/26/2024 0 Comments Arduino ide 1.0.6To solve the problem, you can try to program on the board a simple sketch that uses the Serial object. Sometimes Windows cannot see the additional serial port of the board. Now Windows should identify the board correctly: It may happen that Windows cannot correctly identify the board and displays it as Maple 003, is this case you have to install the correct drivers:ĭownload the following files from Clark’s repository: You’re almost ready to compile and run your first program… DriversĬonnect the dev board to your PC using an USB cable and verify how it is identified. Search STM32F1 and install the corresponding Cores package: Type the following address in the Additional Boards Manager URLs field: Open your IDE and select File – Preferences. You can follow the official wiki to install the boards in your IDE. What is described in this paragraph is no longer valid for the newer versions of Arduino. If you now move back the BOOT0 jumper to the original position, you should see the led blink: this means that the bootloader is running and can’t find a program to execute… now it’s time to configure the IDE. The program will flash the chip and, when complete, will confirm the operation with a message: To be sure, you can ask the software to perform also a global erase of the memory: Then select the file with the bootloader and program it. Now you can select the specific MCU your board uses: If all the connections are ok, the software should be able to detect the microcontroller: Run the Demonstrator GUI program and select the serial port your adapter is connected to: My board uses P13, so I downloaded the file generic_boot20_pb13.bin. For STMF1 boards there are several binary files, depending on the PIN the onboard led is connected to. The bootloader is developed and maintained by Roger Clark and it’s available in his Github repository. If you’re under Windows, you can download the Flash Loader from ST’s official website: after having registered (for free) you’ll receive the download link via email. Now you need a software to flash the file with the bootloader into the chip. You have also to enable the programming mode, moving the first jumper (labeled BOOT0) to position 1: To flash the bootloader, you need an USB -> serial adapter, connected to your dev board as it follows: Many boards are sold unprogrammed: the first thing to do is therefore to program a bootloader, that is a small program which will allow to upload the “real” program via USB port. I decided to buy a minimal development board based on the STM32F103C8T6 microcontroller (these boards are sometimes known as blue pills) let’s see how to use it with Arduino. Thanks to the work made by the stm32duino community and to the support of ST itself, starting from the past June STM32 microcontrollers can be easily used with the Arduino IDE and it’s also possible to take advantage of most of the libraries available for Arduino. The board name (“F…”) indicated indeed the STM32 microcontroller they are based on. If you’re interested in quadricopters or drones, you probably have heard or used F1, F3, F4… flight control boards.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |