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.

am5728 dsp端使用sys/bios支持posix编程吗

Other Parts Discussed in Thread: AM5728

芯片使用am5728,板子公司自己制作,RTOS SDK的版本为processor_sdk_rtos_am57xx_6_03_00_106

问题:

1. 在 dsp端使用sys/bios时,使用bios api创建 task,可用posix编程替代吗

2. 如果可以,怎么在 dsp中使用posix编程,如何配置

  • 请参考以下帖子看一下,是否有帮助。
    e2e.ti.com/.../947274
  • 我按照上面的的做了,在我的 sys/bios中添加一下配置

    1. 代码中中添加了 #include <pthread.h>

    #include <sys/types.h>

    void *start_fxn(void *arg);

    pthread_t thread;

    int arg = 1;

    pthread_create(&thread, NULL, start_fxn, (void *)&arg);

    2. 在main.cfg中 添加了 xdc.useModule('ti.posix.tirtos.Settings');

    3. 添加了posix头文件的包含路径 D:\CCS\SDK\bios_6_76_03_01\packages\ti\posix\ccs

    但是还是编译报错,如下:

    "D:/CCS/ccsv7/tools/compiler/ti-cgt-c6000_8.3.8/bin/cl6x" -mv6600 --define=am5728 --define=core1 --define=C66X --define=SOC_AM572x --define=evmAM572x --define=ti_targets_arm_elf_M4 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"rtos_template_app_am572x_c66.map" --heap_size=0x800 --stack_size=0x800 -i"D:/CCS/ccsv7/tools/compiler/ti-cgt-c6000_8.3.8/lib" -i"D:/CCS/SDK/pdk_am57xx_1_0_17/packages/ti/board/lib/evmAM572x/c66/release/" -i"D:/CCS/ccsv7/tools/compiler/ti-cgt-c6000_8.3.8/include" --reread_libs --define=CORE1=1 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="rtos_template_app_am572x_c66_linkInfo.xml" --rom_model -o "rtos_template_app_am572x_c66.out" "./GPIO_evmAM572x_board.obj" "./app.obj" "./main.obj" -l"configPkg/linker.cmd" -lti.board.ae66 -llibc.a
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    start_fxn ./main.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "rtos_template_app_am572x_c66.out" not built

    感觉好像是源文件没有定义,是不是要添加 posix相关的库到工程中

  • 参考以下帖子的方法看一下是否可行。
    e2e.ti.com/.../3063251