vsCode build results in HEX file that won't upload

Status
Not open for further replies.

Mike Maurice

Active member
I had a little trouble installing vsCode, but the only issue that I can't seem to find a way around or any references online about is the following message:
Firmware too big (max 1048576 bytes)

Uploads of this source compiled from the Teensyduino IDE work without problems, if the source is compiled in it. It is just the hex compiled in the vsCode build.
The vsCode hex is about 40K and the ELF is about 350K.

I have tried using the tyCommander and it's variants. Also, using the Arduino uploader from the IDE.
Here is the code:
#include "Arduino.h"

void setup()
{
pinMode(LED_BUILTIN,OUTPUT);
}

void loop()
{
digitalWriteFast(LED_BUILTIN,!digitalReadFast(LED_BUILTIN));
delay(500);
}

Any suggestions?
 
Last edited:
Which Teensy are you using?

4.1 board. And the latest Arduino and Teensyduino. As well as the latest vsCode and tools.

I may have found the answer. The vsCode generates a file with ".hex" extension.
The Arduino generates ".ino.hex". The latter version uploads. The vsCode version uploads if it is renamed.

The Teensy loader loads both, but the TyCommander and it's support tools will not.

This will require some more testing.
 
Last edited:
Status
Not open for further replies.
Back
Top