Git Product home page Git Product logo

Comments (8)

deividAlfa avatar deividAlfa commented on July 24, 2024 1

Well, you know now! Consider yourself lucky, you only lost 10 cents LOL.

from py32f0-template.

IOsetting avatar IOsetting commented on July 24, 2024

Sorry I made a mistake. It is different part. You need to use Puya's ISP Tool download link
Please refer to this discussion https://www.eevblog.com/forum/microcontrollers/$0-11-py32f002a-m0-24mhz-320kb-actually-324kb-more-peripherals/

from py32f0-template.

ajaybhargav avatar ajaybhargav commented on July 24, 2024

There is no boot0 pin on this chip, its an 8 pin IC. I made NRST as GPIO. there is no way to invoke bootloader or enter into flash mode. I think I bricked it 😝 I will try ISP though but as per Puya PY32F002AL15S does not have ISP feature.

from py32f0-template.

IOsetting avatar IOsetting commented on July 24, 2024

It seems only TSSOP-20 package has BOOT0 pin. I did some searching but didn't find any solution. I usually add one second delay before the pin remapping so the chip can still be programmed via SWD after reset.

from py32f0-template.

ajaybhargav avatar ajaybhargav commented on July 24, 2024

I did not realize I would run into such problem, I was just testing this chip. I am going to keep NRST as is without mapping it as full GPIO, I believe it can be used as GPIO (PF2) (as per manual) after 20 clock cycles have passed.

I usually add one second delay before the pin remapping so the chip can still be programmed via SWD after reset.

Option byte is a different story, its like transforming your pin to a different function permanently. so software delay has no effect. PF2 is changed to PA2 permanently.

from py32f0-template.

NoNamedCat avatar NoNamedCat commented on July 24, 2024

Did you read this forum?
https://www.elektroda.com/rtvforum/topic3946116-30.html

"I accidently messed around with A13. Is there any way to 'unbrick'/erase a device before the firmware is loaded? Couldn't find anything in the documentation.

A manual reset quickly following by a erase does not help..
Thanks!

Thank you for your quick reply, I fixed it.

I should have mentioned this, it was the QFN (PY32F002AW15U6TR) giving me problems it has no BOOT0 pin. BOOT0 did help to erase the TSSOP20. Solution for the QFN is to do hardware RESET when powered on.

All very obvious. I made stupid mistake though, I had two projects with the same name but both with different MCU's. I had the wrong processor selected, ouch!"

from py32f0-template.

NoNamedCat avatar NoNamedCat commented on July 24, 2024

If you have a button connected to the NRST pin, try to hold it at the same time that you power the board. That is what I understand from that forum.

from py32f0-template.

ajaybhargav avatar ajaybhargav commented on July 24, 2024

I already tried everything, I shorted NRST with GND, it doesnt work. Since I have written the option bytes to change NRST(PF2) to PA2.

PA13 is just SWD pin, if your NRST is intact you can keep CPU in reset by shorting it to GND. if you have Boot0 pin you can put CPU in bootloader. but this 8-bit part has only NRST and that too is now a GPIO, so unless I had some software logic implemented to revert back A2 to F2-NRST, which I did not thought of, since as per reference manual, I thought NRST will only switch once CPU is passes the POR state.

image

So yes, there is a possibility of bricking (only 8-pin) Puya.

However, as per Puya FAE; the only way to bring it back is using an offline programmer, looks like the NRST before 20uS filter can only be triggered using and an offline programmer.

from py32f0-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.