Coder Social home page Coder Social logo

Comments (4)

toyoshim avatar toyoshim commented on August 29, 2024

I'm quickly looking the source, and find that device_erase_size is set to 0x1d for CH559.
Is this the block count to erase flash ROM before writing new firmware?

Block size is 1024, and 1024 * 0x1d = 29696.

So, it can explain why writing starts failing when file size gets over around 30kB.

from ch55x_python_flasher.

toyoshim avatar toyoshim commented on August 29, 2024

OK, I can fix the issue by setting it to 60 for CH559.
I can send a pull request.

from ch55x_python_flasher.

toyoshim avatar toyoshim commented on August 29, 2024

#4

from ch55x_python_flasher.

hexeguitar avatar hexeguitar commented on August 29, 2024

I have put all the flash related definitions into a dictionary, will be much easier to make changes and add more supported MCUs.
Tested the code with:
CH551, bt. v1.1
CH552, bt. v2.4
CH552, bt. v2.3
CH559, bt. v2.3
All passed using various bin file lengths.
Also added a script installing the udev rules on linux.
Hope everything works fine. Closing the issue.

from ch55x_python_flasher.

Related Issues (2)

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.