ew_gui port to free rtos

cancel
Showing results for 
Search instead for 
Did you mean: 

ew_gui port to free rtos

Jump to solution
157 Views
Contributor IV

Hi,

   Board = imxrt1064evk.

   SDK = SDK_2.7.0_EVK-MIMXRT1064

   I am trying to port ew_gui(ew_gui_bezier_clock) to free rtos.

   I am getting error ew_gui ew_bsp_clock.c used systick handler and free rtos also using systick handler.

   If i comment systick handler in ew_bsp_clock.c there is no error but only idle thread is running GuiThread(priority 5) is not running.

   How to solve this issue ?

   How to port ew_gui to free rtos ?

Thanks & Regards

        Vasu

Labels (1)
Tags (1)
0 Kudos
1 Solution
21 Views
Contributor IV

Hi Victor,

        I found the problem.

Thanks & Regards

        Vasu

View solution in original post

0 Kudos
4 Replies
21 Views
Contributor IV

Hi,

    I can able to port ew_gui demo to free rtos.

    I have another issue multitasking is not working.

    ew_gui ported to tcp_echo_free_rtos project if i run only tcp thread running fine and only ew_gui thread running fine.

    If i run both threads only ew_gui running other threads not running.

    How to solve this issue ?

Thanks & Regards

      Vasu

0 Kudos
21 Views
NXP TechSupport
NXP TechSupport

Hello Vasu, 

Have you tried increasing the heap size of the project? 

Regards, 

Victor 

0 Kudos
22 Views
Contributor IV

Hi Victor,

        I found the problem.

Thanks & Regards

        Vasu

View solution in original post

0 Kudos
21 Views
Contributor IV

Hi Victor,

        Thank you for your reply,

        Heap size already increased but still same issue.

        If i run ew_gui thread other network threads(mqtt,http) not running ethernet led(see IMG_20200203_091644) also not blinking and adc thread running with wrong value.

        If i commend ew_gui threads other thread running fine mqtt,http server, etc..  

        Please give some suggestion.

                 Default ram - SRAM_0C            size - 0xc0000

                 disabled cache :

                      SCB_DisableDCache();
                      SCB_DisableICache();

        Debug log : 

          memory.PNG

linker_script.PNG

Initializing PHY...

************************************************
1.00.00.00
************************************************
 IPv4 Address     : 192.168.6.212
 IPv4 Subnet mask : 255.255.255.255
 IPv4 Gateway     : 192.168.6.300
************************************************
Queue Creation Success 
Create UI thread...                          Initialize Realtime Clock...                 [OK]
Initialize Display...                        [OK]
Initialize Touch Driver...                   [OK]
Initialize Memory Manager...                 [OK]
Initialize Graphics Engine...                [OK]
Create Embedded Wizard Root Object...        [OK]
Create Embedded Wizard Viewport...           [OK]
---------------------------------------------
Target system                                IMXRT1064-EVK      
Color format                                 RGB565      
MemoryPool address                           0x8107F800  
MemoryPool size                              16254976 bytes
Framebuffer address                          0x81000000  
Doublebuffer address                         0x8103FC00  
Framebuffer size                             480 x 272 
EwScreeenSize                                480 x 272 
Graphics accelerator                         PXP      
Vector graphics support                      enabled      
Warp function support                        enabled      
Index8 bitmap resource format                enabled      
RGB565 bitmap resource format                enabled      
Bidirectional text support                   enabled      
Operating system                             FreeRTOS      
External flash device                        none      
Toolchain                                    GCC      
C-Compiler version                           8.3.1      
Build date and time                          Jan 31 2020, 17:09:16  
Runtime Environment (RTE) version            9.20 
Graphics Engine (GFX) version                9.20 
Max surface cache size                       2097152 bytes
Glyph cache size                             256 x 256 
Max issue tasks                              100      
Surface rotation                             0      
---------------------------------------------
Connecting to MQTT broker at 192.168.6.214...

        

         heap.PNG

        

         

IMG_20200203_091644.jpg

Thanks & Regards,

         Vasu

0 Kudos