Closed Kurburis closed 8 months ago
What does your platformio.ini file look like, if I may ask?
What does your platformio.ini file look like, if I may ask?
[env:nucleo_f303re]
platform = ststm32
board = nucleo_f303re
framework = arduino
lib_archive = false
build_flags =
-DSIMPLEFOC_STM32_DEBUG
-DSERIAL_UART_INSTANCE=2
monitor_speed = 115200
monitor_port = COM8
lib_deps = askuric/Simple FOC@^2.3.2
Wire
SPI
Of course, you shouldn't use pa13 or pa14
Of course, you shouldn't use pa13 or pa14
Are they reserved for something I am not aware of?
Yes, for programming the chip 😂 https://youtu.be/jEz0C2bT2M0?si=82EXkqy8ii4tdhug
Yes, for programming the chip 😂 https://youtu.be/jEz0C2bT2M0?si=82EXkqy8ii4tdhug
Thanks! Is it confirmed on page 55 of the manual: https://www.st.com/resource/en/user_manual/um1724-stm32-nucleo64-boards-mb1136-stmicroelectronics.pdf
This bug happened while trying to solve this issue: https://github.com/simplefoc/Arduino-FOC/issues/364 Bug description BLCDDriver6PWM function needs 6 pins, With a specific pin I am able to build and upload the code to the board once, but after that it is not possible to upload any code via platformio. To return the board to normal, I have to upload any code via STM32 Cube program.
Hardware setup Board: STM32 Nucleo F303RE Pin that causes the issue: PA13 Pin functions: https://i.imgur.com/xuleuID.png
Code Code that causes the bug:
BLDCDriver6PWM driver = BLDCDriver6PWM(PA9, PB0, PB14, PB15, PA12, PA13);
It does not depend on the argument position or the value of other arguments, according to my testing. The only thing necessary is to have PA13 as an argument.Error message:
IDE