当前位置:网站首页>Arduino operation stm32

Arduino operation stm32

2022-07-05 08:29:00 Sharing master

Operation steps

  1. Download related files Click on here , Main download Arduino_STM32  STM32duino-bootloader Two compression packs
  2. take Arduino_STM32 Put it in arduino\hardware Below directory ,
  3. Add development board
  4. towards STM32 burning Bootloader, hold boot0 insert 1 The location of ,boot1 insert 0 The location of . Then insert your serial port download line (C8T6, This film's Tx and Rx Respectively corresponding to pin PA9 and PA10)
  5. CDM Enter the following command ( Pay attention to the serial port number )

    stm32flash.exe -w generic_boot20_pc13.bin -v -g 0x0 COM14

     

    If the following prompt appears , You need to click on the core board rest Reset key

    λ stm32flash.exe -w generic_boot20_pc13.bin -v -g 0x0 COM5
    stm32flash 0.4

    http://stm32flash.googlecode.com/

    Using Parser : Raw BINARY
    Interface serial_w32: 57600 8E1
    Failed to init device.
     

    After that, the burning is normal

    λ stm32flash.exe -w generic_boot20_pc13.bin -v -g 0x0 COM5
    stm32flash 0.4

    http://stm32flash.googlecode.com/

    Using Parser : Raw BINARY
    Interface serial_w32: 57600 8E1
    Version      : 0x22
    Option 1     : 0x00
    Option 2     : 0x00
    Device ID    : 0x0410 (Medium-density)
    - RAM        : 20KiB  (512b reserved by bootloader)
    - Flash      : 128KiB (sector size: 4x1024)
    - Option RAM : 16b
    - System RAM : 2KiB
    Write to memory
    Erasing memory
    Wrote and verified address 0x080056fc (100.00%) Done.

    Starting execution at address 0x08000000... done.

  6. Then you can use the power interface to download the program

Passing pit

One 、git Because the wall is too slow , Share here https://ageshare.lanzous.com/ibp9v2d

Two 、 Previously used ttl Connect win10 There's something wrong with the computer , You can update the driver to solve , Drive sharing https://ageshare.lanzous.com/ibpdmub

To be continued ...

原网站

版权声明
本文为[Sharing master]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140544213885.html