DSP56F80x - changing entry point

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DSP56F80x - changing entry point

1,469 Views
czarlz
Contributor I
In the example codes for these MCUs entry point is set as "Finit_M56801_". As far as I`m concerned this function is in library file. How can I change it? I`ve tried to change it in linker options but there was an error coming: "Link error: undefined: "my_entry_point_bla_bla"". This problem also comes with using Processor Expert. It defines a function "_EntryPoint". I tried to point at that function in linker options but I still get the same error. What conditions must be fulfilled for that function so that it could work properly?
Labels (1)
Tags (1)
0 Kudos
1 Reply

221 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
Attached to this email you will find an example.
I changed the entry point to the main function.
To do that I put Fmain.
 
Be aware that the default entry function is performing some actions.
Extract of the Targeting_56800.pdf manual:
The starting point for a program is set in the Entry Point field in the M56800
settings panel. The Entry Point field specifies the function that the linker first uses
when the program runs.
The default function found in this field is located within the startup code that sets up
the DSP56800 environment before your code executes. This function and its
corresponding startup code will be different depending upon which stationery you
have selected. In the case of hardware-targeted stationery, the startup code can be
found in the stationery-generated project’s startup folder.
The startup code performs other tasks, such as clearing the hardware stack,
creating an interrupt table, and getting the stack start and exception handler
addresses.
The final task performed by the startup code is to call your main() function.
 
Regards
Pascal
 
Message Edited by t.dowe on 2009-09-04 10:40 AM
0 Kudos