Git Product home page Git Product logo

Comments (14)

DeqingSun avatar DeqingSun commented on June 9, 2024

@hexesdesu Are you using an early version of ch55xduino? Please update to the newest version and try again. It may work or it will show you more info to troubleshoot.

from ch55xduino.

hexesdesu avatar hexesdesu commented on June 9, 2024

@hexesdesu Are you using an early version of ch55xduino? Please update to the newest version and try again. It may work or it will show you more info to troubleshoot.

Well, it's the newest 0.0.9 version downloaded by Arduino board manager.
You've inspired me and I will try a lower version.

from ch55xduino.

DeqingSun avatar DeqingSun commented on June 9, 2024

@DeqingSun

That is quite weird, I tried it again in windows, and it shows the bootloader ID and chip ID. Even there is a error message, the ID should be printed first.

Also, the newer upload tool will not just say "not support". It will give you a reason.

Maybe you can delete the board support file completely, include the caching zip files and install again.

Screen Shot 2021-03-30 at 9 13 49 PM

from ch55xduino.

hexesdesu avatar hexesdesu commented on June 9, 2024

@DeqingSun

That is quite weird, I tried it again in windows, and it shows the bootloader ID and chip ID. Even there is a error message, the ID should be printed first.

Also, the newer upload tool will not just say "not support". It will give you a reason.

Maybe you can delete the board support file completely, include the caching zip files and install again.

Screen Shot 2021-03-30 at 9 13 49 PM

Yep I tried CH551G and CH552G and they do show the bootloader ID and chip ID, only my CH552T are not.

I tried to install Arduino in a new PC and I got the same.

I got these chips from Xianyu, which the seller claimed that they are shipped by szlcsc. And it can be upload by WCHISPTool, so I don't think it was a chip failure.

I bought some new chips from Taobao in order to figure how this could be happened.

from ch55xduino.

DeqingSun avatar DeqingSun commented on June 9, 2024

That really weird. I do have some CH552T and there is no difference from the CH552G at all.
And the new tool has no string "Not support". Such a string only exist in the old version of tools.
By the way, can you upload hex with https://deqingsun.github.io/ch55xduino/bootloaderWebtool/ ?

from ch55xduino.

hexesdesu avatar hexesdesu commented on June 9, 2024

That really weird. I do have some CH552T and there is no difference from the CH552G at all.
And the new tool has no string "Not support". Such a string only exist in the old version of tools.
By the way, can you upload hex with https://deqingsun.github.io/ch55xduino/bootloaderWebtool/ ?

It says MCU family Not support :(

So the chip is a new family that have WCHISPTool support but not vnproch55x?

I uncomment console.log and got :[[ArrayBufferData]]: "0x314400e08010"

from ch55xduino.

hexesdesu avatar hexesdesu commented on June 9, 2024

That really weird. I do have some CH552T and there is no difference from the CH552G at all.
And the new tool has no string "Not support". Such a string only exist in the old version of tools.
By the way, can you upload hex with https://deqingsun.github.io/ch55xduino/bootloaderWebtool/ ?

modified ch55xbl.js

    await device.transferOut(endpointOut, (new Uint8Array(bootloaderDetectCmd)).buffer)
    //await device.transferOut(endpointOut, (new Uint8Array(bootloaderIDCmd)).buffer)
    result = await device.transferIn(endpointIn, 64);  
    resultUint8 = new Uint8Array(result.data.buffer)
    bootloaderDeviceID = resultUint8[4]
    console.log(result.data.buffer);
    console.log(resultUint8[4]);
    console.log(resultUint8[5]);

image

And got definitely creepy response...

from ch55xduino.

DeqingSun avatar DeqingSun commented on June 9, 2024

@hexesdesu
I check another uploader repo https://github.com/ole00/chprog . It seems the V1 version of the bootloader returns 2 bytes instead of 6. Since you get the chip from a flee market. It is likely you get a old chip with old bootloader.

I never get a chance to get the old version bootloader to test, so the upload tool in my repo don't support that version. You may get a newer chip or use a tool support V1 version of the bootloader.

from ch55xduino.

hexesdesu avatar hexesdesu commented on June 9, 2024

@hexesdesu
I check another uploader repo https://github.com/ole00/chprog . It seems the V1 version of the bootloader returns 2 bytes instead of 6. Since you get the chip from a flee market. It is likely you get a old chip with old bootloader.

I never get a chance to get the old version bootloader to test, so the upload tool in my repo don't support that version. You may get a newer chip or use a tool support V1 version of the bootloader.

Ok I checked my bootloader version in WCHISPTool
CH552T:
image
CH552G:
image
and it seem to be in a lower bootloader version(1.0)

I'm gonna try if I can upgrade it by myself, or bypass the code check.
Thank you for your works on my problems. glhf

from ch55xduino.

DeqingSun avatar DeqingSun commented on June 9, 2024

You can not bypass the code check in my uploader, because the protocols are different. I would recommend using another tool to upload.

from ch55xduino.

hexesdesu avatar hexesdesu commented on June 9, 2024

Maybe I can use chprog instead of vnproch551 in arduino?

from ch55xduino.

DeqingSun avatar DeqingSun commented on June 9, 2024

If you can make it accept hex file, yes.
Refering to https://github.com/DeqingSun/vnproch551/blob/master/KT_BinIO.cpp for hex file parsing.
And if you successfully get it working. Share the solution to help other people.

from ch55xduino.

hexesdesu avatar hexesdesu commented on June 9, 2024

Ye I'm gonna try. It's my first time hacking Arduino so it may take a long time.

from ch55xduino.

DeqingSun avatar DeqingSun commented on June 9, 2024

You don't need to hack Arduino, just make the chprog to accept the same parameters to the vnproch551, and replace the one in the tool folder.

from ch55xduino.

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.