![]() ![]() PC13 is also configured as "Open Drain" (not overly important in this case as pulling low will work too). In our case, this being a simple "blink" project, we enable PC13 as a GPIO output (labelled LED) and USART1 for serial communications. Having selected the appropriate MCU or development board, we finally end up at the core of STM32CubeMX where we can configure the MCU and it's peripherals. ![]() When starting STM32CubeMX we can select "Access to MCU Selector": $ sudo apt update & sudo apt install codeĪfter installing VSCode a few extensions need to be installed. Having that added, installation becomes a simple matter of: In my case, I've added the sudo cat /etc/apt//vscode.listĭeb stable main On a Debian system, the easiest way to install VSCode is to use the repository provided by Microsoft. The final prerequisite will be VSCode itself. STM32CubeMX can be downloaded directly from ST's Website. ![]() Fortunately the standard OpenOCD in Debian support STM32/ST-Link: To communicate with the actual STM32 MCU a JTAG/ SWD tool is necessary. The GNU Debugger (GDB) is also available: $ sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi On Debian those are available in the standard repository: The toolchain refers to the compiler and the tools to manipulate binary images. On an Ubuntu system it should be almost the same. This example is developed on a standard Debian desktop system. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |