Author Topic: Tutorial for Arduino .hex to uTasker acceptable bin application update file  (Read 443 times)

Offline lolachampcar

  • Newbie
  • *
  • Posts: 3
    • View Profile
I'd like to use uTasker to first look for an application update file on the SD card of a Teensy 4.1 and then wait in USB MSC if at USB cable is plugged in for transfer of an encrypted field update file.

The Teensy 4.1 is running the uTasker pre-compiled binary and it is easy to navigate through Admin to Boot to enable USB MSC enumeration of the Teensy board.  Is there a tutorial for properly converting a Teensy Arduino .hex file to a uTasker acceptable .bin file?  The uTasker_BM_loader.pdf describes using the uTasker conversion utility for a .bin file output to a uTasker acceptable .bin.  Is it safe to assume a simply .hex to .bin conversion the Arduino output will produce an acceptable .bin input to the conversion utility?  There is mention in the uTasker bare minimum loader document of " Its start address must be set to correspond to the start address in the “bare minimum” loader. This can be set in the linker file.".  I am new to Arduino and normal linker files seem to be hidden from the user thus my question regarding a tutorial.

Thanks, Bill

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3249
    • View Profile
    • uTasker
Bill

Please use https://www.utasker.com/docs/iMX/GCC.pdf as guide to preparing the header and setting the necessary link address for any project.
If you don't find the details there try also https://www.utasker.com/docs/iMX/MCUXpresso.pdf as it may be a bit more 'foreign' application oriented.

Finally use the check-list in the appendix of https://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf in case of problems.

Regards

Mark

Offline lolachampcar

  • Newbie
  • *
  • Posts: 3
    • View Profile
Thank you Mark.  I've each one and understand in rough terms what needs to be done.  I need to up my game in the native IDE before really having any chance of employing uTasker.  Arduino is good for very quickly blinking LEDs but not really the right tool for core work.