Skip to content

How to use the library for SPI2 and SPI3 or SPI_2 and SPI_3 #31

@brightproject

Description

@brightproject

How to use this library for black pill STM32F401CCU6?
The files SPIFlash.cpp and SPIFlash.h, as I understand it, are an "add-on" over the main SPI library from Arduino?
I am using an arduino IDE and two cores to work with a microcontroller STM32F401CCU6.
Each kernel folder has its own files with examples for working with SPI.
Accordingly, I have three folders on the PC with the same file names in them:

  1. Arduino(C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\SPI) SPI.cpp and SPI.h
  2. STM core for Arduino IDE(C:\Users\Admin\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.5.0\libraries\SPI) SPI.cpp and SPI.h
  3. Rogerclark core for Arduino IDE(C:\Users\Admin\Documents\Arduino\hardware\Arduino_STM32-master\STM32F4\libraries\SPI) SPI.cpp and SPI.h
    And I don't understand which of these three files to "load" from file SPIFlash.h
    #include <SPI.h>
    Or rather, as far as I understand - depending on the selected kernel through the plan menu, such a file will be loaded during compilation.
    But these questions do not remove questions about how to work with external flash memory through the SPI2 and SPI3 interfaces, but rather add questions and confuse even more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions