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

Thread: teeny++2 no upload

  1. #1

    teeny++2 no upload

    I am using teensy++2-bord on several macbooks pro (now with big sur)for a long time. Actually with a project using teensyduino RawHID that worked without problems for weeks.
    But suddenly I am unable to upload the code.
    I get the error
    Code:
    Sketch uses 8316 bytes (6%) of program storage space. Maximum is 130048 bytes.
    Global variables use 827 bytes (10%) of dynamic memory, leaving 7365 bytes for local variables. Maximum is 8192 bytes.
    Teensy did not respond to a USB-based request to enter program mode.
    Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
    An error occurred while uploading the sketch
    I had to force the loader to accept the board with pressing the upload button while plugging in. Pressing the button as mentioned activated the loader, but it showed "Erasing EEPROM" and did not upload the code.

    I tried to upload the code on the command line with
    Code:
    username@macbookpro Charger21_2 % teensy_loader_cli --mcu=at90usb1286 -w Charger21_2.hex
    giving the error
    Code:
    MCU type must be specified
    
    Usage: teensy_loader_cli -mmcu=<MCU> [-w] [-h] [-n] [-v] <file.hex>
    	-w : Wait for device to appear
    	-r : Use hard reboot if device not online
    	-n : No reboot after programming
    	-v : Verbose output
    
    <MCU> = atmega32u4 | at90usb162 | at90usb646 | at90usb1286
    Uploading another old project outside teensyduino with choosing the hex file in teensyloader and pressing the upload button works without problems.

    I thought that my experiment with a esp8266-board in an arduino sketch with installing drivers might have corrupted teensyduino. So I removed everything and reinstalled teensyduino with no success.
    Any ideas what is going wrong?

  2. #2
    Member
    Join Date
    Aug 2018
    Location
    Brisbane, Australia
    Posts
    77
    Quote Originally Posted by heimi View Post
    I tried to upload the code on the command line with
    Code:
    username@macbookpro Charger21_2 % teensy_loader_cli --mcu=at90usb1286 -w Charger21_2.hex
    giving the error
    The command line switch should be -mmcu

  3. #3
    Hi thebigg
    Thanks for your answer, but same answer: Device must be specified

  4. #4
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,327
    Just use Teensyduino.

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,077
    Quote Originally Posted by heimi View Post
    but it showed "Erasing EEPROM" and did not upload the code.
    Did you get this Teensy++ 2.0 directly from PJRC or an authorized distributor? Can you show a photo? This is the sort of error is likely with counterfeit boards.

Posting Permissions

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