Chat freely about anything...

User avatar
By wpfundstein
#20799 Hi,

Code: Select allvoid ICACHE_FLASH_ATTR user_init()
{
   system_timer_reinit();

   uart_init(BIT_RATE_9600, BIT_RATE_115200);
   system_os_task(recvTask, recvTaskPrio, recvTaskQueue, recvTaskQueueLen);
   os_delay_us(1000);

   os_timer_disarm(&userTimer);
   os_timer_setfn(&userTimer, userTimerCb, NULL);
   os_timer_arm(&userTimer, 10, 1);

    wifi_set_opmode(0x00);
   
    wlan_start(); // Function to start WLAN

}


in this case the timer callback function is called. if i remark wlan_start() then the timer callback function never calls.

Any idea?
User avatar
By cal
#21242 Moin,

when using hardware timer you are in interrupt code I guess.
I don't know but I would expect problems running flashing code from interrupt.

What is the meaning of opmode 0?
I don't understand @pvxx argument why the cooperation aspect of SDK should hinder having software
timers.

Does someone know?

Cal