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 understand. But is it for backward compatibility to C code that uses Neg30dBm? Such C-code would be flawed, in the sense that it would set the radio transmit power to -40dBm. So it seems perverse to support backward, flawed code in favor of future, correct code. In a business strategy sense: new customers have to work harder, to patch the SVD. Again, not a big deal, I'm just philosophizing.

Reply
  • I understand. But is it for backward compatibility to C code that uses Neg30dBm? Such C-code would be flawed, in the sense that it would set the radio transmit power to -40dBm. So it seems perverse to support backward, flawed code in favor of future, correct code. In a business strategy sense: new customers have to work harder, to patch the SVD. Again, not a big deal, I'm just philosophizing.

Children
No Data
Related