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.

GIO port transition when flashing

Hi

When my code is flashed to the Hercules RM42x microcontroller a transition occurs (during the flashing loading process) on at least one of the GIO pins. This is a problem for me because that pin sends a trigger signal to another piece of hardware. So presently I have an unintended trigger being sent to this other piece of hardware. I would guess that the pin in question isn't the only one that is making a transition. Can somebody explain what is going on during the flashing that is responsible for this unwanted port transition? And can this transition be disabled?

Thank you,

Dan

  • Hi Dan,

    I don't believe that the code that is executing the flash routines is deliberately changing the states of the pins as this isn't a necessary part of the process. However, it might be possible that the code is asserting a soft reset that might be causing some effect on the modules in the device. I will forward your question to our Flash API expert who should be able to provide additional inputs as to the root cause of the side effects you are seeing.

    Also, please note that it might be a good idea to put an external pull on the pins such as this where an inadvertent change in might cause an unintended assertion. i.e., if the pin going high could be a problem in your system, an external pull might be added so that if there is a reset during operation, the pin is de-asserted by default (put in a safe state) so no damage or safety hazard is generated. Note that all pins are tri-stated during a hard reset and internal pulls are disabled so situations like these should be guard banded to insure no inadvertent operation occurs.
  • Hi Chuck

    Thanks for forwarding this question to your flash API expert.
  • Hi Dan,

    A System reset is issued during the flashing loading process. This will force all modules to go to the default state. I think this is causing the behavior which you are observing.The code that actually executes the flash routines does not change the state of any pins.

    Best Regards,

    Siddharth

  • Hi Siddharth

    Is the system reset crucial to a proper flashing/loading process and if not then can it be disabled?

    Dan