Forum Rule: Always post complete source code & details to reproduce any issue!
Page 8 of 8 FirstFirst ... 6 7 8
Results 176 to 198 of 198

Thread: Bootloader Chip For Teensy 4.0

  1. #176
    Quote Originally Posted by Mike Maurice View Post
    I notice that there is serious interest in a Teensy 4.x hardware debug environment. I and my partner are.....
    Im quite interested! But Im quite new to all of this. But I have started creating my own schematic from pauls schematics. And also borowing some stuff from the micromod t4 by sparkfun

    My main reason is that I need a micromod teensy with ethernet, and debugging if I ever want to move beyond arduino

  2. #177
    Does anyone know whats the part number for the crystals on the t4/t4.1

    I have Google what I could read on top of the package but can't find anything

  3. #178
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,327
    Note, there is a newer revision (Rev.4 10/2019) of the Hardware Development Guide on the NXP website than the one mentioned here: https://www.pjrc.com/store/ic_mkl02_t4.html (which is Rev 0).
    Needs registration and login.

    Click image for larger version. 

Name:	2021-04-07 20_22_42-Window.png 
Views:	89 
Size:	14.1 KB 
ID:	24363

  4. #179
    Is this still in the "soft-release" stage, or is it ready for production-level quantity?

  5. #180
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,077
    Yes, full production release.

  6. #181
    Junior Member
    Join Date
    Oct 2020
    Posts
    3
    Hello,

    Was it every confirmed if the revision "B" works? to be more specific: Does the MIMXRT1062DVJ6B work if soldered to a PCB with the boot loader chip form PJRC? (As a teensy 4.1)

    Thanks in advance

  7. #182

    Lightbulb

    Has anyone had luck getting a custom board to work? I ordered 5x MKL02 chips in early April and built my first board back in May but haven't had a chance to try the first bring up until now. Initially I had a short under the IMXRT and replaced that with a fresh one (revision B). Then I verified the power up sequence steps 1-8 and all match what's described on the product page.

    I foolishly did not include the debug LED or program button on the first revision of my board, so these are bodged in with enameled wire and glued down with UV mask. After adding the debug LED, I get no LED output, and no USB enumeration.

    I've verified that pin 3 rises to 3.3V, but pin 10 does not go high.

    I do see ~1.15V on the inductor.

    Next I tried briefly grounding the program pin 10 and releasing. Then I tried holding it low for 15 seconds and releasing. I tried these in several combinations with and without disconnecting power between and after, but still no LEDs or USB enumeration.

    One possibility I have not checked yet if my board is booting but I have a short on D+ and D-.

    Have I missed anything? Any scope traces that may help? I plan to do a board rev, so I'll definitely add the program button and debug LED. And better test points. But I'd like to isolate the problem on this rev first.

    The design is open source but I'm not quite ready to share it with the public yet. If it helps I can share pictures and files privately.

  8. #183
    Quote Originally Posted by criznach View Post
    I've verified that pin 3 rises to 3.3V, but pin 10 does not go high.
    That is a problem. Pin 10 should be pulled high by the MKL02. If this is LOW, I believe pin 9 will also be low which is your power on reset. This means the processor is being held in reset and it will not run your program. You mentioned you added in a button, could there be a short on this pin?

    You probably also would not see the led blink once after 15-25 or so seconds (indicating recovery) because of the following, unless pin 10 worked properly before or if Paul tests them before sending them out.
    Quote Originally Posted by https://www.pjrc.com/store/ic_mkl02_t4.html
    When the program button is pressed for 15 seconds, the rest of the flash chip is erased and this LED blink is copied to the beginning of the flash memory. Because this copy is created on the first non-15-second press, the 15 second press for restore only works if a short press for normal bootloader entry has been done at least once.
    Last edited by Spencez; 08-19-2021 at 08:34 PM.

  9. #184
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,327
    Do you have the red bootloader LED?

  10. #185
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,077
    Quote Originally Posted by criznach View Post
    I've verified that pin 3 rises to 3.3V, but pin 10 does not go high.
    I can confirm the bootloader code enables the pullup resistor on pin 10 (PTB2) at the very beginning of the startup process, long before it tries to drive pin 3 (PTA3) high when it believes 3.3V power is stable.

    Look for a hardware issue with whatever you've connected to pin 10. Perhaps with the power off measure resistance (with multimeter set to highest resistance range, or auto-ranging). On a Teensy 4.0 board, I get approx 8M using a Fluke 87-III multimeter, with the positive lead on the Program signal and negative lead on GND. Your result may vary depending on whatever test current your meter's highest ohms range uses. But the point is you should see a pretty high impedance, but not infinite because there is some current path through whatever ESD protection the MKL02 has on pin 10. If you get something under 10K, you can be pretty sure you have a problem with your board pulling that pin low. If you measure infinite, that's a pretty sure sign pin 10 isn't soldered.

    Because you're seeing 3.3V on pin 3, I'm pretty confident your MKL02 is running and you probably have a hardware issue with the connection to pin 10.

  11. #186
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,077
    Quote Originally Posted by teosegura13 View Post
    Was it every confirmed if the revision "B" works?
    Just to make sure this old question is answered, yes, the B version chips (both 12mm and 10mm size) are confirmed working. The web page was updated some time ago to clearly state both are supported.

  12. #187
    Thanks Paul and Frank. Very good info and I am fairly certain it's an issue in my design or assembly.

    No LED at all. And I will look more closely at pin 10. I have several stock 4.1s I can compare to.

    Paul, one thing that would be helpful documentation-wise is the order that the bootloader does things in. For example, is the LED sequence displayed after pins 3 and 10 are initialized, or can we deduce that certain error codes mean that other initialization steps are already done? Let me know if there's anything I can help with as I'm working on it.

  13. #188
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,077
    Quote Originally Posted by criznach View Post
    For example, is the LED sequence displayed after pins 3 and 10 are initialized, or can we deduce that certain error codes mean that other initialization steps are already done?
    I hope you can see by reading the blink code descriptions that all of them are various ways communication can fail between the 2 chips.

    Pin 3 is part of the powerup sequence. Pin 10 is initialized pretty much within the first couple instructions the MKL02 executes. While not explicitly stated on the web page, the entire powerup sequence happens before any communication it attempted.

  14. #189
    Quote Originally Posted by PaulStoffregen View Post
    I hope you can see by reading the blink code descriptions that all of them are various ways communication can fail between the 2 chips.
    Again, all good info. Thanks Paul. I'll be looking at it tonight with a brand new microscope!

  15. #190
    I see part of the problem. I put my reset bodge wire on pin 12 not pin 10. Haven't checked for the pull up yet, but I'm sure that's at least part of the problem. Should be easy to test. And if that's all, easily fixed with a board rev.

  16. #191
    Junior Member
    Join Date
    Feb 2021
    Posts
    14
    @paulStoffregen
    Just wanted to share the product I created with your wonderful Teensy 4.1. Thanks for all your hard work. About to order 20-30 bootloaders for my first batch of units.

  17. #192
    Member
    Join Date
    Jan 2014
    Location
    New Jersey, USA
    Posts
    68
    Congratulations, looks like a very interesting product. That is a lot of I/O for one microcontroller

  18. #193
    Junior Member
    Join Date
    Feb 2021
    Posts
    14
    Quote Originally Posted by mlewus View Post
    Congratulations, looks like a very interesting product. That is a lot of I/O for one microcontroller
    Thank you Mlewus. It's a testament of how well the Teensy 4.1 microcontroller was designed. We utilized almost all it's capabilities. We started with Teensy 3.6 and move to 4.1 because we kept adding features. I'm very pleased with it. Wish it had more memory but we were able to tweak some things and capture more memory from another part of our project that was being wasteful.

  19. #194
    Junior Member
    Join Date
    Feb 2021
    Posts
    14
    Quote Originally Posted by PaulStoffregen View Post
    I hope you can see by reading the blink code descriptions that all of them are various ways communication can fail between the 2 chips.

    Pin 3 is part of the powerup sequence. Pin 10 is initialized pretty much within the first couple instructions the MKL02 executes. While not explicitly stated on the web page, the entire powerup sequence happens before any communication it attempted.
    Hi Paul,
    Not sure if you saw the video I posted before with the product we made with your microcontroller?
    I had another question for you. We can't seem to find a supplier for DP83825 chip (for network jack). 1) do you know of anyone that still has these in stock? 2) if you don't and you had some extra stock, could I buy 10-20 (if it's not too much to ask) from you? 3) if not, can you suggest a substitute to this chip. My developer wanted to ask before we embark on looking for a replacement and having to re-design our entire PCB board.

    thank you so much for any info you may provide us.

  20. #195
    Quote Originally Posted by siniarch View Post
    Just wanted to share the product I created with your wonderful Teensy 4.1.
    This is really awesome. It's late so I had to skim through, but I plan to watch the whole thing tomorrow. My project is sitting idle while I search for parts for use in my day job. Parts shortages have really been a pain for my clients. I feel your pain.

  21. #196
    Junior Member
    Join Date
    Feb 2021
    Posts
    14
    Quote Originally Posted by criznach View Post
    This is really awesome. It's late so I had to skim through, but I plan to watch the whole thing tomorrow. My project is sitting idle while I search for parts for use in my day job. Parts shortages have really been a pain for my clients. I feel your pain.
    Yes, it is incredible how parts have become unavailable. Sometimes for 40-50 weeks.
    I do hope things change soon, or this will become a very difficult venture for me.

  22. #197
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,246
    Its all too credible that just-in-time supply chains are very brittle to unexpected disruptive world events,
    since by its nature nearly everything is on the critical path leading to cascades of delays and shortages.
    You need slack in a system to be robust.

  23. #198
    I noticed that the 4.x bootloader is "temporarily discontinued" due to some feature development. Is there any ETA on when it might be back for sale?

Posting Permissions

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