lpc-rs / lpc-pac

Peripheral Access Crates for LPC microcontrollers
9 stars 9 forks source link

LPC55S6x? #33

Open nickray opened 5 years ago

nickray commented 5 years ago

Hey, I'm wondering whether the LPC5500 series is on your radar? I'm currently exploring options for a Cortex-M33 chip. Also in a more roundabout manner, can you share some experiences/war stories on using LPC from Rust? Things like SVD quality, proprietary tooling, vendor support (one can dream), etc.

hannobraun commented 5 years ago

Hey, I'm wondering whether the LPC5500 series is on your radar?

It's on my radar, but realistically speaking, there's no chance I'll get to work with it anytime soon, as I have too much on my plate already (unless I find a paying client who's interested).

If you'd be interested in creating a PAC, I'd be happy to review/merge and add you the lpc-rs organization. If want to work on a HAL, I'd love to help by answering questions and giving advice (and might even become more directly involved at a later date).

Also in a more roundabout manner, can you share some experiences/war stories on using LPC from Rust? Things like SVD quality, proprietary tooling, vendor support (one can dream), etc.

SVDs tend to require a fair amount of fixing. From what I've heard and seen, that's no different from other vendors, except Nordic. Overall not a huge problem, and I'm also very happy with how receptive NXP has been recently. They've already incorporated fixes I've made in the past, and according to them, more of our fixes will be released with the next version of their toolchain.

I've barely used their proprietary tooling, except for a bit of debugging here or there. Their IDE is Eclipse-based, which makes me want to not look at it too closely :-)

I've talked to people from NXP, and while they don't seem to be interested in supporting Rust directly at this point (they don't see the demand from their costumers), they've sponsored a workshop I did at a conference this year with boards worth hundreds of dollars, and indicated that they'd be happy to do so again.

Overall I'm quite happy with NXP.

nickray commented 5 years ago

Cool, good to know. I've started to work on a PAC, and indeed there are a bunch of registers that have duplicate names (whereas the UM marks them as unused), so it shouldn't be too tricky. The other thing is that the device is dual-core (one has TrustZone, the other is intended as an accelerator). Will get back to you when it's usable (and I have the dev board to test).