Convert from FRDM-k22f to similar MCU

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

Convert from FRDM-k22f to similar MCU

跳至解决方案
1,027 次查看
ericnetherland
Contributor II

Using KDS 3.0 and KSDK 1.2, I have a non-PE project successfully building and running on the FRDM-k22f board and I need to run it on another board with a very similar MCU: MK22FN256VLL12.

I've changed the define, includes, startup, and board files to point to the 256 MCU but it always interrupts at startup. I can still switch back to the FRDM board and run no problem.

I know the new board is good since I can run other projects. How do I debug the startup interrupt?

Thanks for any help on this.

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
933 次查看
ericnetherland
Contributor II

Update: I fixed my problem by finding and changing the following linker file from the MK22F51212 to:

${PROJECT_KSDK_PATH}/platform/devices/MK22F25612/linker/gcc/MK22FN256xxx12_flash.ld.

In the linker build settings for the .cproject.

This is no longer an issue but if anyone can point me to documentation regarding debugging a hard fault that would still be appreciated.

在原帖中查看解决方案

0 项奖励
回复
1 回复
934 次查看
ericnetherland
Contributor II

Update: I fixed my problem by finding and changing the following linker file from the MK22F51212 to:

${PROJECT_KSDK_PATH}/platform/devices/MK22F25612/linker/gcc/MK22FN256xxx12_flash.ld.

In the linker build settings for the .cproject.

This is no longer an issue but if anyone can point me to documentation regarding debugging a hard fault that would still be appreciated.

0 项奖励
回复