ST意法半导体
直播中

刘溪

7年用户 192经验值
私信 关注
[问答]

使用UDE怎么更改GPDI寄存器值

各位早上好,


我对通用调试器有一点问题。

在我在发现板上的测试应用程序中,我设置了输入寄存器的读数

SIUL.GPDI48.B.PDI。

现在,阅读手册,我理解通过调试器可以更改寄存器的值。
我尝试了指南所说的内容。在SFR视图中,我选择了寄存器并尝试更改值,但没有结果。
寄存器不受保护。如果我尝试将寄存器的值更改为例如STM寄存器,我就成功了。

有人知道为什么会这样吗?

谢谢,
伊万
#UDE调试器输入寄存器

以上来自于谷歌翻译


以下为原文




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-registers

回帖(2)

刘鑫

2018-11-1 14:30:32
你好伊万,
 
 
GPIO焊盘数据输入寄存器(GPDI)
这些寄存器可用于通过字节访问来填充数据。
你不能写
 
 
 
 最好的祝福
 
 二万

以上来自于谷歌翻译


以下为原文





Hello Ivan ,


GPIO Pad Data Input Registers (GPDI)
These registers can be used to  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
举报

刘溪

2018-11-1 14:43:52
你好,Erwan,
 
 
谢谢你的建议。
 
问候,
 伊万

以上来自于谷歌翻译


以下为原文





Hello Erwan,


thank you for the advice.

Regards,
Ivan
举报

更多回帖

发帖
×
20
完善资料,
赚取积分