Forum Rule: Always post complete source code & details to reproduce any issue!
Page 10 of 10 FirstFirst ... 8 9 10
Results 226 to 247 of 247

Thread: Teensy 4.0 Breakout Kit

  1. #226
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    Not sure that is right pin 1 should be located by that little tab which would mean 39 should cross over from cable to sd connector.:
    Click image for larger version. 

Name:	Picture1.jpg 
Views:	6 
Size:	117.8 KB 
ID:	17653

    Think the wiring is correct.

  2. #227
    Senior Member
    Join Date
    Aug 2016
    Posts
    125
    dont forget when you put the sd card in the socket. you flip it over. so pin one is now on the bottom

  3. #228
    Senior Member
    Join Date
    Aug 2016
    Posts
    125
    also my breakout is TD-T40B-A2

  4. #229
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    Quote Originally Posted by firehopper View Post
    dont forget when you put the sd card in the socket. you flip it over. so pin one is now on the bottom
    Think of it as an xray looking from the top:
    Click image for larger version. 

Name:	Picture1.jpg 
Views:	0 
Size:	77.2 KB 
ID:	17654

    Those connectors always drove me crazy with the correct connections.

  5. #230
    Senior Member
    Join Date
    Aug 2016
    Posts
    125
    if you look at the pinout card, pin 39 at the red end actually connects to 34
    I used a 'scope probe and actually tested under power. and saw the signals I did and recorded on that post. those signals are in the wrong spots for the sd card

  6. #231
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,400
    Very confusing with pins swapping across Card sizes in Four-bit SD bus mode :: https://en.wikipedia.org/wiki/SD_card

    and orientation is odd too - top side view above odd where pins on the bottom.

  7. #232
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    @firehopper - @defragster - @KurtE

    @firehopper - my sincerest apologies - but believe you are absolutely correct, pins connections are reverse on the SD Card Connector! Good catch! My mistake is that I forgot to flip the cable connections when you flip the board over.

  8. #233
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    Quote Originally Posted by firehopper View Post
    if you look at the pinout card, pin 39 at the red end actually connects to 34
    I used a 'scope probe and actually tested under power. and saw the signals I did and recorded on that post. those signals are in the wrong spots for the sd card
    See my post #230. Figured out my mistake.

  9. #234
    Senior Member
    Join Date
    Aug 2016
    Posts
    125
    Quote Originally Posted by mjs513 View Post
    @firehopper - @defragster - @KurtE

    @firehopper - my sincerest apologies - but believe you are absolutely correct, pins connections are reverse on the SD Card Connector! Good catch! My mistake is that I forgot to flip the cable connections when you flip the board over.
    its okay, its good to have my conclusions double checked

  10. #235
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,316
    @mjs513...

    That was what I wondered back in the posting: https://forum.pjrc.com/threads/57122...l=1#post216075

  11. #236
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    Quote Originally Posted by KurtE View Post
    @mjs513...

    That was what I wondered back in the posting: https://forum.pjrc.com/threads/57122...l=1#post216075
    Was thinking about that post when i was looking at the schematics this time around. It just didn't register what i was probing on the cable connector and the location on the SD Card connector until @firehopper pointed it out. Now it all makes sense in hindsight.

  12. #237
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,316
    @mjs513 @firehopper ...

    Yep -
    As I mentioned in that previous posting, when I assembled the first board that I did for the T4, nothing was working, and so I plugged in the sparkfun adapter and did the blink the pins
    test. and found that what I expected in DAT1 ended up on DAT2 (opposite end)... Actually I also then double checked on the IO pins I had put on my board and it also went to the wrong pins. My mistake was I forgot to reverse things, when laying out the board, is the direction on the board the connector is pointing, which in using the ribbon cable, the ribbon sort of folded in half and the cable went into the front of the connector and not like a logical straight through shot...

    Sort of a similar mistake...

  13. #238
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,400
    Certainly shows why they didn't work for us Still wonder what I did to get #36 messed with and @mjs513's #38 possibly?

    I never tested anything against the wires in the SD connector - as setup I needed to have USB connected - so took all of that as good and never went to verify pin ordering.

    @loglow - hopefully that helps you for your next effort - though rework and changes

  14. #239
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    Quote Originally Posted by KurtE View Post
    @mjs513 @firehopper ...

    Yep -
    As I mentioned in that previous posting, when I assembled the first board that I did for the T4, nothing was working, and so I plugged in the sparkfun adapter and did the blink the pins
    test. and found that what I expected in DAT1 ended up on DAT2 (opposite end)... Actually I also then double checked on the IO pins I had put on my board and it also went to the wrong pins. My mistake was I forgot to reverse things, when laying out the board, is the direction on the board the connector is pointing, which in using the ribbon cable, the ribbon sort of folded in half and the cable went into the front of the connector and not like a logical straight through shot...

    Sort of a similar mistake...
    Yeah - I ordered the board too late for this effort but it would have come in handy, of course it comes tomorrow

  15. #240
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,316
    Yep - Back in T3.6 beta days, I made my own, that looked sort of like:
    Click image for larger version. 

Name:	MicroSDAdapterT3.6.jpg 
Views:	2 
Size:	21.4 KB 
ID:	17656

    I also made a one row one back then with the T3.6 signal names..

    Maybe should make a new one with T4 pin numbers on it. And maybe signal names on back... Although so far the boards that I do that I adapt for SD also have pins...

  16. #241
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,400
    I remember that board KurtE - I got a set of them - but PCB too thick as ordered, Worked at thinning it a bit but never had need for it …

    I put another set of LoPro headers on the bottom to access all pins - since the other side wrongly went on bottom {and pin card reads from top - … must watch 5V!} . Opps - no more taking out the RTC cell.
    Also desoldered the SD socket since it was not usable - pads are clean and healthy, no reason seen there for issues.

    I wrote an xx=3 test that is an alternate to the Single Pin KurtE PinTest - it cycles all NUM_DIGITAL_PINS. First setting pinMode (see below) then doing USB print of any change from prior value.
    Code:
     This is current code for xx=0,1,2,3 testing::
    
    TallDog_SDIOpinTest.ino
    
    @ALL - interesting if this works as expected on the breakout, and if it shows any anomalies.
    "PULLDOWN :: TEST to 3.3V" ::
    Initial setting is PULLDOWN looking for any pin sitting HIGH and announces it during the pinMode loop, records state 5us after setting and indicates if it didn't take the expected state { one pin was lagging }.
    >> Any change from recorded state is announced to USB Serial.

    Any Serial USB input causes it to toggle, if PULLDOWN then it goes to PULLUP, and the reverse repeats the above - except w/20us wait as below to allow state change.

    "PULLUP :: TEST TO GND" ::
    Going to PULLUP looking for any pin sitting LOW and announces it, records state 20us after setting and indicates if it didn't take the expected state.
    >> Any change from recorded state is announced to USB Serial.

    There is at least a partial catch for multiple pins changing per 'test cycle' - pauses cycle 50ms on any change per test and on multiple changes something like this shows instead of one change per line:
    d#=34 val=0,d#=39 val=0,>>>
    RESULTS::
    > On PULLDOWN p#36 is always drifts HIGH, GND does show a zero - but one w/GND removed.
    > And on PULLUP #37 drifts HIGH, then LOW when untouched - in fits repeatedly then quiet. ALL is quiet on PULLDOWN

    Some other pins don't act right - too late to catalog them. Somehow at one point - twice in fact - I had to do 15s Restore of T4.
    > Once after soldering the second header row PC didn't see it - I think it was left with good code? Bootloader would go RED and even that was unseen.
    > The other time during early code updates - not sure why that was.

  17. #242
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    Quote Originally Posted by KurtE View Post
    Yep - Back in T3.6 beta days, I made my own, that looked sort of like:
    Click image for larger version. 

Name:	MicroSDAdapterT3.6.jpg 
Views:	2 
Size:	21.4 KB 
ID:	17656

    I also made a one row one back then with the T3.6 signal names..

    Maybe should make a new one with T4 pin numbers on it. And maybe signal names on back... Although so far the boards that I do that I adapt for SD also have pins...
    Nice = wish I had that when I was testing would have saved a lot of time.

  18. #243
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,966
    @defragster decided to give you XXX=3 pin test a shot, got these results for reference on my board with the SD card socket still attached:
    Code:
    PULLDOWN Start Vals:
      PULLDOWN :: TEST to 3.3V
      
    d#=0 val=1,0,0,0,0,0,0,0,0,0,
    d#=10 val=1,0,0,0,0,0,
    d#=16 val=1,
    d#=17 val=1,
    d#=18 val=1,
    d#=19 val=1,0,0,0,0,
    d#=24 val=1,
    d#=25 val=1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    
    PULLUP :: TEST TO GND
      PULLDOWN :: TEST to 3.3V
      d#=0 val=1
    d#=10 val=1
    d#=16 val=1
    d#=17 val=1
    d#=18 val=1
    d#=19 val=1
    d#=24 val=1
    d#=25 val=1
    d#=34 val=1
    d#=36 val=1
    d#=34 val=0,d#=36 val=0,>>>
    >>>
    >>>
    >>>
    Note pullups on board.

    On one of my breakout boards I get (no canfd transceiver:
    Code:
    PULLDOWN Start Vals:
      PULLDOWN :: TEST to 3.3V
      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    
    PULLUP :: TEST TO GND
      PULLDOWN :: TEST to 3.3V
      PULLUP :: TEST TO GND
      PULLDOWN :: TEST to 3.3V
    On PRJC's breakout (CanFD transceiver on pins30/31:
    Code:
    PULLDOWN Start Vals:
      PULLDOWN :: TEST to 3.3V
      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    d#=30 val=1,
    d#=31 val=1,0,0,0,0,0,0,0,0,
    
    PULLUP :: TEST TO GND
      PULLDOWN :: TEST to 3.3V
      d#=30 val=1
    d#=31 val=1
    Last edited by mjs513; 09-21-2019 at 12:44 PM.

  19. #244
    Senior Member
    Join Date
    Aug 2016
    Posts
    125
    anyone heard from @loglow lately?

  20. #245
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,400
    Cool - it seems to work as expected.
    Quote Originally Posted by mjs513 View Post
    @defragster decided to give you XXX=3 pin test a shot, got these results for reference on my board with the SD card socket still attached:

    ...
    Not sure this is 'neutral / good'?
    d#=34 val=1
    d#=36 val=1
    d#=34 val=0,d#=36 val=0,>>>

    That is just the SETUP for those modes - it will catch pins that are unstable or PULLed opposite of the test expectation:

    Not sure if it was clear and this was tried?

    When in "PULLDOWN :: TEST to 3.3V" put a Jumper wire to 3.3V and touch any single pin in turn and it should show that pin rise to 1 and drop to 0 on removal, with no other pins following.

    … hit SerMon ENTER ...

    When in "PULLUP :: TEST TO GND" put a Jumper wire to GND and touch any single pin in turn and it should show that pin drop to 0 and rise to 1 on removal, with no other pins following.

    The multi PIN change ">>>" indication was an after thought and might need refinement or UI cleanup, but if on a single pass a single pin touch shows more than one pin change it indicates those pins are not independent or properly functional to the MCU.

    With four possible tests - rather than recompile setup() could present a MENU list and take USB input to set "xx= ??" and then run to loop().

    Could add a 5th test reading HI/LOW on digital pins and analogRead() value on the 14 analog pins, then put out a changing PWM value from Pin_0?
    >> like with read/write resolution of 12 bits :: uint32_t outPwmVals[] = { 0, 682, 1364, 2020, 2060, 2728, 3410, 4092 };
    Digital should show LOW through 2020, then HIGH above that, and Analog pins should match - each held for 120 ms?
    Last edited by defragster; 09-21-2019 at 06:16 PM.

  21. #246
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,400
    Quote Originally Posted by firehopper View Post
    anyone heard from @loglow lately?
    I have not. IIRC Last note said he was due back home Monday. Hopefully all well and feedback here useful for making useful updates, changes.

    Mike got replacement FLEX cable that must have shipped before his travel.

  22. #247
    Senior Member
    Join Date
    Aug 2016
    Posts
    125
    Quote Originally Posted by defragster View Post
    I have not. IIRC Last note said he was due back home Monday. Hopefully all well and feedback here useful for making useful updates, changes.

    Mike got replacement FLEX cable that must have shipped before his travel.
    I got a message that said stuff would ship this past thursday. so no idea what happened. Have to wait and see I guess. havent decided if I'm gonna desolder the sd card socket and try and rewire it myself but thats lots of tiny wires
    I dont have any wire wrap wire. might have some enameled wire somewhere.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •