diff --git a/src/platform/lm3s/platform_conf.h b/src/platform/lm3s/platform_conf.h index 687b3bf8..ea950c8f 100644 --- a/src/platform/lm3s/platform_conf.h +++ b/src/platform/lm3s/platform_conf.h @@ -163,15 +163,15 @@ // A, B, C, D, E, F, G, H, J #ifdef FORLM3S9B92 - #define MEM_TOTAL ( 0x18000 ) + #define SRAM_SIZE ( 0x18000 ) #else - #define MEM_TOTAL ( 0x10000 ) + #define SRAM_SIZE ( 0x10000 ) #endif // Allocator data: define your free memory zones here in two arrays // (start address and end address) #define MEM_START_ADDRESS { ( void* )end } -#define MEM_END_ADDRESS { ( void* )( SRAM_BASE + MEM_TOTAL - STACK_SIZE_TOTAL - 1 ) } +#define MEM_END_ADDRESS { ( void* )( SRAM_BASE + SRAM_SIZE - STACK_SIZE_TOTAL - 1 ) } // ***************************************************************************** // CPU constants that should be exposed to the eLua "cpu" module diff --git a/src/platform/lm3s/startup_gcc.c b/src/platform/lm3s/startup_gcc.c index 3969faa1..35c94195 100644 --- a/src/platform/lm3s/startup_gcc.c +++ b/src/platform/lm3s/startup_gcc.c @@ -61,7 +61,7 @@ extern int main(void); __attribute__ ((section(".isr_vector"))) void (* const g_pfnVectors[])(void) = { - (void (*) (void))( SRAM_BASE + MEM_TOTAL - STACK_SIZE_TOTAL ), + (void (*) (void))( SRAM_BASE + SRAM_SIZE ), // The initial stack pointer ResetISR, // The reset handler NmiSR, // The NMI handler