![]() ![]() You’ll see a configuration for the USER pushbutton pin which is labeled B1 on the development board, but this is NOT port B, pin 1 on the chip. Open the newly generated TrueSTUDIO project.ĬubeMX has generated a very simple project with some basic settings for you. ![]() If so, click Yes to download it and wait for it to finish. You may get a popup explaining you need a firmware package.Hit Open Project at the popup prompt and your project should open up in TrueSTUDIO.In the Code Generator tab, select Generate peripheral initialization as a pair of ‘.c/.h’ files per IP.Give your project a name, pick a Project Location for your project, and select TrueSTUDIO from the Toolchain/IDE dropdown menu. By default, port A pin 10 is RX and port A pin 9 is TX. You’ll see that the graphic of the chip in the center will change and two pins on the right will change color to green (gray means that the pin is not configured to anything). We are going to use USART1, so click on the + to the left of the name to open it up, and set it to Asynchronous Mode. ![]() You should see a nice graphical interface appear, which we will use to set up our pins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |