Search results

  1. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    JTAG instrumentation - FreeMaster Verifying that NXP FreeMaster works with Teensy 4.1 Example showing the live status of my blinking LED, and the angle position [deg] of a rotary encoder, that I'm turning. Using JTAG instrumentation, no extra code is needed on the device. I seem to be able...
  2. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    Serial Wire Debug It is possible to switch to SWD again by writing OCOTP->CFG5 = 0x18 in your C code; That is BootConfig5 shadow register, where bit 19 sets SWD or JTAG. or if you want to do it in J-Link commander over JTAG, you can run this (Enable_SWO.jlink) commander script Device...
  3. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    JTAG in flash boot mode Spencez, when I use JTAG, I need to press the program button first for J-Link Commander to connect, otherwise i get a "Invalid implemeter code read from CPUIDVal[31:24] = 0xFF" error ​Do you have the same issue, and if so, have you figured out why? EDIT: Ohh google...
  4. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    Remade my paint schematic To be sure, how to connect TDI and TDO, connect GND, VDD, TMS, and TCK first, then check which pin is sending data from the JTAG adapter, and from the MXRT1062. Connect the sending pin of the JTAG-adapter with the MXRT1062 reciever (not sending pin), and vice versa.
  5. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    Check out this thread https://forum.pjrc.com/threads/66180-Teensy-4-1-Debug-Mod-Project?p=297060&viewfull=1#post297060 or (from MCUXpresso) together with the schematic provided by PJRC. Teensy 4.1 Development Board I did have an ugly schematic in paint, but we had a power loss before it was...
  6. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    Vias Can also explain the reason I solder on vias, instead of tracks/pads: In my experience, vias can take more force and heat than pads. I have ripped off many pads in my days doing mods, but since I started to add small wires to vias instead of pads, the soldered wire will pull loose before...
  7. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    Thanks for the warning regarding MKL02! I made 2 versions, one larger mod with 2 external delay-reset circuits, where the MKL02 was removed, but since my MKL02 worked without issues, I cont. to work with the simple mod.
  8. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    Visual Studio Code I verified that JTAG worked in VSC & platformIO, meaning I can use the Teensy Arduino framework with JTAG. A working platformio.ini shown below (for Segger JLINK) [env:teensy41] platform = teensy board = teensy41 framework = arduino debug_tool = jlink debug_port = :2331 ...
  9. lilltroll77

    Simple WORKING JTAG+UART for Teensy 4.1

    Below is my simple mod to add JTAG with UART to Teensy 4.1. Tools needed: Small screwdriver, small solder tip, small knife, optical magnification, Isopropanol and good flux. YOU ONLY NEED TO MOD PIN 5-8 and pin 13! I have just played around with the Cortex M0 chip to understand how things...
  10. lilltroll77

    Modifying "Arduino" libraries - and where to place the modified files in VSC?

    Modifying "Arduino" libraries - and where to place the modified files in VSC? Hi I'm using VSC, and I have modified several of the "Arduino" libraries to improve performance for my specific application. Where should I place the modified files, so they get compiled and linked correctly, and...
  11. lilltroll77

    T4.1 Ethernet Library

    Are there any plans to add Precision Time Protocol IEEE 1588-200X to the Lib ? My understanding is that T4 has hardware support for PTP.
  12. lilltroll77

    Lib with 1-Wire Protocol with FlexIO ?

    Hi I'm doing my first Teensy project in VSC. I have tested the 1-Wire Protocol lib together with the Dallas temperature lib, and it works stand-alone. Combining it with other time-sensitive real-time stuff seems like a bad idea, even after some modification of the lib. In the NXP...
  13. lilltroll77

    Problem with using Serial.printf/printf outside main.cpp in platformIO

    Workaround This works after some trial and horror, but is this the best way in platformIO ??? main.cpp #include <Arduino.h> #include <T4_PowerButton.h> #include "reent.h" extern "C++" void debug_CPP(int &x); void setup() { // put your setup code here, to run once: Serial.begin(9600)...
  14. lilltroll77

    Problem with using Serial.printf/printf outside main.cpp in platformIO

    Hi I'm using platformIO and Serial.printf() works for me inside main.cpp. But I cannot make Serial.printf() outside main or making #include "debug/printf.h" work Including Arduino.h outside main does not declare Serial 'Serial' undeclared (first use in this function) How is...
  15. lilltroll77

    Code generated for Teensy40

    Update on the topic of disassembler Hi! I'm totally new to Teensy, (ordered a T 4.1 yesterday), VCS and platform IO. I would like an update on the best tool for disassembler, and the best tool/extension to integrate it in VSC IDE. So far I have installed the compiler explorer extension. I...
Back
Top