Giter Site home page Giter Site logo

CH58X(CH582M) BLE Support about ch32-rs HOT 4 CLOSED

ch32-rs avatar ch32-rs commented on June 9, 2024 1
CH58X(CH582M) BLE Support

from ch32-rs.

Comments (4)

andelf avatar andelf commented on June 9, 2024

I need some time to look into it. I'll check it this weekend.

There are a few things that belong in the pac that were absent or buggy

Yes, their SVD files are very buggy. So they are patched with svdtools.
The CH58x.svd is not revised yet.

I'm not sure how licenses should work here. The rt steals some things from the wch repo, I don't think this is proper.

Since https://github.com/openwch/ch583/tree/main/EVT/EXAM/BLE/LIB is under Apache-2.0 license, make sure the libs/files you refer to are located in the openwch repo. Then it's OK to include them with a proper LICENSE.

ble doesn't work in the default riscv runtime

This should be fixed by pre_init hook. If not feasible, we can invent a -rt crate for CH58x.

from ch32-rs.

andelf avatar andelf commented on June 9, 2024

As with pac v0.2.0 release, most issues are fixed.

Check out https://github.com/ch32-rs/ch58x-hal, I've referred a lot from your hal crate. This is an embassy-style hal crate with embassy time driver support.

Critical section works in the default riscv runtime, but not in my ble runtime.

Fixed in the ch58x-hal crate.

https://github.com/ch32-rs/ch58x-hal/blob/f3a25a2b6b66a26ec739197e00b81eaf7dd11aad/src/critical_section.rs#L6-L21

This seems to be related to the handling of "highcode",

Added highcode support in the crate, using link script and #[highcode] macro.

Currently, I'm trying to port the BLE rt to it. At lease the RF_PHY example works.

from ch32-rs.

andelf avatar andelf commented on June 9, 2024

Update: BLE broadcaster and scanner now works.

from ch32-rs.

andelf avatar andelf commented on June 9, 2024

Close as finished.

from ch32-rs.

Related Issues (12)

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.