Recently I'm doing my development on ESP8266, using RTOS version 1.4.0.
RTOS version seems like couldn't the 64 bit integer types, is that true?
I tried printf/os_printf the value for int64_t data type, it will not display for any value more that 32-bit.
I've tried using NONOS SDK version 1.5.3, os_printf having no issue for the int64_t type.
Any further info on this?
Any fixes for the 64-bit integer value in RTOS SDK?
problem using 64-bit Integer type in RTOS SDK
-
- Posts: 4
- Joined: Wed Jun 08, 2016 3:30 pm
-
- Posts: 45
- Joined: Tue Jan 19, 2016 2:39 pm
Re: problem using 64-bit Integer type in RTOS SDK
Postby tobewinner » Sun Jun 12, 2016 8:07 pm
in RTOS, 64-bit integer is not support by "printf", but the 64-bit integer type really works well, you can try it like this:
Code: Select all
int64_t a = 0xF0F0F0F0F0F0F0F0;
printf("%d.%d\n", (int32_t)(a/4294967296), (int32_t)(a%4294967296));
-
- Posts: 4
- Joined: Wed Jun 08, 2016 3:30 pm
Re: problem using 64-bit Integer type in RTOS SDK
Postby teckhaokoh » Wed Jun 15, 2016 4:43 pm
Thanks buddy!
That's other issue that caused the mess in my value on 64bit integer.
At least I can isolate this from the issue.....
That's other issue that caused the mess in my value on 64bit integer.
At least I can isolate this from the issue.....

Who is online
Users browsing this forum: No registered users and 13 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.