Hello!
I'm very new in Teensy programming (this is my first project with it).
I have following question:
I'm using Teensy 3.6, and following very simple sketch on Arduino: everything is working perfectly (LED is blinking)
Now I'm trying to make it using MCUXpresso IDE (nothing is working):
For MCUXpresso, I'm using "teensy\avr\cores\teensy3" files, and compiler-assemler-linker settings from teensy\avr\boards.txt file.
The compilation goes without any errors. After the compilation I do the "conversion into HEX" file using internal MCUXpresso utility, and load this hex file into Teensy 3.6, using Teensy loader 1.40.
Since led is not blinking and no any new COM port on PC side, I suspect that something very important is missing (and/or my program just not starting).
What could be the reason of this issue, and how can I debug it?
Looking forward for the reply.
Best regards, Igor
I'm very new in Teensy programming (this is my first project with it).
I have following question:
I'm using Teensy 3.6, and following very simple sketch on Arduino: everything is working perfectly (LED is blinking)
Code:
volatile unsigned int count;
int k;
void setup() {
k = 0;
pinMode(13, OUTPUT);
pinMode(21, OUTPUT);
count = systick_millis_count;
}
void loop() {
digitalWriteFast(13, HIGH);
digitalWriteFast(21, HIGH);
count = systick_millis_count;
while ((systick_millis_count - count) < 1000) { k++; }
digitalWriteFast(13, LOW);
digitalWriteFast(21, LOW);
count = systick_millis_count;
while ((systick_millis_count - count) < 1000) { k++; }
}
Now I'm trying to make it using MCUXpresso IDE (nothing is working):
Code:
#include "WProgram.h"
int main(void)
{
int k = 0;
pinMode(13, OUTPUT);
pinMode(21, OUTPUT);
volatile unsigned int count = systick_millis_count;
while (1) {
digitalWriteFast(13, HIGH);
digitalWriteFast(21, HIGH);
count = systick_millis_count;
while ((systick_millis_count - count) < 1000) { k++; }
digitalWriteFast(13, LOW);
digitalWriteFast(21, LOW);
count = systick_millis_count;
while ((systick_millis_count - count) < 1000) { k++; }
}
return 0;
}
For MCUXpresso, I'm using "teensy\avr\cores\teensy3" files, and compiler-assemler-linker settings from teensy\avr\boards.txt file.
The compilation goes without any errors. After the compilation I do the "conversion into HEX" file using internal MCUXpresso utility, and load this hex file into Teensy 3.6, using Teensy loader 1.40.
Since led is not blinking and no any new COM port on PC side, I suspect that something very important is missing (and/or my program just not starting).
What could be the reason of this issue, and how can I debug it?
Looking forward for the reply.
Best regards, Igor