*** tpb has joined #tomu | 00:00 | |
xobs | kyaputen: Try putting it in a while loop. In the past, I've set up a "while true; do openocd -c [config]". Because Tomu is constantly resetting itself, it may take multiple attempts to break into the debugger. | 01:12 |
---|---|---|
*** dtornabene has quit IRC | 04:26 | |
*** nrossi has joined #tomu | 04:49 | |
xobs | Good/bad news: my USB debugging setup isn't very reliable, and as a result I've discovered that I really, really ought to buffer Toboot updates before writing them out. | 09:26 |
xobs | In case, you know, it gets disconnected or corrupted halfway through. | 09:26 |
*** duncan^ has quit IRC | 10:38 | |
*** duncan^ has joined #tomu | 10:39 | |
*** im-tomu has quit IRC | 12:49 | |
*** im-tomu has joined #tomu | 13:04 | |
kyaputen | you don't write the update with SWD ? | 13:06 |
*** im-tomu_ has joined #tomu | 13:12 | |
*** im-tomu has quit IRC | 13:13 | |
*** dwg has quit IRC | 15:30 | |
*** dwg has joined #tomu | 15:34 | |
xobs | Not in the field. There is an "offset" value in the program header that allows it to be placed anywhere in flash. Including address 0. In which case, Toboot will overwrite itself. | 16:06 |
kyaputen | nooooo! I don't know what I do, but that's the second unit that is not responding :( | 16:56 |
kyaputen | but this time, I flashed toboot at offset 0 and the app at offset 0x4000 | 16:56 |
kyaputen | so on this unit, I have the red led on but it still doesn't answer | 16:57 |
kyaputen | i'm totally WTF'ed | 16:57 |
kyaputen | I don't understand | 16:57 |
kyaputen | (to be sure it worked I flashed first the blinky sample at offset 0x4000 with same technique and it worked great. I could step from toboot to the sample within the same debugging session) | 16:58 |
kyaputen | I'm starting to wonder if my BMP isn't frying the CHIP, but it's 3.3V and then why the red led would go up ? Some code must be running right ? | 16:58 |
kyaputen | I'm sad :'( | 17:04 |
*** dfgg has quit IRC | 18:03 | |
*** dfgg has joined #tomu | 18:33 | |
*** duncan^ has quit IRC | 19:13 | |
*** duncan^ has joined #tomu | 19:14 | |
mithro | kyaputen: Maybe you are accidently setting the fuses which disable debugging? | 20:38 |
kyaputen | mithro: ah, I didn't think about that one. I'll check the source of CDC for such behavior | 21:47 |
kyaputen | I'm sorry I keep breaking them :( | 21:48 |
*** nrossi has quit IRC | 22:09 | |
mithro | kyaputen: I don't think you are actually breaking them | 22:11 |
kyaputen | certainly feels like it :( | 22:45 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!