How is a Non-Default Entry Address Specified?

ASH WARE's ETEC eTPU C Compiler and Byte Craft's eTPU C compiler places the Event Vector table at address zero by default. This can be moved to any address on a 0x800 boundary.

With ETEC, the entry table base location is controlled via the -etba=<address> option on the linker.  For example, to place the entry table at address 0x2800, add "-etba=0x2800" to the ETEC linker command line options.

With the Byte Craft compiler, to move the event vector table to address 0x800, put the following pragma at the top of any C file in the build.

#pragma entryaddr 0x800;

Same ... but at address 0x2800

#pragma entryaddr 0x2800;

Click here to download this example