![]() Neither it is possible to set the pointer constant nor static, because there would be different types of defition of the variable. If the file is included by multiple other files, I get a multiple definition error. I would prefer directly defining the PinMap_PWM in the header file but I don't know how to do this or wheter it is even possible. Important: This table has to be adjusted for the individually used STM-type! Important: The attribute weak has to be removed! Own_PeripheralPins.c: #include "Own_PeripheralPins.h" It has to include the corresponding h-file which can be included this in the program. Therefore I suggest to copy the whole table into a new c-file in the program's folder. Instead you have to uncomment the combination you like to use and comment the normal one.ĭirectly editing this library would change the PWM-settings for all programs. ![]() The file does not include the alternative pin combinations with different names like in the library for VSC. The PWM-pin combinations are stored in: \AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\variants\NUCLEO_F446RE\PeripheralPins.c Then enter STM32F103VB in the Filter, and select STM32F103VBx in the filtered list. First, create a new project in STM32CubeIDE by selecting File > New > STM32 Project. But where do I find these combinations in the datasheet? I only found them randomly in the code but nowhere in the datasheet of the STM32F446RE. To set a pin as a digital output port, you can use the graphical tool in STM32CubeIDE.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |