MPC5748G startup code not jumping to main function for flexCAN

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

MPC5748G startup code not jumping to main function for flexCAN

673 次查看
dbabu_ele
Contributor I

Hi All,

I'm new and currently using the MPC5748G-LCEVB with MULTI(GHS compiler) and Trace32 debugger.

I have started testing the FlexCAN code available in NXP community (AN4830SW.zip file).

Here i'm facing the problem that my startup code is not jumping the control to main function.

I'm using the project "flexcan_flash.gpj"

Please help me to resolve below points.

1. what chnages required to use the example code for FlexCAN?

2. If i want to create a new project are there any changes required for scripts/library files?

3. What is the difference between "flexcan_flash.gpj" and "flexcan_ram.gpj" ?

    Here which type of target code (flash or ram) is better to use?

Please find the startup code and example code in the attachment.

Thanks in advance.

-Babu

标记 (1)
0 项奖励
1 回复

500 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello Babu,

1. what changes required to use the example code for FlexCAN?

When you debug your code assembly do you reach branch to main function or it crash before the branch?

You can find here the FlexCAN example code directly for this micro:

https://community.nxp.com/docs/DOC-333556 

2. If i want to create a new project are there any changes required for scripts/library files?

New project in GHS? If yes, then follow tutorial of GHS and if you select the libraries for startup and board initialization, your project will run without need to do any further initialization.

3. What is the difference between "flexcan_flash.gpj" and "flexcan_ram.gpj" ?

    Here which type of target code (flash or ram) is better to use?

Well, one is with linker file for Flash memory target and the second for RAM.

regards,

Peter

0 项奖励