ESP8266 Developer Zone The Official ESP8266 Forum 2016-06-19T04:37:34+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1661 2016-06-19T04:37:34+08:00 2016-06-19T04:37:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7400#p7400 <![CDATA[Re: RTOS 160MHz and Delay time]]> Now i work with esp-open-rtos project , same problem but more open.
I need to learn more about FreeRTOS. I just begin to use it.

Statistics: Posted by zaltora — Sun Jun 19, 2016 4:37 am


]]>
2016-06-14T16:38:48+08:00 2016-06-14T16:38:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7322#p7322 <![CDATA[Re: RTOS 160MHz and Delay time]]>
zaltora wrote:
Well i have many tasks:
Read buttons
Refresh SPI screen
Read i2c sensor
Read one_wire sensor
Wifi transmittion
Control a motor (pwm)
I use already FRC1and FRC2 timer for little periodic task.

I want reduce task time to read sensors more often. FreeRTOS is based on a timer to manage interruptions of these tick. I doubt that you can not configure it.
And maybe why not configure it for a 100 ms tick for a future project. I do not know what performance we lose or we win when we change these ticks.

For buttons you can use I/O interruption, besides you can switch task manually by calling taskYIELD() and some other ways. Even in Linux the HZ is often set to 100, to make the OS response more quickly, they use interrupts and some other ways (hrtimer is a good way, but may not supported by RTOS). I mean you may reach your demand by designing a proper architecture, not only by increasing the HZ(this will cost more CPU to do task switching).
If you really want to config HZ, you may need to rebuilt the libfreertos.a, party of the source is localed in RTOS_SDK/third_party.
becuase 8266_RTOS is not fully open-source, maybe it is not possible to configure the HZ.

Statistics: Posted by tobewinner — Tue Jun 14, 2016 4:38 pm


]]>
2016-06-14T15:33:55+08:00 2016-06-14T15:33:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7311#p7311 <![CDATA[Re: RTOS 160MHz and Delay time]]> Read buttons
Refresh SPI screen
Read i2c sensor
Read one_wire sensor
Wifi transmittion
Control a motor (pwm)
I use already FRC1and FRC2 timer for little periodic task.

I want reduce task time to read sensors more often. FreeRTOS is based on a timer to manage interruptions of these tick. I doubt that you can not configure it.
And maybe why not configure it for a 100 ms tick for a future project. I do not know what performance we lose or we win when we change these ticks.

Statistics: Posted by zaltora — Tue Jun 14, 2016 3:33 pm


]]>
2016-06-13T16:33:05+08:00 2016-06-13T16:33:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7292#p7292 <![CDATA[Re: RTOS 160MHz and Delay time]]> Statistics: Posted by tobewinner — Mon Jun 13, 2016 4:33 pm


]]>
2016-06-13T03:20:06+08:00 2016-06-13T03:20:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7287#p7287 <![CDATA[Re: RTOS 160MHz and Delay time]]> I need to swap between task 10 more faster than now and FreeRTOS have option to do that ( TICK_RATE_HZ ). I think, it is not implemented so i want to know how change myself the tick timing if it is possible ( what timer used, interrupt and how configure it).


PS:
configCPU_CLOCK_HZ option is not implemented yet i think. It can be great for not doing (*2) on all delay (code portability).
Better option is that "system_update_cpu_freq" update frequency and delay calculation of FreeRTOS

Statistics: Posted by zaltora — Mon Jun 13, 2016 3:20 am


]]>
2016-06-12T20:00:45+08:00 2016-06-12T20:00:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7284#p7284 <![CDATA[Re: RTOS 160MHz and Delay time]]> Statistics: Posted by tobewinner — Sun Jun 12, 2016 8:00 pm


]]>
2016-06-10T01:58:40+08:00 2016-06-10T01:58:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7272#p7272 <![CDATA[Re: RTOS 160MHz and Delay time]]> Change settings apparently doesn't work.

Statistics: Posted by zaltora — Fri Jun 10, 2016 1:58 am


]]>
2016-06-08T04:30:11+08:00 2016-06-08T04:30:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=7249#p7249 <![CDATA[Re: RTOS 160MHz and Delay time]]>
#define configCPU_CLOCK_HZ( ( unsigned long ) 80000000 )
#define configTICK_RATE_HZ( ( portTickType ) 100 )

Statistics: Posted by zaltora — Wed Jun 08, 2016 4:30 am


]]>
2016-02-02T10:42:46+08:00 2016-02-02T10:42:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=5616#p5616 <![CDATA[Re: RTOS 160MHz and Delay time]]>
What do you want to do with the 160MHz CPU frequency instead of 80MHz ?

Statistics: Posted by ESP_Faye — Tue Feb 02, 2016 10:42 am


]]>
2016-01-23T14:28:48+08:00 2016-01-23T14:28:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=5493#p5493 <![CDATA[Re: RTOS 160MHz and Delay time]]> Statistics: Posted by dsbaha — Sat Jan 23, 2016 2:28 pm


]]>
2016-01-21T14:09:22+08:00 2016-01-21T14:09:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1661&p=5466#p5466 <![CDATA[RTOS 160MHz and Delay time]]> posted in another topic and did not see a response so this is an attempt to point to it.

I find that when I set the CPU to 160MHz, a delay of 100ms takes only 50ms. This is unexpected, is it intentional?

Statistics: Posted by eyal — Thu Jan 21, 2016 2:09 pm


]]>