Axel
Assuming you are using CW there is a building guide here:
https://www.youtube.com/watch?v=uBbiw36Caq4&feature=youtu.be
For the serial loader (USB-MSD, UART, SD-card) on Teensy 3.1 these are the steps/settings for the USB-MSD loader:
1. Select the target in CW "uTaskerSerialLoader"
2. In config.h (in uTaskerSerialBoot directory) ensure that TEENSY_3_1 is seelcted and other board types disabled
3. Make sure that USB is enabled (#define USB_INTERFACE)
4. In target properties ensure that Cortex-m4 is selected (and not cortex-m0)
5. In linker general setting ensure that a suitable linker script file is selected "${uTaskerV1_4}/Linker_Files/K_256_64.ld" matches the Teensy exactly
6. If you load with the Teensy loader you will need a HEX output. Add this to the file \Applications\uTaskerSerialBoot\KinetisCodeWarrior\generate.bat with an additional conversion command:
arm-none-eabi-objcopy --output-target=ihex uTaskerSerialBoot.elf uTaskerSerialBoot.hex
7. Build
8. Load with Teensy loader
I just tested these steps on the V1.4.4 release and it worked correctly on the Teensy 3.1
Notes:
- if not using CW there is support for GCC standalone, IAR, Keil, Atollic and Rowley Crossworks for building (steps essentially the same in each case and the code is IDE independent)
- by setting the desired board in config.h (and the correct target type andliner script in the compiler) the build will work on any Freescale Freedome or tower kits as well as a few other board for alternative hardware vendors.
- In the simulator folder the project can be built with Visual studio (free VS Express edition is adequate) and will simulate the teensy and allow the project to be run, tested and debuggedin (approx.) real-time on the PC.
- there is the serial loader and main application in the project with many options and also runs on all KL and K processor types and boards (limited by particular devices' peripheral availability accordingly)
For the USB-MSD SD card (memory stick application) use the "uTaskerV1.4_Flash" target and configure the same in config.h in its folder - select USB and SDCARD_SUPPORT and build. Of course the SD card must be connected accordingly for it to see the content.
It is always recommended to use the simulator in parallel since it allows you to quickly check that all is set up correctly.
Regards
Mark