Motorola DG128, 68HC912D60, CMD912x, DT128 manual Running your application

Page 7

Running your application

After creating a Motorola S-Record file you can "upload" it to the development board for a test run. The provided example “HELLO.ASM” was created to run from RAM so you can use the Mon12 Monitor to test it without programming it into Flash.

If you haven’t done so already, verify that the CMD912X board is connected and operating properly by following the steps under “GETTING STARTED” until you see the Mon12 prompt, then follow these steps to run your program:

1.Press and release the RESET button on the CMD912X board. You should see the PRESS ANY KEY message. Hit the return key to get the monitor prompt.

2.Type LOAD

This will prepare Mon12 to receive a program.

3.Select Upload and when prompted for a file name select your assembled program file in s- record format that was created in the previous section called: HELLO.S19

Your program will be sent to the board thru the serial port.

4.When finished loading you will see the > prompt again. Type GO 4400

This tells Mon12 to execute the program at address $4400, which is the start of our test program.

5.If everything is working properly you should see the message “Hello World” echoed back to your terminal screen. Press RESET to return to the monitor.

6.If you do not get this message, see the TROUBLESHOOTING section in this manual

You can modify the hello program to display other strings or do anything you want. The procedures for assembling your code, uploading it to the board and executing it remain the same. Mon12 has many features such as breakpoints, assembly/disassembly, memory dump and modify and program trace. Type HELP at the Mon12 prompt for a listing of commands or consult the Mon12 documentation on the disk for more information.

For a more powerful debugger with many advanced features such as source level debugging, you can use the NoICE debugger software. A full featured demo version is provided on the CD, which you can use to get started. NOTE: To use this program instead of Mon12 you must simply move the CONFIG SWITCH position 3 ON, RESET the board, and run the NoICE software. See the help documentation in this program for more information.

NoICE monitor is not installed on Monitor versions R2 and earlier.

7

Image 7
Contents CMD912x Contents Getting Started Installing the SoftwareBoard Startup Software Development Support SoftwareCreating source code TutorialAS12 HELLO.ASM -LHELLO Assembling source codeRunning your application #$7FE Programming Flash EepromBDM Operation PM12DP256 Memory Map Memory MapsPeripheral Area PM12DG128 / PM12DT128 Memory MapPeripheral Area see note 2 below PM12D60 Memory MapConfig Switch Option SwitchesCOM Switch PM12D60 Mode SwitchPRU Port Ports and ConnectorsMcuport PRU Port ConnectorBusport COM1 Analog PortCOM2 Can 1 4 Port Connections CAN1 4 PortsKeypad LcdportBDM Port TB1 and J6 PowerTroubleshooting Utilities Tips and SuggestionsTables LCD Command CodesLCD Character Codes Bulk Mon12 Monitor CommandsOther O Signal Connection ReferencePS4/MIOS