This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Neg40dBm definition error in Product Spec, SVD

In product spec for nrf52832:

Neg30dBm  0xD8 -40 dBm Deprecated
Neg40dBm 0xD8 -40 dBm

Similar stuff in the SVD out of SDK 12.3

When I convert the svd to rust (using tool svd2rust), it fails to compile.

As an enumeration, it is flawed, having two symbolic names with the same value.

Parents
  • I don't know. I would guess that some people convert an SVD document to C code and the C compiler doesn't complain, but a rust compiler is a little more strict? Its a minor thing, easy to patch by deleting a line from the SVD. But would be nicer if Nordic fixes it in the original. It doesn't make sense that the same value D8 means two different things. The SVD intends to document how the HW works. But that line seems to document that at one time there was an error in a previous version, which is outside the intent of an SVD document?

Reply
  • I don't know. I would guess that some people convert an SVD document to C code and the C compiler doesn't complain, but a rust compiler is a little more strict? Its a minor thing, easy to patch by deleting a line from the SVD. But would be nicer if Nordic fixes it in the original. It doesn't make sense that the same value D8 means two different things. The SVD intends to document how the HW works. But that line seems to document that at one time there was an error in a previous version, which is outside the intent of an SVD document?

Children
No Data
Related