This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-software:sigmadsp_genfirmware [26 Jun 2014 05:52] – [Export XML firmware file from SigmaStudio] Lars-Peter Clausen | resources:tools-software:linux-software:sigmadsp_genfirmware [01 Jul 2014 09:48] (current) – remove outdated fw loader documentation Lars-Peter Clausen | ||
---|---|---|---|
Line 2: | Line 2: | ||
The SigmaDSP Firmware Utility for Linux allows to generate a firmware file which can be loaded by the Linux SigmaDSP device drivers. | The SigmaDSP Firmware Utility for Linux allows to generate a firmware file which can be loaded by the Linux SigmaDSP device drivers. | ||
- | |||
- | ===== Download the SigmaDSP Firmware Utility ====== | ||
- | |||
- | The source code for the SigmaDSP Firmware Utility can be downloaded from the wiki. | ||
- | |||
- | {{: | ||
- | |||
- | ===== Build and install the SigmaDSP Firmware Utility ====== | ||
- | |||
- | Download the SigmaDSP Firmware Utility and extract the tar archive. To build the tool run //make//. | ||
- | |||
- | <WRAP box bggreen>< | ||
- | < | ||
- | > wget http:// | ||
- | > tar -xjf sigma-firmware-util.tar.bz | ||
- | > cd sigma-firmware-util | ||
- | > make | ||
- | </ | ||
- | </ | ||
- | |||
- | ===== Export raw firmware files from SigmaStudio ===== | ||
- | |||
- | 1) Open your design in SigmaStudio and click the "Link Compile Download" | ||
- | |||
- | {{ : | ||
- | |||
- | 2) Scroll down to the Capture window and locate the writes for " | ||
- | |||
- | {{ : | ||
- | |||
- | 3) Now right-click each of them and select "Save as Raw > Address + Data ..." from the popup menu. | ||
- | Save " | ||
- | |||
- | {{ : | ||
- | |||
- | The saved files should be of exactly two bytes larger as the number in the " | ||
- | |||
- | ===== Generate firmware ===== | ||
- | |||
- | Copy the parameter.bin and program.bin files to the Linux system on which the // | ||
- | |||
- | <WRAP box bggreen>< | ||
- | < | ||
- | > ./ | ||
- | </ | ||
- | </ | ||
===== Export XML firmware file from SigmaStudio ===== | ===== Export XML firmware file from SigmaStudio ===== | ||
Line 66: | Line 20: | ||
===== Generate the binary firmware file ===== | ===== Generate the binary firmware file ===== | ||
- | Currently the SigmaDSP Firmware Utility for Linux only runs on a Linux system. The next step is to copy the XML file from the previous instructions to a Linux machine. | + | Currently the SigmaDSP Firmware Utility for Linux only runs on a Linux system |
+ | |||
+ | < | ||
+ | > wget %%https:// | ||
+ | > chmod +x sigmadsp_fwgen | ||
+ | </ | ||
+ | |||
+ | The next step is to copy the XML file from the previous instructions to a Linux machine. | ||
+ | |||
+ | The fwgen utility expects at least 3 parameters. The first parameter is the filename of the XML file exported from SigmaStudio, | ||
+ | |||
+ | < | ||
+ | > ./ | ||
+ | </ | ||
If you want to support multiple samplerates with your firmware file you need to export a XML file for each samplerate. Each file needs to be specified on the command line followed by the samplerate it was generated for. The last parameter is the name of the output file. | If you want to support multiple samplerates with your firmware file you need to export a XML file for each samplerate. Each file needs to be specified on the command line followed by the samplerate it was generated for. The last parameter is the name of the output file. | ||
Line 73: | Line 40: | ||
< | < | ||
- | > ./fwgen.py | + | > ./sigmadsp_fwgen |
</ | </ | ||
When such a firmware file with support for multiple samplerates is loaded the kernel driver will automatically take care of programming the correct design for the currently selected samplerate to the SigmaDSP. | When such a firmware file with support for multiple samplerates is loaded the kernel driver will automatically take care of programming the correct design for the currently selected samplerate to the SigmaDSP. | ||
- | |||
===== Load the firmware on the target system ===== | ===== Load the firmware on the target system ===== | ||