Port the program of STM32F429 to run on STM32F407

The embedded program originally running on the F429 wants to run on the F407 board for various reasons, and some settings need to be modified

1. Click on the magic wand, device, and change the chip model from F429 to F407

2. Click on C/C++, this step is very important, must be changed

3. Click Debug to see if the previous emulator is consistent with the current one

    

These are the basic settings to be changed

4. Open the project, find startup_stm32f429_439xx.s in the file directory, remove this file from the project, and then add startup_stm32f40xx.s; these two files have been replaced in advance.

   

5. In addition, if the hardware pin settings are different, you should also pay attention to modifying them in the project file. For example, the GPIO pins of the CAN communication of our two boards are different, and you need to make modifications in the corresponding files.

Guess you like

Origin blog.csdn.net/CSDNrecho/article/details/114285259