📄 readme
字号:
This example shows a simple program that uses the downloader library for generating a load image from an executable. Memory images can begenerated at compile/link time using the -mi option of tmld, but it isnot always convenient to do so. For instance, it might not be knownat compile/link time on which board the produced executable is to be executed, or maybe the executable is to be executed on multipleboards, each with their own SDRAM size / offset, processor frequency, etc.Loaders like tmrun, tmgmon etc that allow load/execute of arbitrary executables use the downloader library as in the example programfor generating an absolute load image from a relocateble executablein the TriMedia object format, while also filling in some criticalvalues like processor frequency. Also tmld itself uses the downloaderlibrary in this way, for implementing the -mi option.This examplegenerates a sample memory image file using tmld (see Makefile),and it generates another one in an equivalent way using the downloaderlibrary (see C program). The resulting memory images should hence beidentical, and this is checked in the makefile.NOTES: - all error checking is omitted in the C program - all parameters (file names SDRAM details etc) are hardcoded in the C program - For a complete description of the downloader library, see the TriMedia reference manuals - The makefile demonstrates how to build the downloader program as a Sun executable and as a TM executable, using both forms of the libraries available in the SDE. Only the TM1 version is used.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -