Executing an Application using SerialICE

The application is 'your' program. There are two choices. Executing from RAM and executing from ROM.

Download and execute from RAM

  1. Type "make" from the top-level directory if you have not done so already. This builds the run-time library.

  2. Compile and link your program. The easiest way to do this is move to the bsps directory and use the same procedure that the makefile uses to build b4101. Which is...

    	pmcc -crt0 -o b4101 a4001.s myprog.c
    	
    Where a4001.s contains the correct startup code from the CPU you plan to use. a4001 will work for the 4001, 4003, or 4101.

    Note that if your application makes any calls to perform I/O eg. printf, you will need to provide to correct low-level routines to initialize and interface with the I/O peripheral you are using.

  3. Download and execute your application.

Blow into Prom and execute on powerup

Three steps are necessary.
  1. Merge application and SerialICE Kernel
  2. Build
  3. Make ROMS


Navigation: Document Home | Document Contents | Document Index