KDS PE K64F SPI not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KDS PE K64F SPI not working

ソリューションへジャンプ
2,902件の閲覧回数
schen
Contributor III

I have a project that works fine in CW 10.6. The project uses SPI0 to control a graphic LCD. PE was used to create the project.

 

When I ported the project to KDS v1.1.1 (also using PE), it does not work any more. The SCK pulses 16 times then stops. In KDS there does not seem to have a way to verify the SPI registers content, not even in memory browser. I tried CMSIS-DAP firmware and I tried PEmicro firmware.

 

Any suggestions?

ラベル(1)
タグ(4)
1 解決策
2,656件の閲覧回数
schen
Contributor III

I found the problem. It was a bug in my code that caused the memory corruption. CW and KDS seem to have different link order so the memory corruption manifested differently.

The ability to view the register contents was a great help!

By the way, I do not seem to be able to find NVIC registers using the plug-in from EmbSysRegView Project.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,656件の閲覧回数
schen
Contributor III

Thanks Erich. That is a great tool to have. It will keep me busy for a while until I find the problem.

0 件の賞賛
返信
2,657件の閲覧回数
schen
Contributor III

I found the problem. It was a bug in my code that caused the memory corruption. CW and KDS seem to have different link order so the memory corruption manifested differently.

The ability to view the register contents was a great help!

By the way, I do not seem to be able to find NVIC registers using the plug-in from EmbSysRegView Project.

0 件の賞賛
返信
2,656件の閲覧回数
BlackNight
NXP Employee
NXP Employee

I have to follow up why the NVIC registers are not present in the CMSIS-SVD files.

Thanks for spotting this!

Erich