| Embedded Target for OSEK/VDX | ![]() |
Tutorial 4: Automated Downloading and Debugging
Both the OSEKWorks target and the ProOSEK target let you automatically download generated applications, with optional initiation of a debugging session. The SingleStep debugger is required to use these features.
The Build action pull-down menu supports the following options:
Download_and_run: Invoke SingleStep after the build process to download the executable to target RAM and start execution.
Download_and_debug: Invoke SingleStep after the build process to download the executable to target RAM and start a debugging session.
None: SingleStep is not invoked. You must download and run or debug the code manually.
In this tutorial, we will rebuild the osek_mrate application used in the previous tutorials, and use the Download_and_debug option to download the code and start a debugging session.
Make sure you have done the following before you begin:
OSEKWorks code generation options or ProOSEK code generation options) from the Category menu.
Download_and_debug from the Build action pull-down menu. The figure below shows this option selected for the OSEKWorks target.
Execute SingleStep as: start \\depot\hub\share\apps\WindRiver\SingleStepDebugger\sds762\cmd\bdmp58.exe -P -S D:\Work\r12\toolbox\rtw\targets\osek\osek\@osek_diab_tgtaction\phycore-555.wsp -a d:\work\osek_tut\osek_mrate.elf -r d:\work\osek_tut\osek_mrate_osekworks\osek_mrate_ram.scr
### Successful completion of Real-Time Workshop build procedure for model: osek_mrate
Download_and_run option. If so, make sure you have closed any existing SingleStep sessions, as multiple SingleStep sessions can conflict with each other. Then return to the Build action pull-down menu, select Download_and_run, and click the Build button. After completion of the build process, SingleStep starts up and downloads and runs the program on the target, without a breakpoint or any manual intervention.
In the next and final tutorial, Tutorial 5: Downloading Generated Code to FLASH, we will use a different model to generate code and download it to FLASH rather than RAM.
| Observing the Generated Code | Tutorial 5: Downloading Generated Code to FLASH | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |