Reinhard55
Active member
Hi guys,
I am working on a project on Teensy 4.1.
The story is:
I buildt a project in Atmel (Microchip) Studio 7 running on an Arduino Uno. It is a very special sound player. And it is running on an Arduino Uno, but it's to slow to match my needs.
The details of the project doesn't matter here, there is no issue because it is running - but to slow.
So I looked for an alternative to the Uno, and bought a Teensy 4.1 to get more performance.
I think best for Teensy 4.1 is the Arduino IDE with Teensyduino.
But I don't want to port the whole project.
My idea is to write hardware related parts of the project in Arduino IDE with Teensyduino. I want to build some includes and then fetch the object files (.o) to put it into object files into Atmel (Microchip) Studio 7, where the existing and working project has been developed.
I start with a simple thing:
>> On Teensyduino the code is:
/* LED Include for Teensy 4.1 */
#include <Arduino.h>
const int ledPin = 13;
void LED_on() {
pinMode(ledPin, OUTPUT); // initialize the digital pin as an output
digitalWrite(ledPin, HIGH); // set the LED on
}
void LED_off() {
pinMode(ledPin, OUTPUT); // initialize the digital pin as an output
digitalWrite(ledPin, LOW); // set the LED on
}
I fetched the .o-file and put it as 'other object' into the ARM/GNU linker.
>> On Atmel Studio the code is:
extern void LED_on (void);
int main(void) {
LED_on(); // set the LED on
return(0);
}
In Atmel Studio I changed the target processor of the existing project to ATSAMD51G19A (is this a good choice?) and started the build process..
Atmel Studio tells me:
Error ..\Teensy Projekte\Teensy1\sketch\TeensyLED.cpp.o uses VFP register arguments, Teensy1.elf does not
To solve this I have two questions at first:
1. Am I able to change the compiler options in Teensyduino that they match those of Atmel Studio Compiler?
How and where?
2. Has anybody in the community done this?
And what is your experience with it?
Any suggestions? Many thanks.
Reinhard
I am working on a project on Teensy 4.1.
The story is:
I buildt a project in Atmel (Microchip) Studio 7 running on an Arduino Uno. It is a very special sound player. And it is running on an Arduino Uno, but it's to slow to match my needs.
The details of the project doesn't matter here, there is no issue because it is running - but to slow.
So I looked for an alternative to the Uno, and bought a Teensy 4.1 to get more performance.
I think best for Teensy 4.1 is the Arduino IDE with Teensyduino.
But I don't want to port the whole project.
My idea is to write hardware related parts of the project in Arduino IDE with Teensyduino. I want to build some includes and then fetch the object files (.o) to put it into object files into Atmel (Microchip) Studio 7, where the existing and working project has been developed.
I start with a simple thing:
>> On Teensyduino the code is:
/* LED Include for Teensy 4.1 */
#include <Arduino.h>
const int ledPin = 13;
void LED_on() {
pinMode(ledPin, OUTPUT); // initialize the digital pin as an output
digitalWrite(ledPin, HIGH); // set the LED on
}
void LED_off() {
pinMode(ledPin, OUTPUT); // initialize the digital pin as an output
digitalWrite(ledPin, LOW); // set the LED on
}
I fetched the .o-file and put it as 'other object' into the ARM/GNU linker.
>> On Atmel Studio the code is:
extern void LED_on (void);
int main(void) {
LED_on(); // set the LED on
return(0);
}
In Atmel Studio I changed the target processor of the existing project to ATSAMD51G19A (is this a good choice?) and started the build process..
Atmel Studio tells me:
Error ..\Teensy Projekte\Teensy1\sketch\TeensyLED.cpp.o uses VFP register arguments, Teensy1.elf does not
To solve this I have two questions at first:
1. Am I able to change the compiler options in Teensyduino that they match those of Atmel Studio Compiler?
How and where?
2. Has anybody in the community done this?
And what is your experience with it?
Any suggestions? Many thanks.
Reinhard