Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sg200x: trm: update text for reset #127

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

unicornx
Copy link
Collaborator

Use new diagram and new description.

参考了 SG2042 的 Reset 章节的描述,请见附件:
English_SG2042_datasheet_Preliminary_EXTERNAL_REG_0.2.1.pdf

为方便 review,我这里附加了 build 后的 中英文版本:
sg2002_trm_cn.pdf
sg2002_trm_en.pdf

此外,这次修改中有 2 个问题希望帮忙确认一下:

问题 1: 原 TRM 中:

image

我觉得这里的 SOFT_AC_RSTN_0 应该指的是后面寄存器中的 SOFT_CPUAC_RSTN,所以这里改了,请帮忙确认一下。

问题 2:另外,我看 Reset 寄存器中还有 SOFT_CPU_RSTN,这个和 SOFT_CPUAC_RSTN 的区别请问是什么?,是不是说 SOFT_CPU_RSTN 设置后 cpu 就立即重启,而 SOFT_CPUAC_RSTN 则按照手册上的描述会有个等待的操作?

Use new diagram and new description.

Signed-off-by: Chen Wang <[email protected]>
@unicornx unicornx requested a review from KennethLiu61 June 17, 2024 00:15
@unicornx unicornx self-assigned this Jun 17, 2024
Copy link
Collaborator

@KennethLiu61 KennethLiu61 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确认ok

@KennethLiu61
Copy link
Collaborator

问题1,答复:的确是要换成SOFT_CPUAC_RSTN这个寄存器。
问题2,答复:一般软件操作的话,直接配置SOFT_CPUAC_RSTN即可,因为这个寄存器有auto clear的功能,会在复位后自动解复位,让对应的IP继续恢复工作(硬件行为,软件不需要再去写1解复位)。
而SOFT_CPU_RSTN这个没有auto clear的功能,需要写1复位后,再写0解复位,这样对应的IP才能工作。如果只写1复位,那对应的IP会一直处于reset状态,无法正常工作(例如此时访问这个IP的一些寄存器,就会hang住)。

@unicornx unicornx merged commit 45bd649 into sophgo:main Jun 17, 2024
1 check passed
@unicornx unicornx deleted the dev-sg200x-reset branch June 17, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants