Hello modongzhi and thanks for reading! I haven't done it for a RISC-V device, however, as long as you have an SVD file the steps are the same. There only might be slight differences in step 4 including the dependencies, which you need to resort to the documentation here where it tells you what to change.
Omar Hiari
thanks for help!
I create STM32's PAC follow the steps in that documentation,it can work.
when for RISCV,I have try follow that documentation to add dependencies,but when build,lots of errors.
modongzhi There could be a variety of reasons for that. It depends on the errors you are seeing. I would recommend providing more detail on what you have done and the errors you are seeing and seeking help on one of the different Rust outlets. Depending on the specific device you have the SVD for, there could be a matrix channel for it. If not, you can resort to the embedded working group channel or the discord server for embedded.
modongzhi
embedded software
and how to create PAC for RISCV?