Part Number: CC3220
Hi,
I have migrated my CC3200 GEN1 project to CC3220 GEN2 however I cannot get my GEN2 s/w stable with POSIX.
With CC3200 GEN1 I only used TI-RTOS (modifying the UDPech example) and everything ran perfectly.
With CC3220 GEN2 while I wanted an exclusive TI-RTOS only solution (i.e. no POSIX) unfortunately I couldn't find one that also included a SimpleLinkNetAppEventHandler. I therefore ended up modifying the 'httpget' project (TI-RTOS derivative). This also uses POSIX. In the project I use the TI-RTOS static configurator for task, semaphore and clock function creation.
In short once the system has acquired a network address I'm getting errors (not all the time and different ones) when I start running my tasks. I have replaced the POSIX created httptask created in the platform.c file with a TI-RTOS call to my primary task in another file (as I see in some docs it says not to use Task_setPri() function from within a POSIX task, why not?).. The errors I get are typically on binding or creating sockets and often its error code -2005.
Without going into a huge amount of detail my question is a general one at this time: how to manage memory for task allocation etc between POSIX and TI-RTOS with the heap and stacks. Could I be having an overlap with POSIX and TI-RTOS memory mgmt. Clearly I'll have to revisit the RTOS/SYSTEM analyser tools etc but in the meantime I just wanted a general understanding of how the memory should be partitioned between POSIX and TI-RTOS.
Thanks for any inputs.
regards,
Stuart