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.

EK-TM4C123GXL: Register values after a reset is not matching the datasheet

Part Number: EK-TM4C123GXL

After pressing the reset button, registers like HIBRTCT (trim register in the hibernation module) has a value of 0x40 instead of 0x7FFF which is stated in the datasheet.

Also, register STCTRL (systick control register) after a reset it's value is 0x0 instead of what it should be 0x4 (putting clock source as system clock) in the datasheet.

What can cause such a thing?


I'm developing my own drivers for peripherals and not using TivaWare. If this can be a cause, how can I debug such problem?

Compiler: TI v18.12.2.LTS

Debugger: ICDI

  • Hello Gamal,

    How are you sure no code is being executed after hitting the reset button? The debugger connection would be severed so you wouldn't be able to use a breakpoint to stop code from executing. I suspect what is happening is that your code is being executed and writing over certain registers.

    Also if no code is present, then each device has some ROM code which runs on reset first such as checking for the ROM bootloader which would be invoked. It is possible that code is setting the SysTick settings. I don't expect the Hibernate module to be impacted by that but I'd have to check how the boot loader is operated to know one way or the other, so it's another possible explanation.

    In any case, we do not support any applications that don't use TivaWare so our ability to help is limited. If you can re-produce this behavior with TivaWare however, I will be glad to look into it further.