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