> On the project I am working at the moment I am using a MCF5373L processor.
> At the beginning the processor stays in reset until a switch desactivate the reset.
> The switch is connected to the processor (pin FB_CS5,
>
> Found in a thread and also in the Reference Manual, the GPIO are digitial inputs.
> In the thread is written that a weak pull up is enabled during the reset.
>
> (Link: CFV2 gpio input pull-up on reset question?)
That thread documents the CFV2 chips. You're using a CFV3. There are a lot of differences.
Table 2.1 in the manual documents FB_CS5 as having a PRIMARY function of being a Chip Select and being an Output.
The reset function of this chip is controlled by:
13.3.5.3 Chip Select Pin Assignment Register (PAR_CS)
The Reset state of the PAR_CS5 bit (all chip selects, in fact) is for them to be configured as active chip selects.
Your hardware designer has connected the switch to a pin that is driven actively high during reset.
It won't act like a GPIO until the software has written to PAR_CS to change it.
You have to change the hardware to use a different pin (and check all the other pins you're using while you're at it), OR you could add a high value resistor between the pin and the switch so the reset level doesn't interfere with the switch's function during reset. Either way you have to change the hardware.
Tom