Closed alevy closed 7 years ago
@alevy Were you able to test any of these workarounds yourself?
@shaneleonard I have not. I don't have a workbench nearby me, but I'll head into a hacker space sometime soon. I was able to get the LED powered through the JLink connection though -- e.g. when I connect the programmer to and configure it to power the MCU, the LED lights up
@alevy FWIW, decent soldering irons are $10 at RadioShack, if that's more convenient than going to a hacker space. Otherwise, I could send you one of the boards that I've fixed up. If you were able to power the processor through the JLink, then the only thing preventing you from being able to program the MCU is D8, which shouldn't be too hard to remove with a soldering iron and a reasonably steady hand. When I get the chance, tonight I'll upload my openocd script and a simple blinky app.
@alevy Uploaded detailed 'getting started' instructions. It turns out that D8 is actually inconsequential. Please take a look at issue #3 and the README for the correct procedure. I've verified this procedure with a totally fresh board, so it should work for you. No need for anything except a JLink and a razor blade.
Awesome. I'll try it out ASAP
@shaneleonard I'm able to program the board with your blink app and it works!!
For the record, to get started I need:
From that point I can either remove the USB cable and it works fine, or provide power from the USB and stop powering from the JLink. As though the USB + Jlink connectivity is only need to jump-start the process.
The FTDI chip isn't showing up, but I assume that's related to the short
@alevy Yay! Did you need to cut the trace? I'm still not exactly sure what the issue is with the FTDI chip. I have one board which I had removed the FTDI from, and the short disappeared, so I have a feeling that there may actually be a different issue with it than I originally thought. How do you configure the JLink to provide power?
I did have to cut the trace.
I'm not sure how to do it from openocd, but from JLinkExe just use the command power on
.
Cause
This issue is due to a lack of bypass capacitance on the output of the bq24230 (the battery charger and power path IC). Without a high capacitance on the output, the IC is unstable and does not produce a regulated output voltage.
Workarounds
The general principle is to add a suitable bypass capacitor to the output of the bq24230 (U1). There are several ways to achieve this: