For a project I started to use SanDisk Ultra 512GB cards. My T41 power supply, 5V, comes from initially a 10..36V DC-DC converter, then an isolated DC-DC converter, NTE0506MC that gets me 6VDC, then a LDL1117S50R low dropout to make 5V that cannot exceed 5.5V ever, and then wired OR with diode for either USB or this 5V source.
The problem I face is that after running and logging for some time, the Teensy reboots. With some SD cards it does that. With Samsung 128GB card it seems ok. But not with SanDisk Ultra U1 512GB. I suspect it reboots following a dip in my VIN 5V rail when I write a lot to the card. Because when assisting with 5V power via USB, it keeps running fine.
Reducing Teensy CPU speed from 600 to 151 MHz avoids the reboots it seems. So that's another hint that with a power hungry SD card, I do get dips that make T41 reboot.
OK, my isolated power supply is a bit weak. 167 mA max out of the NTE0506 according to its data sheet.
Started to also use secure T41 recently... More current consumed now, so more likely that it fails?
But now my question: how strong must my VIN power supply be so that I will not get bitten again by this? 200 mA? 500 mA? When will I be sure that things will never fail when units are far away in the field?? Had I not spotted this issue with SanDisk 512GB just now, then I could have ended up in deep trouble... What safety margin would be right? Is there any way that a SD card can tell what its max current consumption can be? And can we read that, and reject a card if that would be more than what we can give on the T41 3V3 rail?
The problem I face is that after running and logging for some time, the Teensy reboots. With some SD cards it does that. With Samsung 128GB card it seems ok. But not with SanDisk Ultra U1 512GB. I suspect it reboots following a dip in my VIN 5V rail when I write a lot to the card. Because when assisting with 5V power via USB, it keeps running fine.
Reducing Teensy CPU speed from 600 to 151 MHz avoids the reboots it seems. So that's another hint that with a power hungry SD card, I do get dips that make T41 reboot.
OK, my isolated power supply is a bit weak. 167 mA max out of the NTE0506 according to its data sheet.
Started to also use secure T41 recently... More current consumed now, so more likely that it fails?
But now my question: how strong must my VIN power supply be so that I will not get bitten again by this? 200 mA? 500 mA? When will I be sure that things will never fail when units are far away in the field?? Had I not spotted this issue with SanDisk 512GB just now, then I could have ended up in deep trouble... What safety margin would be right? Is there any way that a SD card can tell what its max current consumption can be? And can we read that, and reject a card if that would be more than what we can give on the T41 3V3 rail?