Built https://regviz.com/ to help you visualize and decode register bitfields.
What registers should I add?
#buildinpublic #embedded
@rtwfroody Cool! I would love to see the hard fault registers for ARM. (HFSR, CFSR)
@osau I've added HFSR and CFSR for you. Now to improve the visualization so regs like CFSR don't require a crazy wide screen.
@rtwfroody Thanks! Out of curiosity, could you add these using an SVD file? Either by user uploads (locally) or if you do it backend upon requests? (If it’s open source I could maybe take a crack at it)
@osau CFSR looks a lot more readable now. I'm definitely interested in importing data instead of entering stuff manually by reading documentation. I'll dig into SVD a bit. Thanks for the pointer.
@rtwfroody Nice work with the new UI! 👏
@osau Thanks. I've imported the nrf52 SVD you shared with me. Which really just means that I've done some work with SVD now, and I can figure out how to properly add support for them.

@rtwfroody Great – thanks! Btw, I noticed that the register visualization has dark characters for the bits in dark mode. (Also noticed that you have dark mode!)

I don’t know if it’s supported by SVD, but some sort of peripheral grouping of registers would be neat. Maybe you have already planned for that. ☺️

@osau I appreciate your continuing feedback. Is there a dark mode? How do you enable that? (I'd believe the framework added one somewhere.)
There is a grouping by peripheral in SVD. I think this project is officially big enough I need to make a todo list to track all the various things that need to happen.
@rtwfroody Sorry, it feels like I’m just throwing stuff at you, but I think it’s a really useful project!
I don’t know how to enable the dark mode, I guess it just used system preferences?
@osau well that looks terrible. I had assumed I wouldn't have to worry about it because there's no UI to enable it. Thanks for the screenshot.
@osau Dark mode should be fixed. This will probably bit rot over time.
@osau Is there some public SVD file that seems good to experiment with? Googling finds no end of discussion of what the file contains, but I haven't seen an easy archive of SVD files for XYZ CPU core.

@rtwfroody My usage has only been providing it to the VS Code extension to get registers while debugging, so I can’t give much details. The latest I used was for Nordic nRF52, which seems to be complete.

https://github.com/nrfconnect/sdk-hal_nordic/blob/main/nrfx/mdk/nrf52.svd

sdk-hal_nordic/nrfx/mdk/nrf52.svd at main · nrfconnect/sdk-hal_nordic

NCS downstream of https://github.com/zephyrproject-rtos/hal_nordic - nrfconnect/sdk-hal_nordic

GitHub
@osau Cool. I'll take a look over the next few days. Good to have a specific useful application in mind.