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.

Compiler/CC3200-LAUNCHXL: Memory Space Error When attaching a callback to an async HTTP request

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200SDK, CC3200

Tool/software: TI C/C++ Compiler

Hello,

I am trying to attach a callback to an async request with SDK CC3200SDK_1.3.0 and CCS7. I have modified the http_client_demo to use the webclient in Full Mode by following the recommendations in the following link: https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/p/549370/2215568#2215568

 

Now I want to attach a callback to an HTTP request such that the following code will run when the HTTP request returns:

static int testAsync(void *cli, int status, char *body,
                     int len, bool moreFlag){
    UART_PRINT("TEST ASYNC SUCCESS!!!");
    return 0;
}

I am attaching this testAsync function to the httpClient within the HTTPPostMethod as follows:

httpClient->chandle->handle=&testAsync;

When I try to build this I get the following error:

"../cc3200v1p32.cmd", line 75: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".cinit" size 0x33a .  Available memory ranges:
   SRAM_CODE    size: 0x13000      unused: 0x342        max hole: 0x33c     
error #10010: errors encountered during linking; "http_client_demo.out" not built

>> Compilation failure
makefile:154: recipe for target 'http_client_demo.out' failed
gmake: *** [http_client_demo.out] Error 1
gmake: Target 'all' not remade because of errors.

Any ideas about how I can get this to build? Do I need to do something to manage the memory? Is the OS + Async taking up too much space for the CC3200?

Best,

Scott