pypewpew / pewpew-m4-v8

PewPew M4, version 8
Other
7 stars 1 forks source link

Bricked? #4

Closed prashantkamdar closed 3 years ago

prashantkamdar commented 3 years ago

I was experimenting with the pewpew4 using makecode. I loaded a different game from the makecode forums, entered the pewpew4 in usb mode using https://github.com/pewpew-game/pewpew-m4-v8/issues/2#issuecomment-758154267 and copied the file on the new usb disk.

It ran well and after a while, I shutdown the console. When I started it back up, (without shorting the pins) it again started in the usb mode and I shut it down.

Now, whenever I start the console, it stays blank and shows a white screen. Even after connecting to usb after shorting the R and - pins, nothing happens.

Is it bricked? Can I recover?

niutech commented 3 years ago

Have you tried shorting the R and - pins twice in a row to get to the bootloader mode? If nothing happens, you can still recover the bootloader using SWD and J-Link, see the guide.

prashantkamdar commented 3 years ago

Yes, I tried the shorting of the pins. That is how I was able to get few other games running from makecode.

I guess I need to reflash the bootloader. Will this programmer work? https://robu.in/product/st-link-v2-programmer-for-stm8-and-stm32/?gclid=EAIaIQobChMI3bye7aqM7wIVxiMrCh3kIg0QEAQYASABEgIL4PD_BwE

niutech commented 3 years ago

I don't know, but see answers to this question.

prashantkamdar commented 3 years ago

Could you link me to a known flasher which you may be aware of / use? I will find the compatible one basis that.

niutech commented 3 years ago

You can use Segger J-Link EDU Mini.

prashantkamdar commented 3 years ago

thanks, I was successfully able to re-program it however, with after uploading new game, the buttons don't work also, whenever connected to usb on pc, it always runs in bootloader mode

90 70

prashantkamdar commented 3 years ago

proof videos here of the problem described above: https://imgur.com/a/vLbLi1p

prashantkamdar commented 3 years ago

@deshipu I had bought this on tindie in June of 2020. (order #197268) As I've described above, I had put a makecode game and it ran for some time. But after a few power cycles, the console seemed bricked.

I was able to successfully recover it with @niutech 's suggestions, but now facing new problems.

I messaged makerfabs on tindie (since they're the seller) describing the same problem requesting for a replacement, but haven't heard yet.

Can you help me debug/correct this issue (if it is possible?). Alternatively, can you help me get a replacement, please?

niutech commented 3 years ago

IMO you should complain to Makerfabs, maybe your device is faulty? Meanwhile, have you tried flashing CircuitPython? Does it work?

prashantkamdar commented 3 years ago

Yes, @niutech I agree with you - Makerfabs should try and resolve this and I already messaged them but haven't heard back. Hence, was hoping for the original creator's intervention.

To your question - yes, I had already tried out circuitpython and tried a few simple examples. Unfortunately, the buttons in the circuitpython examples also don't work.

If it's not a hardware problem, my guess is that that erasing and then re-uploading the bootloader has corrupted something on the system.

prashantkamdar commented 3 years ago

OK, I have a quick update. After re-flashing a couple of times the different circuitypython uf2 versions from the official circuitypython download section, it seems that there is life back again. I tried out some of the methods defined here, it seems that the buttons are indeed working! However, uploading to makecode uf2 games, none of the buttons get recognised.

My hunch is, that the bootloader is different when it ships versus the one given in this repo. @niutech, @deshipu is this hunch worth looking into or is it some other problem? Can you guys give me a working bootloader.bin file from your working console? (see if it is working with makecode games, too)

deshipu commented 3 years ago

Can you try downloading the uf2 bootloader update from https://circuitpython.org/board/pewpew_m4/ and flashing it in bootloader mode?

prashantkamdar commented 3 years ago

Oh wow! That did the trick. I flashed the above mentioned v.3.13 bootloader and then again loaded the makecode arcade games; the button mappings now work in the games!

Does it mean that the bootloader mentioned in this repo (.bin file) is an older version?

deshipu commented 3 years ago

I think so, I will remove it. Sorry for the confusion.

prashantkamdar commented 3 years ago

No problem. Thanks a lot @deshipu and @niutech !