Skip to main content
madhavi U
Associate II
Jul 26, 2023 7:07 AM UTC
Question

-nan(0xffff) value while reading from flash

i'm getting -nan(0xfffffe0000000) value while reading from flash. why i'm getting this value and what is it?

This topic has been closed for replies.

2 replies

Bob S
Super User
Jul 26, 2023 3:59 PM UTC

Can't help you without lots more information.  Show the relevant parts of your code (variable definitions, code that attempts to read from flash, etc.).  Paste the code here, don't use attachments.  Click the "..." in the format bar to expand it, then use the "insert/edit code" button (looks like "</>").

ST Employee
Jul 27, 2023 8:45 AM UTC

Hello @madhavi U, 

The nan value indicates "not a number" value in binary format, which represents undefined or unpresentable values, it could be due to corrupted data or a programming error in your code

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.