Skip to content
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

No support for pic32mx6xxfxxxl #8

Open
omarandlorraine opened this issue Feb 27, 2023 · 3 comments
Open

No support for pic32mx6xxfxxxl #8

omarandlorraine opened this issue Feb 27, 2023 · 3 comments

Comments

@omarandlorraine
Copy link

So far as I can see, the pic32-rs crates has no support for this series of chips (not intended as a criticism here. But I might be interested in adding this, and I might be able as well. Therefore I'm opening this issue as a way to collect my thoughts, I hope that's okay);

The differences from pic32mx2xyzabc include more hardware (couple of CAN busses, Ethernet and probably other things). So I'm not sure what's needed here (yet).

But the CPU is identical. Much of the memory layout has the same offsets as well.

@kiffie
Copy link
Owner

kiffie commented Feb 27, 2023

Adding this chip should not be a big problem. As a first step, a Peripheral Access Crate (PAC) is needed for register access. I could create such PAC for you. But I cannot test it because I do not have this chip available.

Any real interest in adding support for this part?

@omarandlorraine
Copy link
Author

omarandlorraine commented Mar 3, 2023

I could create such PAC for you.

Oh, you could create the PAC? That's excellent. If so then I'd be happy to test it.

Any real interest in adding support for this part?

Certainly!

@kiffie
Copy link
Owner

kiffie commented Mar 4, 2023

Created the PAC and extended the pic32-config-sector crate (see mx567 branch of this repository and the pic32-pac repository. The code is machine generated; fixes may be required. The PAC includes registers from PIC32MX695F512L and should hopefully work for all MX6xx devices.

Here is a "blinky" example that does not use a HAL: https://github.com/kiffie/pic32-rs/tree/mx567/examples/blinky_nohal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants