Hello,
I've tried to use GNU C which is bundled with CCSv5 for developing on Stellaris LM4F120XL launchpad board and I've observed the problem with memset function, which shows as the call to memset always ends in FaultISR handler. Duplication of this issue is easy, I've modified hello example provided by StellarisWare/TivaWare and add
static uint8_t buffer[100];
somewhere on top of hello.c file and into the main I've added:
memset(buffer, 0, sizeof(buffer));
Of course unmodifed/vanilla hello example compiled by GNU C works well. Once I've added the code using memset into it, it faults. I'm using hello.ld and startup_gcc.c provided by the hello example.
Any idea what may be wrong here is highly appreciated!
Thanks!
Karel
PS: memset addition works perfectly well while compiled by ARM compiler and using the same example just for ARM compiler...