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.

CC3200 Low Power Deep Sleep mode & Wifi_Audio_APP

Other Parts Discussed in Thread: CC3200SDK, CC3200

Hi

I want to include Low power deep sleep mode in to my Wi-Fi audio app. I copied all the Wi-Fi_audio_app source file & main.c code to idle_profile project. I'm getting an error:

Description Resource Path Location Type
#35 #error directive: No or unrecognized network configuration specified .ccsproject /holly_to_lpds line 74, external location: C:\ti\CC3200SDK_1.1.0\cc3200-sdk\netapps\http\client\network.h C/C++ Problem

I defined __SL__ at project properties macros, but still error is there.

-mv7M4 --code_state=16 --abi=eabi -me -O2 --define=cc3200 --diag_warning=225 --display_error_number --diag_wrap=off -z -m"holly_to_lpds.map" --heap_size=0x8000 --stack_size=0x4000 -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/driverlib/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/ccs/PM_Framework/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/oslib/ccs/free_rtos/" -i"C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/lib/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps/json/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps/http/client/ccs/HTTPClientMinLib/" -i"C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/include/" --reread_libs --define=cc3200 --define=ccs --define=USE_FREERTOS --define=SL_PLATFORM_MULTI_THREADED --define=DEBUG_GPIO --define=__SL__ --define=NOTERM --warn_sections --diag_wrap=off --diag_warning=225 --display_error_number --xml_link_info="holly_to_lpds_linkInfo.xml" --rom_model --code_state=16 --float_support=vfplib --gcc --opt_for_speed=0 --abi=eabi --printf_support=full -z

In wifi_audio_app (in SDK) got network.h file and C:\ti\CC3200SDK_1.1.0\cc3200-sdk\netapps\http\client\network.h is this is the reason for my error? 

Please help me to over come this problem. 

Cheers

Charitha 

  • Hi Charitha,

    Charitha weerasuriya said:
    In wifi_audio_app (in SDK) got network.h file and C:\ti\CC3200SDK_1.1.0\cc3200-sdk\netapps\http\client\network.h is this is the reason for my error? 

    Rename network.h that reside in wifi_audio_app example to something else as there is conflict.

    Regards,

    Aashish

  • Hi Aashish

    I have rename network.h & network.c in wifi_audio_app, but still it gives same error

    #35 #error directive: No or unrecognized network configuration specified .ccsproject /holly_to_lpds line 74, external location: C:\ti\CC3200SDK_1.1.0\cc3200-sdk\netapps\http\client\network.h C/C++ Problem

    Please advice me what areas do I need to check to overcome this problem.
    what could be the reasons for this error?
    is my macro definition correct?

    cheers
    Charitha
  • Hi Charitha,


    Can you please share complete compilation log.


    Regards,
    Aashish
  • Hi Aashish

    Here I have attached my compilation log. I copied wifi_audio_app source file to idle_profile project and define __SL__ in the project property. Now I don't get #35 #error directive: but I got other errors. Please refer to the console log.


    **** Build of configuration Release for project idle_profile ****

    "C:\\ti\\CCS\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_15.9.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me -O2 --include_path="C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_15.9.0.STS/include" --include_path="C:/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/inc" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/driverlib" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/source" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/include" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/oslib/" --include_path="C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_15.9.0.STS/include" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/src" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps/json" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/framework/pm/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/framework/timer/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/driver/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/driver/hal/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/soc/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/example/common/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/" -g --define=cc3200 --define=__SL__ --define=ccs --define=USE_FREERTOS --define=SL_PLATFORM_MULTI_THREADED --define=DEBUG_GPIO --display_error_number --diag_wrap=off --diag_warning=225 --abi=eabi --printf_support=full --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
    "../main.c", line 1227: warning #179-D: variable "iRetVal" was declared but never referenced
    "../main.c", line 1228: warning #179-D: variable "lRetVal" was declared but never referenced
    'Finished building: ../main.c'
    ' '
    'Building target: idle_profile.out'
    'Invoking: ARM Linker'
    "C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_15.9.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib -me -O2 -g --define=cc3200 --define=__SL__ --define=ccs --define=USE_FREERTOS --define=SL_PLATFORM_MULTI_THREADED --define=DEBUG_GPIO --display_error_number --diag_wrap=off --diag_warning=225 --abi=eabi --printf_support=full -z -m"idle_profile.map" --heap_size=0x8000 --stack_size=0x4000 -i"C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_15.9.0.STS/lib" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/driverlib/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/ccs/PM_Framework/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/oslib/ccs/free_rtos/" -i"C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_15.9.0.STS/include" --reread_libs --define=__SL__ --display_error_number --diag_wrap=off --warn_sections --xml_link_info="idle_profile_linkInfo.xml" --rom_model -o "idle_profile.out" "./audio_player.obj" "./audiocodec.obj" "./circ_buff.obj" "./control.obj" "./diskio.obj" "./http_client.obj" "./http_server.obj" "./lp3p0_board.obj" "./lp3p0_plat_ops.obj" "./main.obj" "./network_loc.obj" "./pcm_handler.obj" "./pinmux.obj" "./sd_reader.obj" "./startup_ccs.obj" "./utils_if.obj" "./wdt_if.obj" "../cc3200v1p32.cmd" -l"libc.a" -ldriverlib.a -lsimplelink.a -lmiddleware.a -lfree_rtos.a
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    AudioCaptureRendererConfigure ./main.obj
    AudioInit ./main.obj
    AudioSetupDMAMode ./main.obj
    Audio_Start ./main.obj
    GPIO_IF_LedOff ./network_loc.obj
    GPIO_IF_LedOn ./network_loc.obj
    HTTPCli_connect ./http_client.obj
    HTTPCli_construct ./http_client.obj
    HTTPCli_destruct ./http_client.obj
    HTTPCli_getResponseField ./http_client.obj
    HTTPCli_getResponseStatus ./http_client.obj
    HTTPCli_readResponseBody ./http_client.obj
    HTTPCli_sendField ./http_client.obj
    HTTPCli_sendRequest ./http_client.obj
    HTTPCli_sendRequestBody ./http_client.obj
    HTTPCli_setRequestFields ./http_client.obj
    HTTPCli_setResponseFields ./http_client.obj
    I2C_IF_Open ./main.obj
    I2C_IF_ReadFrom ./audiocodec.obj
    I2C_IF_Write ./audiocodec.obj
    Message ./http_client.obj
    Report ./audio_player.obj
    SmartConfigConnect ./network_loc.obj
    UDMAChannelSelect ./main.obj
    UDMAInit ./main.obj
    UDMASetupTransfer ./pcm_handler.obj
    f_close ./audio_player.obj
    f_mount ./audio_player.obj
    f_open ./audio_player.obj
    f_opendir ./sd_reader.obj
    f_readdir ./sd_reader.obj
    f_unlink ./sd_reader.obj
    f_write ./http_client.obj
    jsmn_init ./http_client.obj
    jsmn_parse ./http_client.obj

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

    >> Compilation failure
    gmake: *** [idle_profile.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****


    Please advise

    Cheers
    Charitha
  • Hi Charitha,


    Please add missing required libraries(webclient.a, json.a, fatfs.a) in project properties and i2c_If.c, uart_if.c and gpio_if.c to project, .


    Regards,
    Aashish
  • HI Aashish

    Thanks for your reply, As you mention I linked all the link lib file. after linking them I'm getting "program not fit into memory" is it because of my program  is too big or any other reason:  

    I reduced Heap Size and Stack Size to 1000 still problem is there,

    "../cc3200v1p32.cmd", line 73: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x15410 . Available memory ranges:
    SRAM_CODE size: 0x12fff unused: 0x1229b max hole: 0x1229b

    here is the memory map

    ******************************************************************************
    TI ARM Linker PC v5.2.6
    ******************************************************************************
    >> Linked Thu Jan 21 16:34:23 2016

    OUTPUT FILE NAME: <lpds_holly_net.out>
    ENTRY POINT SYMBOL: "_c_int00" address: 0001393d


    MEMORY CONFIGURATION

    name origin length used unused attr fill
    ---------------------- -------- --------- -------- -------- ---- --------
    SRAM_CODE 20004000 00012fff 00000f8c 00012073 RW X
    SRAM_DATA 20017000 00019000 0000482a 000147d6 RW X


    SEGMENT ALLOCATION MAP

    run origin load origin length init length attrs members
    ---------- ----------- ---------- ----------- ----- -------
    00000000 00000000 00015450 00015450 r-x
    00000000 00000000 00015450 00015450 r-x .text
    20004000 20004000 00000f90 00000f90 r--
    20004000 20004000 00000400 00000400 r-- .intvecs
    20004400 20004400 00000964 00000964 r-- .const
    20004d68 20004d68 00000228 00000228 r-- .cinit
    20017000 20017000 00003830 00000000 rw-
    20017000 20017000 0000228a 00000000 rw- .bss
    20019290 20019290 00001000 00000000 rw- .sysmem
    2001a290 2001a290 000005a0 00000000 rw- .data
    2002f000 2002f000 00001000 00000000 rw-
    2002f000 2002f000 00001000 00000000 rw- .stack


    SECTION ALLOCATION MAP

    output attributes/
    section page origin length input sections
    -------- ---- ---------- ---------- ----------------
    .intvecs 0 20004000 00000400
    20004000 00000400 startup_ccs.obj (.intvecs)

    .init_array
    * 0 20004000 00000000 UNINITIALIZED

    .text 0 00000000 00015450 FAILED TO ALLOCATE
    .const 0 20004400 00000964

    **** Build of configuration Release for project lpds_holly_net ****

    "C:\\ti\\CCS\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../http_client.c'
    'Invoking: ARM Compiler'
    "C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib --abi=eabi -me -O2 --include_path="C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/include" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/inc" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/driverlib" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/source" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/include" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/oslib" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/framework/pm" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/framework/timer" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/driver" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/driver/hal" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/soc" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/example/common" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps/json/" --include_path="C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/src/" --define=cc3200 --define=__SL__ --define=ccs --define=USE_FREERTOS --define=SL_PLATFORM_MULTI_THREADED --define=DEBUG_GPIO --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="http_client.pp" "../http_client.c"
    "../http_client.c", line 661: warning #179-D: function "HTTPGetMethod" was declared but never referenced
    'Finished building: ../http_client.c'
    ' '
    'Building target: lpds_holly_net.out'
    'Invoking: ARM Linker'
    "C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/bin/armcl" -mv7M4 --code_state=16 --float_support=vfplib --abi=eabi -me -O2 --define=cc3200 --define=__SL__ --define=ccs --define=USE_FREERTOS --define=SL_PLATFORM_MULTI_THREADED --define=DEBUG_GPIO --diag_warning=225 --display_error_number --diag_wrap=off -z -m"lpds_holly_net.map" --heap_size=0x1000 --stack_size=0x1000 -i"C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/lib" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/driverlib/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/simplelink/ccs/PM_Framework/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/middleware/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/oslib/ccs/free_rtos/" -i"C:/ti/CCS/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/include" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps/json/ccs/Release/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/netapps/http/client/ccs/HTTPClientMinLib/" -i"C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/ccs/Release/" --reread_libs --warn_sections --diag_wrap=off --display_error_number --xml_link_info="lpds_holly_net_linkInfo.xml" --rom_model -o "lpds_holly_net.out" "./gpio_if.obj" "./http_client.obj" "./http_server.obj" "./i2c_if.obj" "./lp3p0_board.obj" "./lp3p0_plat_ops.obj" "./main.obj" "./network.obj" "./pinmux.obj" "./startup_ccs.obj" "./uart_if.obj" "./utils_if.obj" "./wdt_if.obj" "../cc3200v1p32.cmd" -l"libc.a" -ldriverlib.a -lsimplelink.a -lmiddleware.a -lfree_rtos.a -ljson.a -lwebclient.a -lfatfs.a
    <Linking>
    "../cc3200v1p32.cmd", line 73: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x15410 . Available memory ranges:
    SRAM_CODE size: 0x12fff unused: 0x1229b max hole: 0x1229b

    undefined first referenced
    symbol in file
    --------- ----------------
    disk_initialize C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/ccs/Release/fatfs.a<ff.obj>
    disk_ioctl C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/ccs/Release/fatfs.a<ff.obj>
    disk_read C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/ccs/Release/fatfs.a<ff.obj>
    disk_status C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/ccs/Release/fatfs.a<ff.obj>
    disk_write C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/ccs/Release/fatfs.a<ff.obj>
    get_fattime C:/ti/CC3200SDK_1.1.0/cc3200-sdk/third_party/fatfs/ccs/Release/fatfs.a<ff.obj>

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

    >> Compilation failure
    gmake: *** [lpds_holly_net.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • Hi Charitha,


    Please modify .cmd file as per need.


    Regards,
    Aashish
  • Hi Aashish
    thanks for your reply. I modified .cmd file and it works.

    cheers
    charitha