Doubles showing zero and casting not working

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Doubles showing zero and casting not working

      Hey folks,

      1st Forum post ever so bare with me.

      I'm using SES for ARM 5.30a and zephyr targetting a Nordic DWM1001. For some reason casting values even to the same type doesnt seem to go well, specifically when I add a watch on it I get symbol not found, some values when printed show zeros.

      What's worse is the use of floats specifically doubles seem to result in zero everytime. The code examples I'm looking at are using double and it's a value multiplied by 15.65e-12 so it's quite a small number.

      The general casting issue can easily be worked about but this float thing is odd.

      Hope this wasn't a terrible.1st post.

    • Hello,

      Thank you for your inquiry.
      Such an issue is not known to us.
      Currently we assume it is a setup/target application issue.
      Could you provide an example project for reproduction that would run on the mentioned eval board?

      Best regards,
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system:

      Or you can contact us via e-mail.
    • New

      Hey Nino,

      Thank you for the prompt response, sorry for the delay in mine. I hope this is what you were asking for below is a github link to the examples I have been using. I am working with the ranging examples ex 5a and ex5b. It is possible that I mixed up about which version of the IDE to use.

      Some additional and hopefully useful information is that I am using the nRF v3.6.1, the toolchain launcher 0.9.1 and have used the IDEs using the following nRF Connect SDKs: v1.4.1 v1.4.2 v1.4.99-dev1. This setup is using Zephyr and both the board and project are being defined by files inside the git repo above.

      Thanks so much for your attention to this,