Here is the nice thing that CubeMX has done: ![]() Im not going to explain the CubeIDE interface, assuming you have worked with IDE's like Gnu or Keil before. and press the Generate Code on the top-right ! Once ready, you can open the project, and CubeIDE will start: ![]() Some more steps to get there ready : Select the Project Manager tab, give the project a name, use Basic Application Structure ( for the main.c structure), and select CubeIDE in the Toolchain section. You are almost set to code your application! For middleware (drivers), select the Middleware section, USB_Device and select the drop down box for Human interface Device (HID) (dont use the custom one)USB Requires a 48Mhz clock, so select clock configuration on the top, and you can use the automatic clock resolver to set the USB clock to 48Mhz. To add USB, select connecivity, select USB and select FS device, the pins PA11 and PA12 are now equiped. On the left side you can select the chip layout details per functions block. ![]() As you choose a board, the layout is already pre-defined with the IO routed on the board, like the OSC, UArt2 RX/TX and the Green led on PB3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |