NickInTimeFilms
Member
Building some custom Teensy 3.2 compatible boards based off the schematic with MKL04 bootloader from PJRC. It's for an open source automotive scan tool project, Renix Engine Monitor. I'd still consider myself a novice just bumbling through EE one circuit at a time.
Made a few batches with the teensy 3.2 boards and they went well, new custom embedded boards are not going so well.
I've made 7 boards, and only 4 of them could be programmed. When they do work, they work great with repeated success through power cycles and on vehicle. And when they don't, they don't. Port won't show up on mac and pushing the reset button does not trigger the teensy loader.
I'm assembling these boards by hand, some with hot air, some with a diy reflow toaster. I've tried to ensure proper solder joints with plenty of flux, but it's hard to know for sure with the QFN package. I've done a bit of digging and checked things like stabile 3.3v voltage, good crystal routing, and matched usb traces, so I figure it's time to ask the pros.
The basics seem in check, and replacing components like bootloader, K20, Crystal, and regulators don't seem to fix the issue on bad boards. I was able to fix one board by catching an analog inductor ground that wasn't soldered, but the last 2 I thought I put together really clean.
Dug out the oscope and logic analyzer. No movement from the crystal, but I think that's expected when the chip is blank. Comparing to a log I took from breadboard, Logic is showing BL 9 going low when the button is pressed, and 7 and 8 are doing their thing but the Reset line is staying high and both usb lines are low. I had one occasion where the Reset line did go low a bit after BL 9, but still nothing from usb. I didn't check BL 6 on the bad board, seems it just sits high on the breadboard test and I was not smart enough to add proper test points.
So this seems to point to an issue with USB or maybe whatever triggers the K20 to ask for code? Actually, now that I think about it, the Reset line isn't pulsing so would that point to one of the IC's then? Bit drained after my current debugging attempts so input is welcome, thanks for the read!
One of the unruly PCBs
Most of the important PCB bits, yeah I still use Fritzing...
Logic Cap of unruly board when reset button is pushed
Logic Cap of breadboard when reset button is pushed
Made a few batches with the teensy 3.2 boards and they went well, new custom embedded boards are not going so well.
I've made 7 boards, and only 4 of them could be programmed. When they do work, they work great with repeated success through power cycles and on vehicle. And when they don't, they don't. Port won't show up on mac and pushing the reset button does not trigger the teensy loader.
I'm assembling these boards by hand, some with hot air, some with a diy reflow toaster. I've tried to ensure proper solder joints with plenty of flux, but it's hard to know for sure with the QFN package. I've done a bit of digging and checked things like stabile 3.3v voltage, good crystal routing, and matched usb traces, so I figure it's time to ask the pros.
The basics seem in check, and replacing components like bootloader, K20, Crystal, and regulators don't seem to fix the issue on bad boards. I was able to fix one board by catching an analog inductor ground that wasn't soldered, but the last 2 I thought I put together really clean.
Dug out the oscope and logic analyzer. No movement from the crystal, but I think that's expected when the chip is blank. Comparing to a log I took from breadboard, Logic is showing BL 9 going low when the button is pressed, and 7 and 8 are doing their thing but the Reset line is staying high and both usb lines are low. I had one occasion where the Reset line did go low a bit after BL 9, but still nothing from usb. I didn't check BL 6 on the bad board, seems it just sits high on the breadboard test and I was not smart enough to add proper test points.
So this seems to point to an issue with USB or maybe whatever triggers the K20 to ask for code? Actually, now that I think about it, the Reset line isn't pulsing so would that point to one of the IC's then? Bit drained after my current debugging attempts so input is welcome, thanks for the read!
One of the unruly PCBs
Most of the important PCB bits, yeah I still use Fritzing...
Logic Cap of unruly board when reset button is pushed
Logic Cap of breadboard when reset button is pushed