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

Add support for 64-bit Windows builds of Bossa and bossac using Visual Studio 2019 #160

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dc42
Copy link

@dc42 dc42 commented Jan 24, 2022

I did this conversion originally to make it easier for me to debug why Bossa 1.9.1 Windows build would not write flash memory on a SAMV71Q20B chip. Having done the conversion, I found that these new 64-bit Windows builds can program the ATSAMV71 chip.

The main changes were:

  • Added Visual Studio 2019 project and solution files
  • Added additional include files in the src/msvc folder to replicate some Linux library functions used by Bossa
  • Removed the use of variable-length arrays, which is a gcc extension to C++. I replaced them with use of std::vector to allocate the memory and free it automatically when it goes out of scope.
  • Added explicit casts where needed to resolve type conversion warnings for the Microsoft C++ compiler
  • Removed an alignment flag in a call to wxWidgets that caused an assertion failure within wxWidgets 3.1.5 in the debug build.

dc42 and others added 6 commits January 22, 2022 22:42
Replaced variable-length arrays (gcc extension) by std::vector
Added Visual Studio project and solution files
Added missing include files
Bump wxwidgets to v3.2, as v3.0 is deprecated.
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