JTAG pin header

Discussion in 'UDOO NEO' started by tcmichals, Nov 20, 2015.

  1. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
    What is the spacing of the pads, 1mm? 2mm? .050" I'm trying to find the right SMT header.
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Should be a Molex 87832-1420 which is 14pin 2mm, as I posted here . Although I wouldn't recommend it, however if your feeling brave you can solder wires to the pcb pad as I have previously done.
     
  3. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
  4. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
  5. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
    Able to start and stop the M4 via JTAG using openocd. Next step is to validate breakpoints, uploading, source level debug.
     
    Last edited: Jan 3, 2016
    Andrea Rovai likes this.
  6. tcmichals

    tcmichals Member

    Joined:
    Feb 25, 2015
    Messages:
    54
    Likes Received:
    27
    OK jtag is now working with some caveats:
    • Enhancements
      • Need to remove the RDC protection to allow reloading M4 without reset (can be done in the M4 code since it is debug compile)
        • The M4 code calls into the RDC to protect memory from A9 changing it; so to fix it just don't invoke the API; but a #if around the code for a debug compile.
      • Need to add setting up the clocks and put M4 into a spin loop until DAP halts the processor
      • When signal stepping the M4 the A9 is also halted until you continue. (Nice if you have some type of ISR debug)
    • How to
      • boot Neo
      • load the M4 code via A9 i.e ./mqx_upload_on_m4SoloX baseflight.bin
      • Then start openocd ./src/openocd -f interface/ftdi/jtagkey.cfg -f ./tcl/target/imx6sx.cfg
      • then start debug session i.e
        arm-none-eabi-gdb -tui ./baseflight.elf
        tar ext :3333
      • monitor reset
      • load

    Moving forward with debugging FreeRTOS ;)
     
    Andrea Rovai likes this.

Share This Page