Comments (8)
Well, you know now! Consider yourself lucky, you only lost 10 cents LOL.
from py32f0-template.
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.
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.
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.
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.
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.
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.
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.
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)
- get SWO to work HOT 3
- Urecognized option '--no-warn-rwx-segments' HOT 1
- wagiminator MCU-Flash-Tools puyaisp
- PY32F002B-PY32F040-PY32F072-PY32F403 PDF Files HOT 3
- Deep sleep current consumption HOT 12
- (Not an issue) Another company making the same IC? HOT 19
- app crashes during UART transmit (printf) on PY32F002AL15S6TU HOT 3
- Unlocking and erasing protected flash on PY32 chips HOT 3
- ADC support on PY32F002A HOT 4
- Help with LSI as Clock Source to reduce power consumption HOT 4
- [question] What is the story of this repository? HOT 2
- Examples of I2C DMA HOT 2
- Current Consumption in Deep Sleep LSI HOT 3
- Stop Mode on other families beside Py32f002B HOT 1
- C++ Support HOT 6
- Microsecond delay HOT 4
- ADC_COMP_IRQn on PY32F002A HOT 2
- Suppport for Py32L020 HOT 3
- Interrupts in deep sleep and delay HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py32f0-template.