MPC5748G startup code not jumping to main function for flexCAN

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

MPC5748G startup code not jumping to main function for flexCAN

655件の閲覧回数
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 返信

482件の閲覧回数
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 件の賞賛