AS 7 import Arduino and Teensyduino

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Has anyone been able to import a Teensyduino sketch?  It seems like it should be a fairly simple change of a few of the src->core files...  if anyone has done it and has a list of changes, that would be helpful.  If not, I will muddle through and post one here when I get it working.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

PJRC produce several "Teensy" boards e.g. https://www.pjrc.com/teensy/inde...

 

Teensy 2.0 and 2.0++ use AVRs.

Other Teensys use ARM chips from NXP.

 

AS7.0 is never going to support non-Microchip devices.

 

And it looks as if Mr Stoffregen does not encourage you to attach a SWD debugger to his ARM boards.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Of course...  I am using the Teensy 2, which is ATMEGA32u4. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It should import ok.   With the usual caveats about the poor AS7.0 "Arduino-build" performance compared to the proper Arduino IDE.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah, a lot of unneeded things came along for the ride...   I just scraped C++ and re-wrote the needed part of the core, SPI, and timers in C (as I was using LUFA).  I think the Teensy w/ ArduinoIDE was maybe not the place to start, expect as very basic proof of concept....  The Teensy seems very good at doing hack/make stuff quickly, but as soon as you stray from the 80% use case it gets harder than a 'native' Arduino.