This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Specifying the start location of the Main() routine.

I am using a Goal VRS1000 chip that allows for in-system programming. The ISP program is located at the end of the Flash Memory area. Location 0000h must contain FFh which directs the PC to the beginning of the ISP program upon reset. Depending on the state of Pin 3.2, the ISP program will either continue, or jump to location 100h. Location 100h should be the start of the user program.

So, my question is how to specify that my program's main() routine - OR a jump command TO the main routine - is located at 100h? I have tried to change the program start location, in the BL51 Locate option menu. The compiler WILL start the code at 100h. HOWEVER, it arranges the routines in a seemingly arbitrary order so that the first routine at 100h is never the main() routine!

Any suggestions?

-Michael