Coder Social home page Coder Social logo

mcu-flash-tools's Issues

py32f0 series?

Hello first of all TKS a lot for this repo.
I'm wondering if it would be a pain to add PY32F0 series tool (Cortex m0+) with SWD interface?
I want a small tool to program this MCU to add this tool to the arduino IDE.

I'm trying to do this using the hidapi an libusb libraries on linux and my knowledge is not enough.

My cpp program scan the usb devices based on one txt file that contains all the vid/pid values, then connect to one of them and then it start reading and writing to one endpoint. But i dont know how to talk to the SWD HID device...

Here is the TXT file for the CMSIS/DAP device list:

# This file is a list of VID / PID of the devices that the py32flasher will search
# to flash the PY32F Microcontrollers.
# You can find the VID / PID values using in linux the command "lsusb" on the terminal
# In Windows you can find this values following the next steps:
# * Go to Control Panel > Device Manager and find your USB device
# * Double click the device or right click and select Properties.
# * Go to the Details tab and select Hardware ID to view its PID and VID.
#
# You should add the VID and PID following the next examples: 


# STM32 nucleo boards, with onboard st/linkv2-1
0483 374b
0483 3752

# STM32 discovery boards, with onboard st/linkv2
0483 3748

# STLINK-V3 boards (standalone and embedded) in usbloader mode and standard (debug) mode
0483 374d
0483 374e
0483 374f
0483 3753
0483 3754
0483 3755
0483 3757

# Essemi ESLinkII
30cc 9527

# WCH-Link
1a86 8011

# # WCH-Link clone
2a86 8011

# Wagiminator picoDAP
1209 C55D

# CMSIS-DAP Cat Programmer
4348 55E0

# Cypress KitProg1/KitProg2 
04b4 f138
04b4 f148

# Cypress MiniProg4
04b4 f151
04b4 f152

# Cypress KitProg3
04b4 f154
04b4 f155
04b4 f166

# DAPLink
0d28 0204

# Keil ULINKplus
c251 2750

# NXP LPC-LinkII
1fc9 0090

# NXP MCU-Link
1fc9 0143

# Microchip EDBG CMSIS-DAP
03eb 2111

# Microchip JTAGICE3 CMSIS-DAP
03eb 2140

# Microchip Atmel-ICE CMSIS-DAP
03eb 2141

# Microchip Power Debugger CMSIS-DAP
03eb 2144

# Microchip mEDBG CMSIS-DAP
03eb 2145

# Microchip EDBGC CMSIS-DAP
03eb 216c

# Microchip nEDBG CMSIS-DAP
03eb 2175

# RadioOperator STM32F103C8T6_CMSIS-DAP_SWO probe firmware
# Note, this firmware uses STMicroelectronic's USB VID.
0483 572a

chprog.py - "Configuration not set" Error

Dear Stefan,

Thanks a lot for all your wonderful sharing.

I was using the "chprog.py" script for programming CH32X033 chip on a M1 MacOS and bump into the following error.
"Configuration not set", it could very well be a local issue on my setup, so might not be something of a concern.

Screenshot 2024-04-02 at 3 17 36 PM

I manage to get the programer to work for me by adding the following
"self.dev.set_configuration()" to line 89. (Sorry not a Python programmer myself)

Screenshot 2024-04-02 at 3 17 43 PM

Hope it would come in handy for anyone facing the same issue.

RTS DTR auto boot enter?

Hello again.
It is possible to implement this type of schema for the boot-loader in the code?

image

I'm designing a new board for the PY32F002A micro-controller, wondering about using the CH340X as a USB-Serial communication IC for the board. If this could be implemented, I think is a no brainer to choose that IC instead of the CH340N (That doesn't have DTR or RTS)

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.