cancel
Showing results for 
Search instead for 
Did you mean: 

Programming a STM32 F405 flight controller - Mateksys F405-Te - Can't upload code from STM32CubeIDE

UnregisteredUser
Associate II

Hello :)

For my university project, I need to build a drone. I've never done anything like this before and could use a bit of a jumpstart.

I have a Mateksys F405-TE flight controller that I'm supposed to use to control the drone.

To test it, I created a project in CubeIDE and tried to control the LEDs on the board. During debugging, I encountered the error message "Could not connect to J-Link" or "No ST-Link detected..."

I had worked with an original STM F4 board and an extension board before, and it just worked.

What would be easier and more preferable for me in this project is if I could model the controller in Simulink and then generate the code.

I know there are support packages for STM32 in Matlab. Therefore, I also created a model to control the LEDs. The build was successful, but it did not find a "Target Device" or something similar.

Now I am completely clueless about how to approach this. Does anyone have any ideas?

10 REPLIES 10
UnregisteredUser
Associate II

I see, but unfortunately I don't have the option to get another board or any other devices to learning.

 

But thanks you lovely people, I managed to get a simple code with some flashing LEDs running on the flight controller. I tried to create a .hex-file with CubeIDE and flash the controller with CubeProgrammer and it worked just fine. But I can see how that method might be not the best option for development. 

 

Thank you all so much for your help! You really helped me to get that project started!