Startup_Code trouble with kinetis & PE

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

Startup_Code trouble with kinetis & PE

跳至解决方案
2,117 次查看
lander
Contributor IV

In the instructions that show how to set up processor expert for a CW10.3 project with the K20 family, it states that I must remove files "kinetis_sysinit.c" and "kinetis_sysinit.h" because they will interfere with PE.  I could not find those files in Project Settings>Startup_Code like the document stated I would.  I'm wondering why they aren't there to delete.

Also, I'm running into problems with initialization and my startup.c file.  These are the errors as follows...

Description Resource Path Location Type

Undefined : "__DATA_RAM" startup.c /NewMemProject/Sources/common line 103 C/C++ Problem

Undefined : "__DATA_END" startup.c /NewMemProject/Sources/common line 103 C/C++ Problem

Undefined : "__DATA_ROM" startup.c /NewMemProject/Sources/common line 103 C/C++ Problem

Undefined : "__VECTOR_RAM" startup.c /NewMemProject/Sources/common line 103 C/C++ Problem

Undefined : "__VECTOR_TABLE" startup.c /NewMemProject/Sources/common line 103 C/C++ Problem

Link failed. NewMemProject    C/C++ Problem

mingw32-make: *** [NewMemProject.afx] Error 1 NewMemProject    C/C++ Problem

Undefined : "___BOOT_STACK_ADDRESS" NewMemProject  line 0, external location: C:\Users\Liz.Anderson\Desktop\Freescale Tower\DemoCodeK20D72M\KINETIS_72MHz_SRC\build\cw\NewMemProject\MK20DX256_INTERNAL_FLASH\cw_crt0_s.obj C/C++ Problem

Undefined : "__BOOT_STACK_ADDRESS" NewMemProject  line 0, external location: C:\Users\Liz.Anderson\Desktop\Freescale Tower\DemoCodeK20D72M\KINETIS_72MHz_SRC\build\cw\NewMemProject\MK20DX256_INTERNAL_FLASH\vectors_c.obj C/C++ Problem

And the startup.c code where the first half of the errors are is as follows:

void

common_startup(void){

#if(defined(CW))

extern char __START_BSS[];

extern char __END_BSS[];

extern uint32 __DATA_ROM[];

extern uint32 __DATA_RAM[];

extern char __DATA_END[];

#endif

How much of their code do I have to modify to make this work?  I'm just trying to make UART work and hopefully make sure I can work with the memory of the chip.

Thank you,

Liz

1 解答
1,442 次查看
lander
Contributor IV

I have solved my issue but the PEx setup instructions are here: Freescale Technical Information Center

I hope this link works.

在原帖中查看解决方案

3 回复数
1,442 次查看
adriansc
Contributor IV

Hi,

Where did you find that instructions about PEx setup?

Regards.

0 项奖励
回复
1,443 次查看
lander
Contributor IV

I have solved my issue but the PEx setup instructions are here: Freescale Technical Information Center

I hope this link works.

1,442 次查看
adriansc
Contributor IV

It is good to know that you have solved your problem. Go on with your project!!.

Maybe you can post how you solved it in order to help other members.

Regards.