Altera_Forum
Honored Contributor
13 years agoHow can I load a .sof and .elf file to a target using System Console
Hello,
I want to use System Console to download my project which consists of a SRAM object file and a .elf file to a target board. Hopefully someone can answer the following questions: 1. How can I execute a .TCL script from the System Console command line? I guess there should be a command which I can used instead of "File" -> "Execute Script..." 2. Where can I find more informations about the plugins System Console provides? System Console provides some plugins which are providing additional functionality (for example the "DesignsPluginProvider"). Where can I find additional informations about the functionalities of the plugins. The only source I found is the following PDF document: http://www.altera.com.cn/literature/ug/ug_system_console.pdf (http://www.altera.com.cn/literature/ug/ug_system_console.pdf) Unfortunately this document doesn't elaborate on the features of the plugins. 3. Is it possible to search for an element in a TCL list? The examples are using command like this one to select specific elements:set device_path 0] which in this example would set device_path to: /devices/EP2C35@1#USB-0 But the order in which the devices are named could change, so it would be better if I could search the elements returned by get_service_paths for the term ep2c35 and select that specific element. This is the prototype of the script I'm working on: set project_path /home/archie/my_project
set device_path 0]
design_load $project_path
set design_path 0]
design_link $design_path $device_path
device_download_sof
device_load_jdi
elf_download Obviously the last three functions are still missing some needed arguments Best regards Martin