You are reading a single comment by @user90324 and its replies. Click here to read the full conversation.
  • Hi, I put only one new line to main function to create new task but it doesn't working. I tried same code in other IDF project and its working in both variant. With selected dual core in menuconfig and also working with one core mode in menuconfig.

    ifdef RTOS
      queues_init();
      tasks_init();
      task_init(espruinoTask,"EspruinoTask",25­000,5,0);
      task_init(uartTask,"ConsoleTask",2200,20­,0);
    else
    // START NEW LINE ========================
      xTaskCreatePinnedToCore(&hello_task_core­_1, "core1_task", 10000, NULL, 5, NULL, 1);
    // END NEW LINE ========================
      xTaskCreatePinnedToCore(&espruinoTask, "espruinoTask", 25000, NULL, 5, NULL, 0);
      xTaskCreatePinnedToCore(&uartTask,"uartT­ask",2200,NULL,20,NULL,0);
    endif
    

    I want to drive 20x16 RGB LED display. The driving circuit its very similar like
    Basically I need to transfer 8bytes each 31uS. ( 100Hz frame rate, 16 levels color deep and 20 channel = columns) summary I want transfer 8 byte 32000 times per second. And I think this is task for alone core. It working very good in separate IDF project with mJS library. Now I want achieve similar results with Espruino library. On core 0 I will prepare only 20x16x1B frame buffer to sharing with core 1.

About

Avatar for user90324 @user90324 started