| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
I also do not know where to grab the pinout definitions for the specific board. The guide I am using does not specify how to add a specific board, it cuts off after adding the generic board. |
Sorry, something went wrong.
|
Hi @otac0n
No, generic have to use the internal clock only. If user wants to use HSE then he have to redefine the system core clock config at sketch level.
Well in general at least the Arduino connector have top be properly defined D0-D15 and A0-A5 but this Disco has no Arduino connector so you can simply defined them following each connector. /* P1 connector right side */
#define PC1 0
#define PC3 2
...
/* P1 connector left side */
#define PC1 19Or /* P1 connector */
#define PC1 0
#define PC3 1
...You can refer to this one as example: So you have to create the variant_DISCO_F411VE.* |
Sorry, something went wrong.
|
So, I have
That puts it on par with the DISCO_F407VG. Let me know what steps can be taken to validate these files on hardware. |
Sorry, something went wrong.
You can use this examples to check if the pin mapping is correct: |
Sorry, something went wrong.
|
I had to order a USB Serial connector to test this out. Using the generic variant I get this: ##### NUM_DIGITAL_PINS = 81 NUM_ANALOG_INPUTS = 16 ##### Checking digital pins... End check digital pins ##### Checking analog pins definition... End check analog pins ##### Checking IP instances (I2C, UART, SPI)... End check IP instances (I2C, UART, SPI) ######################################## #### Test PASSED ######################################## Using my variant_DISCO_F411VE I get errors that I'm unsure where they originate: <path>2.11.0\libraries\SrcWrapper\src\stm32\analog.cpp:340:17: error: 'DAC_CHANNEL_1' was not declared in this scope; did you mean 'ADC_CHANNEL_1'? <path>2.11.0\libraries\SrcWrapper\src\stm32\analog.cpp:364:6: error: variable or field 'HAL_DAC_MspInit' declared void ... Edit: Fixed that. Now it just locks up due to bad clock config? I will say that I had trouble following step 1 here: https://github.com/stm32duino/Arduino_Core_STM32/wiki/Using-git-repository |
Sorry, something went wrong.
|
OK, with a change to RCC_HSE_ON (instead of RCC_HSE_BYPASS) my board passes the tests. ##### NUM_DIGITAL_PINS = 81 NUM_ANALOG_INPUTS = 16 ##### Checking digital pins... End check digital pins ##### Checking analog pins definition... End check analog pins ##### Checking IP instances (I2C, UART, SPI)... End check IP instances (I2C, UART, SPI) ######################################## #### Test PASSED ######################################## I believe this to be ready, but I would appreciate a critical look-over as this is my first Arduino board. |
Sorry, something went wrong.
|
Yesterday, I've made a review and force push on your branch to fix all the issue you made 😉 |
Sorry, something went wrong.
|
Will end review this morning. |
Sorry, something went wrong.
Signed-off-by: John Gietzen <john@gietzen.us>
You can simply connect the default Serial to the STLink. SB10 and SB11 not fitted on the board,if you add SB then you will have the VCP functional. |
Sorry, something went wrong.
|
I've pushed some updates on your branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Adds the STM32F411E-DISCO board.
Fixes #2808
I have the board and would like to use it along with SimpleFOC, an Arduino library.
Validation
I could use some advice on validating this, as I was using PlatformIO to work with my board previously.