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.

TMS570LS1224: Preserve GPIO Pins during restart

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Hello all,

I have developed a bootloader and a application. When I switch from application to the bootloader I need to preserve the state of some GPIO pins. But during startup the the halcogen generated startup code in _c_int00 resets all GPIO Pins. I tried to comment out periphInit() in the systemInit() but the  the BIST fails. Is there a way to preserve all or some pins during initialization of the bootloader?

Kind Regards

Jens

  • Hello Jens,

    The periphInit() which is called in systemInit() is to power up the clock to the corresponding peripheral. The peripheral select of the GIO module is 16.

    You can add a variable to record the boot cause. If the boot is from application (branch to reset vector of bootloader) or CPU reset (not system reset), your bootloader doesn't set the GIO quadrant in PSWRDNCLR and PSPWDNSET registers.