Defining Dummy Main Function

The ROM library contains the main function. Define a dummy main function in the startup module (refer the following listing).

Listing: Definition of a Dummy Main Function

#pragma NO_ENTRY
#pragma NO_EXIT

void main(void) {

  asm NOP;

}