teensy_secure error reading: IDE 2.1 Export Compiled binary

defragster

Senior Member+
@PaulStoffregen - when build of sketch Export it seems the updated path may not be used at some point?

Did the Sketch/Export on Windows and got this that worked as expected - first time tried and it is in indicated build subdirectory ...
Code:
 Directory of C:\T_Drive\tCode\T_4.1\BroadcastChatUDP\build\teensy.avr.teensy41

06/04/2023  02:29 AM                34 BroadcastChatUDP.ino.eep
06/04/2023  02:29 AM           405,191 BroadcastChatUDP.ino.ehex
06/04/2023  02:29 AM         1,845,324 BroadcastChatUDP.ino.elf
06/04/2023  02:29 AM           458,044 BroadcastChatUDP.ino.hex
06/04/2023  02:29 AM         2,788,510 BroadcastChatUDP.ino.lst
06/04/2023  02:29 AM            74,289 BroadcastChatUDP.ino.sym

Looks like the build completed and even got a .eHex file - below suggests everything worked but the build error is with: teensy_secure

Code:
Memory Usage on Teensy 4.1:
  FLASH: code:134232, data:19404, headers:9176   free for files:7963652
   RAM1: variables:23840, code:130948, padding:124   free for local variables:369376
   RAM2: variables:79520  free for malloc/new:444768
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/stdout_redirect" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\5C3A5365A0EEA1CC6F73563D01D09BFC/BroadcastChatUDP.ino.lst" "C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1/arm/bin/arm-none-eabi-objdump" -d -S -C "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino\\sketches\\5C3A5365A0EEA1CC6F73563D01D09BFC/BroadcastChatUDP.ino.elf"

Using library QNEthernet at version 0.21.0-snapshot in folder: C:\T_Drive\tCode\libraries\QNEthernet 
Using library Time at version 1.6.1 in folder: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\Time 
[B]"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0/teensy_secure" encrypthex TEENSY41 {sketch_path}/BroadcastChatUDP.ino.TEENSY41.hex
error reading {sketch_path}/BroadcastChatUDP.ino.TEENSY41.hex
exit status 1
[/B]
Compilation error: exit status 1

A normal Verify build gives these results in Temp that look the same - and the above files all binary compare so teensy_secure did do its work:
Code:
 Directory of C:\Users\Tim\AppData\Local\Temp\arduino\sketches\5C3A5365A0EEA1CC6F73563D01D09BFC

06/04/2023  02:39 AM                34 BroadcastChatUDP.ino.eep
06/04/2023  02:39 AM           405,191 BroadcastChatUDP.ino.ehex
06/04/2023  02:39 AM         1,845,324 BroadcastChatUDP.ino.elf
06/04/2023  02:39 AM           458,044 BroadcastChatUDP.ino.hex
06/04/2023  02:39 AM         2,788,510 BroadcastChatUDP.ino.lst
06/04/2023  02:39 AM            74,289 BroadcastChatUDP.ino.sym
06/04/2023  02:39 AM               487 build.options.json
06/04/2023  02:39 AM            69,634 compile_commands.json
 
Back
Top