Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support building with vscode - version 2 #44

Conversation

tridge
Copy link
Member

@tridge tridge commented Jul 24, 2024

new version of #41

changes are:

  • based on the devel branch Kiss_Ardupilot_DshotBranch that @AlkaMotors is working on
  • auto-generates the build targets from targets.h, which ensures the targets stay in sync between kiel and make builds

original PR comment:

This adds vscode build support on linux and windows. It supports building and debugging AM32 using vscode on both windows and linux. It also supports command line builds on linux.

For windows you will need these tools:
https://firmware.ardupilot.org/Tools/AM32-tools/windows-tools.zip
on linux you need these:
https://firmware.ardupilot.org/Tools/AM32-tools/linux-tools.tar.gz

You will need to install vscode, along with the following extensions:

  • C/C++
  • Coxtex-Debug
  • Makefile Tools

quick demos:
https://youtu.be/2hQvTfp1R7k?si=sn1L5J9G7VJJssKF
https://www.youtube.com/watch?v=CSHP63D_ojw

this PR builds on top of #34

tridge added 26 commits July 24, 2024 12:15
adding -g does not change the size of the build, but gives us debug
symbols to make debugging easier
use the flags for the specific MCU, not just F051
case sensitive and stray white space
lists targets for convenience
stop overflowing flash
main gain is using single precision constants
case sensitive for linux builds
and gdb debug support
using version.h will allow DroneCAN to know the version number
@tridge tridge changed the title support building with vscode support building with vscode - version 2 Jul 24, 2024
@tridge tridge mentioned this pull request Jul 24, 2024
@AlkaMotors AlkaMotors merged commit b502e36 into am32-firmware:Kiss_Ardupilot_DshotBranch Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants