How to import arduino code into Crossworks?
Hi everyone,
I used the Arduino platform to build code and simple PCB designs. I was able to export my Arduino code to Atmel Studio and had good success there as well. Now, I want to try Crossworks as an alternative to Atmel Studio, but cannot figure out how to import my previous code (and the Arduino libraries) into Crossworks.
I don't mind getting my hands dirty and spending some time figuring this out, but so far I haven't seen any resources on how to do this. How would you recommend I go about this?
-
Well, the 'hello world' of arduino is the blink routine
https://www.arduino.cc/en/pmwiki.php?n=Tutorial/Blink
How would you go about porting this into Crossworks? Remember that it needs to import all the Arduino libraries...
-
Hi Michael,
There is now an Arduino Sketch example in the Arduino M0 Pro Board Support Package that demonstrates a CrossWorks project that runs the Blink.ino example.
To open the solution, install the board support package, click Tools > Show Installed Packages, click the Arduino M0 Pro Board Support Package link, click the M0 Pro Sketch Sample Solution link and then follow the instructions in the README.txt on how to configure the project.
Regards,
Jon
-
Links are broken: https://docs.arduino.cc/retired/boards/arduino-m0-pro
I found the 'Package generator' in the Help, nice, that should explain some whys.
What I didn't understand is how CrossStudio goes from *.ino to cpp but thinking about it the board manager put all the boards information in that Arduino package when it installed the board and your not 'importing' anything, just using their existing files..
-
What I didn't understand is how CrossStudio goes from *.ino to cpp but thinking about it the board manager put all the boards information in that Arduino package when it installed the board and your not 'importing' anything, just using their existing files..
All files placed in the INO Source Files folder are compiled as C++ files with the "-include Arduino.h" compiler option which makes the compiler always include the Arduino.h header file.
Please sign in to leave a comment.
Comments
6 comments