Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Teensy 4 probs with >1MB elfs

  1. #1

    Teensy 4 probs with >1MB elfs

    I have an issue with >1MB elfs on Teensy 4. If I have >1MB program running on T4 and I want to upload another elf, regardless of the size of the new elf, this upload always fails (gives "Download Error" in Teensy Loader). So I have to hit the "programming button" on T4 and recompile & reupload the program for it to work. I don't know if this is a known issue and it's not that big of a deal, more of an annoyance. Uploading works fine for <1MB elfs.

    Thanks, Jarkko

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,332
    In that >1MB code does Serial In and out work? What version of TeensyDuino is in use?

    Perhaps a post of the Verbose Teensy Loader 'Verbose Info' log {under help} would show something?

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,073
    My first guess is we may have a timing bug, where Teensy Loader might not be waiting long enough for the chip to erase when it's been previously programmed. I did test a full chip upload early in the T4 beta, but it's been a while since those tests.

    Can you please give me the .hex and .elf file you're uploading. This forum's advanced editor lets you attach a zip file to your message. Click the "Go Advanced" button if you're using the "Quick Reply" editor, to get the editor which lets you attach a file.

    Also, please tell me which operating system and version you're using, so I can be sure to test the same way you're uploading.

  4. #4
    Had some problems trying to upload hex & elf, but attached is the project. I'm compiling on Win10 & Arduino IDE 1.8.10 (uploading via Visual Micro also fails), Teensyduino 1.48. This is also using the Audio Adaptor Board (Rev D).
    Attached Files Attached Files

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,073
    Working on this now. Indeed, the problem is a 2.5 second timeout (in Teensy Loader) while waiting for chip erase. It's actually taking 2.8 seconds when previously programmed with this much data.

    There's also a bug where it should be displaying "Erasing..." in the progress bar, but changes too soon to "Programming".

    Soon I'll publish 1.49-beta4 with the timeout lengthened to 6 seconds, and that status display fixed.

  6. #6
    Thanks for checking it out.

    Cheers, Jarkko

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •