This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS: Increasing log buffer size -Vision SDK

Tool/software: TI-RTOS

Hi all,

 

Sometimes we miss few logs messages from our serial console. Is it possible to increase the log buffer size ?

 

For example as below

 

]     45.023485 s: MCAN MODULE CAN Data: V=0.000000, YR=0.013600, SWA=1.100000, LA=-0.180000,GLP=4.000000, VS=1, AP=0.000000, BS=0.000000, BTA=448, TI=0, Counter=218

[IPU1-0]     45.030927 s: MCAN MODULE CAN Data: V=0.000000, YR=0.013600, SWA=1.100000, LA=-0.180000,GLP=4.000000, VS=1, AP=0.000000, BS=0.000000, BTA=448, TI=0, Counter=219

[IPU1-0]     45.031324 s: MCAN MODULE CAN Data: V=0.000000, YR=0.013600, SWA=1.100000, LA=-0.180000,GLP=4.000000, VS=1, AP=0.000000, BS=0.000000, BTA=448, TI=0, Counter=220

[IPU1-0]     48.413255 s: MCAN MODULE CAN Data: V=21.690000, YR=0.014800, SWA=0.400000, LA=2.270000,GLP=4.000000, VS=0, AP=3.790000, BS=0.000000, BTA=0, TI=0, Counter=2124

[IPU1-0]     48.417281 s: MCAN MODULE CAN Data: V=21.690000, YR=0.014800, SWA=0.400000, LA=2.270000,GLP=4.000000, VS=0, AP=3.790000, BS=0.000000, BTA=0, TI=0, Counter=2125

[IPU1-0]     48.417800 s: MCAN MODULE CAN Data: V=21.690000, YR=0.014400, SWA=0.400000, LA=2.270000,GLP=4.000000, VS=0, AP=3.790000, BS=0.000000, BTA=0, TI=0, Counter=2126

[IPU1-0]     48.421338 s: MCAN MODULE CAN Data: V=21.690000, YR=0.014400, SWA=0.400000, LA=2.270000,GLP=4.000000, VS=0, AP=3.790000, BS=0.000000, BTA=0

 

Regards,

Gokul

  • Hi Gokul,

    You can change REMOTE_LOG_SIZE in PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\apps\build\tda2px\mem_segment_definition_bios.xs and REMOTE_LOG_LOG_BUF_SIZE in PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\links_fw\src\rtos\utils_common\include\utils_remote_log_if.h.

    Regards,

    Rishabh

  • Hi Rishabh,

    How much can i increase the size in REMOTE_LOG_SIZE and REMOTE_LOG_LOG_BUF_SIZE  ?

    Regards,

    Gokul

  • Hi Gokul,

    I have pasted your e-mail below:

    "How much can i increase the size in REMOTE_LOG_SIZE and REMOTE_LOG_LOG_BUF_SIZE  ?

    What is the root cause for missing log messages ? Is it log_size only ?"

    In my opinion buffer is sufficiently large not to miss any prints.

    I am not sure about reason for issue you are facing. What is the frequency of MCAN print?

    To root cause the issue you can try to reduce the frequency of prints and check if issue still occurs.

    Regards,

    Rishabh

  • Hi Rishabh,

    Since We want to analyse the CAN data, we added the prints. I understand the MCAN data will be in 10 to 15 ms. 

    Can I increase the LOG_SIZE or BUFFER_SIZE ?

     

    Regards,

    Gokul

  • Hi Gokul,

    For the debug purposes you can increase buffer size as mentioned above but this is not a final solution.

    You need to decrease the frequency of print as buffer will get filled eventually.

    You also need to increase buffer size of a particular CPU in PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\links_fw\src\rtos\utils_common\src\utils_remote_log_server.c.

    For IPU1_0 macro to be updated is REMOTE_LOG_SERVER_IPU1_0_INST_SIZE.

    Regards,

    Rishabh

  • Hi,

    I haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Rishabh