Rational Rhapsody projects IDE operation in Rational Rhapsody Rational Rhapsody directly supports the following operations from the IDE submenu of the Code > Target menu. Љ Code > Target > Connect opens a connection to the IDE server. In the case of Tornado, this is the Tornado target server. This should be applied once during a session. The connection is disconnected either explicitly or when the project is closed. To connect, you must specify a target server name, typically @ . Once specified, the name is stored for future sessions. Љ Code > Target > Download downloads an image to the targets through the IDE. Download is available only if an image exists. Љ Code > Target > Run.
Runs the executable on the target starting from a designated entry point (VxMain in Tornado), as specified by the _CG:: ::EntryPoint property. You can also run the executable from the Code menu or toolbar. Љ Code > Target > Unload c lears the target from all tasks and data allocated by the application. This is an important feature because RTOSes generally do not have a process concept that cleans up after termination of the application. Unload is always available and causes execution to stop if the application is running. Љ Code > Target > Disconnect disconnects from the IDE server.
Co-debugging with the Tornado debugger Before using the Tornado debugger, make sure to compile the generated file using debug flags (normally -g ). To use the Tornado debugger: 1. In Rational Rhapsody, connect the application by selecting Code > IDE > Connect . 2. Download the application by selecting Code > IDE > Download . 3. Select Code > IDE > Run , or click Run . 4. In the Animation toolbar, select Go Idle (or Go Step several times) so the tRhp task is created. Note: You must run the application before attaching a debugger; otherwise, there will be no tasks to which to attach the debugger. 5. In Tornado, start the debugger by selecting Tools > Debugger . 6.
Attach the debugger to the main thread ( tRhp ) by selecting Debug > attach . 290 User Guide