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.

IAR Boot loader example as part of TivaWare C Series 2.1.2.111

I believe there is a mistake in the file \boot_loader\bl_startup_ewarm.S that is part of the TivaWare C Series 2.1.2.111 (the same error is in version 2.1.0.12573

//*****************************************************************************
//
// Allocate storage for the stack.
//
//*****************************************************************************
export g_pulStack
g_pulStack ds8 STACK_SIZE * 4

//*****************************************************************************
//
// This portion of the file goes into the vector section.
//
//*****************************************************************************
rseg INTVEC:CONST(2)

//*****************************************************************************
//
// The minimal vector table for a Cortex-M3 processor.
//
//*****************************************************************************
export __vector_table
__vector_table
dcd g_pulStack + (STACK_SIZE * 4) // Offset 00: Initial stack pointer

The line

dcd g_pulStack + (STACK_SIZE * 4) // Offset 00: Initial stack pointer

should read

dcd g_pulStack + ((STACK_SIZE-1) * 4) // Offset 00: Initial stack pointer

The base of the stack starts one word beyond the reserved stack space.