Skip to main content
madhavi U
Associate II
July 26, 2023
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
July 26, 2023

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
July 27, 2023

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.