使用的是官网下载的Demo历程,给MKV46F256烧录程序时,烧录不了,报错信息如下:
Full Chip Erase Done.
Programming Done.
Contents mismatch at: 0000001CH (Flash=00H Required=96H) !
Contents mismatch at: 0000001DH (Flash=00H Required=A6H) !
Contents mismatch at: 0000001EH (Flash=00H Required=FFH) !
Contents mismatch at: 0000001FH (Flash=00H Required=DFH) !
Verify Failed!
Error: Flash Download failed - "Cortex-M4"
Flash Load finished at 10:07:33
Hi bing yin,
我在TWR-KV46F150M板上测试SDK_2.6.0_MKV46F256xxx16\boards\twrkv46f150m\demo_apps\hello_world例程,能够使用JLink仿真器在此配置下进行debug。
你可以参考:Error: Flash Download failed - "Cortex-M4":Contents mismatch 里的提示查
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
您好,我现在有以下两个问题,需要咨询一下,如下
问题1: 问题1.在定时器配置时,我该如何计算频率。如下图所示。
问题2.在芯片引脚配置时,有个函数,如下图所示,其中参数kPort_MuxAlt6我该如何选择,kPort_MuxAlt2-kPort_MuxAlt15各代表什么意思?分别在那种模式下使用。
以上两个问题,还请务必回复一下,请知悉,谢谢!
在 2019-08-01 10:57:56,"Robin_Shen" <admin@community.nxp.com> 写道:
|
|
NXP Community
|
|
Re: 用KEIL 给MKV46F256烧录不了程序
reply from Robin_Shen in Other NXP Products - View the full discussion
Hi bing yin,
我在TWR-KV46F150M板上测试SDK_2.6.0_MKV46F256xxx16\boards\twrkv46f150m\demo_apps\hello_world例程,能够使用JLink仿真器在此配置下进行debug。
https://community.nxp.com/servlet/JiveServlet/downloadImage/2-1185571-274980/1186-900/FlashDownloadsetup.png
你可以参考:Error: Flash Download failed - "Cortex-M4":Contents mismatch 里的提示查
Best Regards,
Robin
问题1.在定时器配置时,我该如何计算频率。如下图所示。
答1:FTM_SetTimerPeriod里既然调用了USEC_TO_COUNT,那么1000U这个位置(us)直接输入周期多少微秒就行了。
如果你想手动计算也行:period of counting = (MOD - CNTIN + 0x0001) x period of FTM counter clock
已知fast peripheral clock频率
且FTM counter clock经过4分频(你的图里第8行代码)
假设CNTIN=0
求MOD值(16位寄存器最大0xff)
问题2.在芯片引脚配置时,有个函数,如下图所示,其中参数kPort_MuxAlt6我该如何选择,kPort_MuxAlt2-kPort_MuxAlt15各代表什么意思?分别在那种模式下使用。
答2:参考手册KV4XP100M168RM的“11.5 KV4x Signal Multiplexing and Pin Assignments”里查
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
您好。
关于PWM有各问题需咨询,代码配置如下:
示波器抓取的波形如下:
请问,波形为什么会是这样,低电平为什么不能完全拉低,该如何使低电平完全拉低?还请不吝赐教,谢谢!
在 2019-08-02 09:48:11,"Robin_Shen" <admin@community.nxp.com> 写道:
|
|
NXP Community
|
|
Re: 用KEIL 给MKV46F256烧录不了程序
reply from Robin_Shen in Other NXP Products - View the full discussion
问题1.在定时器配置时,我该如何计算频率。如下图所示。
答1:FTM_SetTimerPeriod里既然调用了USEC_TO_COUNT,那么1000U这个位置(us)直接输入周期多少微秒就行了。
如果你想手动计算也行:period of counting = (MOD - CNTIN + 0x0001) x period of FTM counter clock
已知fast peripheral clock频率
且FTM counter clock经过4分频(你的图里第8行代码)
假设CNTIN=0
求MOD值(16位寄存器最大0xff)
https://community.nxp.com/servlet/JiveServlet/downloadImage/2-1186294-275041/periodofcounting.png
问题2.在芯片引脚配置时,有个函数,如下图所示,其中参数kPort_MuxAlt6我该如何选择,kPort_MuxAlt2-kPort_MuxAlt15各代表什么意思?分别在那种模式下使用。
答2:参考手册KV4XP100M168RM的“11.5 KV4x Signal Multiplexing and Pin Assignments”里查
https://community.nxp.com/servlet/JiveServlet/downloadImage/2-1186294-275096/KV4xSignalMultiplexingandPin+Assignments.png
Best Regards,
Robin
先找个其他信号源输出类似频率方波,通过示波器检查波形是否也会产生类似畸变。
然后测试官方例程(...\SDK_2.6.0_MKV46F256xxx16\boards\twrkv46f150m\driver_examples\pwm),查证readme提示引脚波形。
你好。关于ADC我现在遇到问题,我这边移植的Demo,什么现象也没有,还会导致我其他的程序运行不正常(仿真时并未死机),代码见附件,还请帮忙查看一下,ADC配置是否正确。谢谢!
在 2019-08-05 11:00:40,"Robin_Shen" <admin@community.nxp.com> 写道:
|
|
NXP Community
|
|
Re: 用KEIL 给MKV46F256烧录不了程序
reply from Robin_Shen in Other NXP Products - View the full discussion
先找个其他信号源输出类似频率方波,通过示波器检查波形是否也会产生类似畸变。
然后测试官方例程(...\SDK_2.6.0_MKV46F256xxx16\boards\twrkv46f150m\driver_examples\pwm),查证readme提示引脚波形。
Reply to this message by replying to this email, or go to the message on NXP Community |
Start a new discussion in Other NXP Products by email or at NXP Community |
Following Re: 用KEIL 给MKV46F256烧录不了程序 in these streams: Inbox |
This email was sent by NXP Community because you are a registered user.
You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences
|
|
鉴于回帖与主题偏离,建议你重新创建一个帖子提问。
我们的工程师会在新帖里帮你解答。
Hi,
关于ADC,对于有些特殊得通道,ADC得通道号和函数void CADC_SetSampleConfig(ADC_Type *base, uint16_t sampleIndex, const cadc_sample_config_t *config)中得第二个参数sampleIndex得值如何让确定请告知。如使用ADCA_CH6A(pin14)时,则此时通道号和sampleIndex如何确定?代码片段如下
以上问题还请解答一下,谢谢!
在 2019-08-13 11:32:36,"Robin_Shen" <admin@community.nxp.com> 写道:
|
|
NXP Community
|
|
Re: 用KEIL 给MKV46F256烧录不了程序
reply from Robin_Shen in Other NXP Products - View the full discussion
鉴于回帖与主题偏离,建议你重新创建一个帖子提问。
我们的工程师会在新帖里帮你解答。
Reply to this message by replying to this email, or go to the message on NXP Community |
Start a new discussion in Other NXP Products by email or at NXP Community |
Following Re: 用KEIL 给MKV46F256烧录不了程序 in these streams: Inbox |
This email was sent by NXP Community because you are a registered user.
You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences
|
|