2016-01-28 06:55 AM
Good morning to everyone,
I have a little problem with the universal debugger.In my testing application on the discovery board, I set the reading of a input register SIUL.GPDI48.B.PDI.Now, reading the manual, I understand that is possible, via debugger, change the value of the registers. i tried what the guide tells. In the SFR view, I selected the register and tried to change is value, but with no result. The register is not protected. If I try to change the value of register as the STM register for exampple, I succed.Someone has some idea on why it is the case?Thank you, Ivan #ude-debugger-input-registers2016-02-01 07:22 AM
Hello Ivan ,
GPIO Pad Data Input Registers (GPDI) These registers can be used to read the GPIO pad data with a byte access. you can not write/**
* @brief Reads a logical state from an I/O pad.
* @note The @ref PAL provides a default software implementation of this
* functionality, implement this function if can optimize it by using
* special hardware functionalities or special coding.
*
* @param[in] port port identifier
* @param[in] pad pad number within the port
* @return The logical state.
* @retval PAL_LOW low logical state.
* @retval PAL_HIGH high logical state.
*
* @notapi
*/
#define pal_lld_readpad(port, pad) \
(SIU.GPDI[((port) * 16) + (pad)].R)
Best regards
Erwan
2016-02-01 08:27 AM
Hello Erwan,
thank you for the advice.Regards, Ivan