Hi TI Team,
For make it easier...
Tools
Hercules dev kit TMS570MCU
IAR 6.5
Segger J-LINK
Application
FreeRTOS
lwIP
Description of the problem:
My code goes to prefetch entry
When It happens
While trying to allocate a buffer, tries to enter in a critical task - > disable interrupt (and then crashes)
Clues
Seems to be a problem with the Bank 1 because complain after 0x0017FFF and ahead.
J-Link complains about unexpected value after erasing PC = 0x0001830C
This problem also appears after use a breakpoint
When I debug step by step pops a window "Erasing sector"
This issue only appears while being a thread, if its not a thread works fine.
FreeRTOS with small code like the blinkLED works fine.
Syslink.cmd remains original
When is working in the BANK1 the device can't abort the debug session or stop the core.
Everything configured following the Texas Instruments IAR integration steps
No using FEE or MPU
Definitions
#define configTOTAL_HEAP_SIZE ( ( size_t ) 1024*8 )
#define conifgTCPIP_TASK_STACK_SIZE 8* configMINIMAL_STACK_SIZE // 940
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 )
Screens:
Thanks for the help
