-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a diagram of connections to program PY32F002 Chip SOP8 PY32F002AL15S6TU #9
Comments
and the PDF where I got the pinout https://datasheet.lcsc.com/lcsc/2303271200_PUYA--PY32F002AL15S6TU_C5292060.pdf |
I'm sorry I'm just now seeing the email because of the holidays. In some packages of the PY32, there may not be a pin for accessing the ISP and programming with the UART, so in later releases we will consider adding SWD programming to cater for such scenarios. For now, you can export the compiled binary and program it using one of the other supported methods, such as openocd pyocd, etc. |
No worries and thanks for your reply. pyocd load ./Blink.ino.hex -t py32f002ax5 --config ./pyocd.yaml and the content of the config file being listed with command cat pyocd.yaml That file "Puya.PY32F0xx_DFP.1.1.0.pack" comes from this rar file: https://www.puyasemi.com/uploadfiles/2022/11/PY-MCU%E8%B5%84%E6%96%99-20221117.rar Install pyocd with: pyocd erase --chip -t py32f002ax5 --config /HERE-GOES-THE-FOLDER-WHERE-YOU-PUT-THE-FILE/pyocd.yaml pyocd load -t py32f002ax5 --config /HERE-GOES-THE-FOLDER-WHERE-YOU-PUT-THE-FILE/pyocd.yaml ./*.hex |
您的功能请求是否与解决某些问题有关?请描述一下。/ Is your feature request related to a problem? Please describe.
I am unable to program the SOP8 PY32F002AL15S6TU. using the board "Generic PY32F002A Series"
I tested the usb to serial connected to PA1-PA2 and PA2-PA3 for serial port ,but I am unable to program the chip from arduino 2.0 with this core.
this is the error I get:
WARNING: library SrcWrapper claims to run on AirMCU architecture(s) and may be incompatible with your current board which runs on PY32 architecture(s).
Sketch uses 6292 bytes (30%) of program storage space. Maximum is 20480 bytes.
Global variables use 808 bytes (26%) of dynamic memory, leaving 2264 bytes for local variables. Maximum is 3072 bytes.
AirISP v1.2.8.0
Serial port /dev/ttyUSB0
Connect...___
fail to reset device to boot status, timeout, exit...
Failed uploading: uploading error: exit status 1
Is there a Pin to drive to ground or VCC to program the chip? there is no BOOT0 or BOOT1 in this chip.
There is no option to add an STlink programmer to use PA14/PA13 for SWD protocol.
描述您想要的解决方案 / Describe the solution you'd like
Please provide a diagram of connections to program the chip, or instructions how to program it
or add an STlink programmer ,thank you.
描述您想要的详细使用步骤描述 / Describe the solution you'd like to use in what way
To be able to select a STlink programmer in the arduino menu or to use the serial connection when the connections diagram or instructions are provided.
其他备注信息或截图 / Add any other context or screenshots about the feature request here
No response
确认信息
The text was updated successfully, but these errors were encountered: