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/TMS320C6678: RTOS/TMS320C6678

Part Number: TMS320C6678

Tool/software: TI-RTOS

Hello,

I am developing a network project using as example NIMU_emacExample_EVMC6678C66BiosExampleProject. I have encountered the problem to change the global buffer size. In the "NDK Core Stack/Stack Buffer Size and Placement" I have changed number of frames and frame buffer size many times to see the size change  of .far:NDK_PACKETMEM section in .map file. But I have  the value 00052b00 only.  And I have tried such thing with the NIMU_emacExample_EVMC6678C66BiosExampleProject - the same result. As I read in https://e2e.ti.com/support/legacy_forums/embedded/tirtos/f/355/t/452630  " The pre-built library have these buffers defined. When you have the .cfg generate code NDK code, internal buffers are generated and are used instead of the pre-built libraries ones". In the .cfg file I see Global.pktNumFrameBufs and Global.pktSizeFrameBuf values that I set. What is the reason that I can't changed the buffer sizes? 

I use CCS 8, NDK 2.26.0.08, SYS/BIOS 6.52.0.12, XDC tools 3.50.7.20, PDK 2.0.10.

With the best regards,

Alex

  • Hi Alex,

    Can you verify that you have Global.enableCodeGeneration = false; in your .cfg file:
    /*
    ** This allows the heart beat (poll function) to be created but does not generate the stack threads
    **
    ** Look in the cdoc (help files) to see what CfgAddEntry items can be configured. We tell it NOT
    ** to create any stack threads (services) as we configure those ourselves in our Main Task
    ** thread hpdspuaStart.
    */
    Global.enableCodeGeneration = false;


    Best Regards,
    Yordan
  • 3022.app.cfgHi Yordan,

    thank you for the reply. Yes, I have Global.enableCodeGeneration = false if .cfg (see attachment). And I tried to change buffer size in NIMU example projects from the pdk, but had no success.

    If I have  Global.enableCodeGeneration = false and try to change in the "NDK Core Stack/Stack Buffer Size and Placement" window for example  frame buffer size  parameter will it lead to the generation code in the .cfg file (like Global.pktSizeFrameBuf = 1536;)?

    With the best regards,

    Alex

  • Hi,

    If I looked at a map file:
    .far:NDK_PACKETMEM
    * 0 00800000 00052b00 UNINITIALIZED
    00800000 00052b00 stk6_ppp_pppoe.ae66 : pbm_data.oe66 (.far:NDK_PACKETMEM)

    This data buffer came from pbm_data.c

    If you want to change this number, you need edit ndk_2_26_00_08\packages\ti\ndk\stack\pbm\pbm_data.c (PKT_NUM_FRAMEBUF 192) and rebuild the NDK.

    Regards, Eric
  • Hi,

    thank you Eric. Should I rebuild NDK every time to change buffer size? The set of the buffer size parameters in the .cfg file is not valid now?

    Regards,
    Alex
  • Hi,

    You can look at processors.wiki.ti.com/.../NDK_Static_Network_Buffers to change it in the configuration.

    Regards, Eric