MPC5748G startup code not jumping to main function for flexCAN

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5748G startup code not jumping to main function for flexCAN

431 Views
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

Tags (1)
0 Kudos
1 Reply

258 Views
petervlna
NXP Employee
NXP Employee

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 Kudos