Git Product home page Git Product logo

Comments (5)

kisvegabor avatar kisvegabor commented on July 19, 2024

Hi,

A few questions:

  • Have you set an OS with LV_USE_OS?
  • Do you use a GPU?
  • With which UI/demo do you test?

from lvgl.

Jamie793 avatar Jamie793 commented on July 19, 2024

Hi,

A few questions:

  • Have you set an OS with LV_USE_OS?
  • Do you use a GPU?
  • With which UI/demo do you test?

Thank you for your reply.
I set LV_USE_OS to LV_USE_NONE.
Instead of using LVGL's OS, I ported the FreeRTOS kernel myself.
My MCU lacks a GPU and has only 128K ROM and 16K RAM, with a DMA that isn't DMA2D.
I used the test code that I wrote myself.

lv_obj_t *label = lv_label_create(lv_scr_act(), NULL); /*Add a label*/
lv_label_set_text(label, "Testing");                   /*Set the labels text*/
lv_obj_set_pos(label, 30, 30);
lv_obj_set_style_local_text_color(label, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0xFF0000));

// Systick interrupt
void SysTick_Handler(void)
{
    lv_tick_inc(1);
    delay_decrement();
}

// Main loop
while(1){
    lv_task_handler();
}

from lvgl.

kisvegabor avatar kisvegabor commented on July 19, 2024

16kB RAM is very small. What is the size of LV_MEM_SIZE? It can easily happen that there was an out of memory issue somewhere.

Please enable all LV_USE_ASSERTs in lv_conf.h

from lvgl.

Jamie793 avatar Jamie793 commented on July 19, 2024

LV_USE_ASSERTs

The size of LV_MEM_SIZE is (8u * 1024) and have set LV_USE_ASSERT_MEM to 1.
It didn't break in assert when I debugged.

from lvgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.