MCUXpresso DAC debug issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCUXpresso DAC debug issue

跳至解决方案
742 次查看
Bela1
Contributor III

Ladies and gentlemen,

I discovered an interesting phenomen while debugging DAC in my application.

I just wanted to turn the OpAmp buffer of DAC0 On. During debug, I've seen in the peripheral registers, that the bit BUF_EN bit is not set, however, my code sets it.

Carefully viewing onto the hex value of DAC->GCR register, I see, that the binary value is correct, it shows that bit 17 is set to 1, as I expected. However, a few lines below, BUF_EN says that the buffer is not enabled - but it is.

Is this a bug in MCUXpresso, or am I doing something wrong?

0 项奖励
回复
1 解答
656 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my apologize for the late response, I did test it on the SDK example, and I have the same behavior that you reported, let me escalate to the SDK department when I have more information I will contact you.

Best regards,
Pavel

在原帖中查看解决方案

0 项奖励
回复
6 回复数
584 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I get this information from the team.

What I meant is treat this as "Not used", since bit 17 is 0. The only part that is not right is the field  explanation from the MCUXpresso peripheral register view for GCR[BUF_EN]=0 is stated "Used"

Pavel_Hernandez_0-1721842577664.png

Same as this, bit 17 is 1 - BUF_EN. The MCUXpresso peripheral register view for GCR[BUF_EN]=1 show "Not Used" is wrong.

Pavel_Hernandez_1-1721842577663.png

The most important is the GCR register bit 17. If the GCR register bit 17 is 1 - BUF_EN (0x0002_0000), bit 17 is 0 - Buf not used (0x0000_0000).

Best regards,
Pavel

0 项奖励
回复
574 次查看
Bela1
Contributor III
Thank You Pavel, hope it will be corrected in the next release.
0 项奖励
回复
718 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, could you let me know if your test was based on an example from the SDK? or is this issue reproducible on once example on the SDK? if yes could you let me know the steps?

Best regards,
Pavel

0 项奖励
回复
690 次查看
Bela1
Contributor III

Hallo Pavel,

I sent You my answers by email yesterday. Unfortunately yesterday I couldn't answer here on-line. Hopefully You got it.

0 项奖励
回复
657 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my apologize for the late response, I did test it on the SDK example, and I have the same behavior that you reported, let me escalate to the SDK department when I have more information I will contact you.

Best regards,
Pavel

0 项奖励
回复
651 次查看
Bela1
Contributor III

Hallo Pavel,

Thank You for the response. Just as info: I installed the newest MCUXpresso, v11.10.0_3148, the same symptom is still there. Hopefully it can be corrected.

Thank You again.

0 项奖励
回复