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.

AM2634: Enet LwIP HTTP Server On Bare Metal (No-RTOS) example build error

Part Number: AM2634
Other Parts Discussed in Thread: SYSCONFIG

Hi.

I'm trying bare metal example on AM26x CC board.

And I using the SDK -mcu_plus_sdk_am263x_08_06_00_34.

I found there are example of no rtos version of HTTP server in the SDK user guide docs.

AM64x MCU+ SDK: Enet LwIP HTTP Server On Bare Metal (No-RTOS) (ti.com)

First I changed the integration option into "NoRtos" out of "FreeRtos"  

And  I changed referencing libraries into no rtos version like belows.

When I trying to build the example, but I keep getting build error as belows

- C:/ti/mcu_plus_sdk_am263x_08_06_00_34/examples/networking/lwip/cpsw_lwip_https/app_main.c:255:72: error: too few arguments to function call, expected 2, have 1
LwipifEnetApp_startSchedule(g_pNetif[ENET_SYSCFG_DEFAULT_NETIF_IDX]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  

Questions)

1. If I choose wrong option or missed configuration, plz let me know.

2. Is it possible to change the other examples (like tcp server/client, udp server)  into no rtos(bare metal) example? 

  • Because the captured picture are not clear i post linker option script as below

    -Wl,-m"cpsw_lwip_https.${ConfigName}.map" -Wl,-i"${SYSCONFIG_TOOL_LIBRARY_PATH}" -Wl,-i"${COM_TI_MCU_PLUS_SDK_AM263X_LIBRARY_PATH}" -Wl,-i"${MCU_PLUS_SDK_PATH}/source/kernel/nortos/lib" -Wl,-i"${MCU_PLUS_SDK_PATH}/source/drivers/lib" -Wl,-i"${MCU_PLUS_SDK_PATH}/source/board/lib" -Wl,-i"${MCU_PLUS_SDK_PATH}/source/networking/enet/lib" -Wl,-i"${MCU_PLUS_SDK_PATH}/source/networking/lwip/lib" -Wl,-i"${MCU_PLUS_SDK_PATH}/source/networking/mbedtls_library/lib" -Wl,-i"${CG_TOOL_ROOT}/lib" -Wl,-i"${PROJECT_BUILD_DIR}/syscfg" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="${ProjName}_linkInfo.xml" -Wl,--ram_model -Wl,--zero_init=on -Wl,--use_memcpy=fast -Wl,--use_memset=fast   

  • HI Jungkeun,

    1. You mentioned that you were using Bare-metal NoRTOS based HTTP server example. This example is based on NoRTOS and will work out-of-box without any changes required. The error that you have shared is from another example (FreeRTOS based HTTPS server [not HTTP, but HTTPS server])

    I think you got confused between the names of the 2 different examples. Can you please try the enet_cpsw_rawhttpserver example and let me know if you face the same problem.

    2. Yes it is possible, but it would be easier to port the LwIP TCP/UDP functionality to the existing NoRTOS based example rather than changing the FreeRTOS example to NoRTOS. I would recommend you to use examples/networking/lwip/enet_cpsw_rawhttpserver (HTTP server based on bare-metal NoRTOS).

    Thanks and regards,
    Shaunak

  • Thank you very much.

    I tried your suggestion and found it works well