armv8-m register define doesn't include BPU
In CMSIS/Core/Include/core_m33.h or CMSIS/Core/Include/core_starmc1.h, DWT related register define has been implemented, but BPU not.
DWT got added to access cycle counter for example, which can be used as independent timer source for Event Recorder. BPU is considered to be relevant for debuggers, only. What features of BPU are you missing from application point of view?
Yes, some registers are designed to read/write by debugger only. DWT is also a debug component, cpu won't set it without debugger, it's no meaning. But these registers are still declared in register header file.
As BPU, some registers, FP_CTRL, FP_PIDx, FP_CIDx and other register, with default values, can still be read by v8m cpu with main extension. there are some information for soc sw engineers to read & check by cpu.
Hi @GuangMing34,
Sure, I think you are just the first one ever looking for these additional registers. Hence they got never added. Please feel free to contribute whatever you need access to. Or, if you don't feel confident raising a pull-request, let us know set set of registers you would like to have access to.
Hi JonatanAntoni,
I have create a pull request(#174) for this issue.
Thanks~
Hi @GuangMing34,
I have tagged @AlbertHuang-CPU who is our expert for Star-MC1 to review your contribution. Many thanks for raising this.
pull-request #174 already merged, this Issue can be closed. Thanks @JonatanAntoni and @AlbertHuang-CPU .