 Question:
All questions are with respect to text "Booting a Tms320C32 target =
system in a c environment" - spra067.
#1) On page 2, it mentions a file named BOOT.OBJ. Is this file created =
by the programmer, or is this a standard program, taken from somewhere? = If so where?
#2) Is BOOT.OBJ only used for C programs, or can it be used for programs
= written only in assembly?
3) Relating to page 9, if executing from EPROM (in microprocessor mode)
= can you use EPROM of 8 bits wide?
4) It states that on reset, the status of the interrupt pins, will =
determine where the boot table is. My question is, how do we initially = place the boot
table at that memory location?
5) In microcomputer/bootloader mode, can you use like for example, two =
16 bit wide EPROM's (so that EPROM 1 has bits 16 -31, and EPROM 2 has = bits 0 to 15) or
should it always be a single 8 bit EPROM.=20
6) Is it by having more that 1 EPROM like in Question 5, this is only =
necessary if running in microprocessor mode.
7) Relating to appendix A, pg. 21. If you used 2 EPROM's like question
5, = are you actually booting from 32 bit wide EPROM (like on page 22) or = booting from
16 bit wide EPROM? This is important since the status of = the interrupt pins rely on
this.
Answer:
#1) BOOT.OBJ is contained in the RTS30.lib ,if desired,but not
necessary, it can be extracted using mk30 ,see pg. 5-3 of Optimizing c compiler User's
Guide. #SPRU034
#2)Yes, is used to initialize the C environment , basically set up the
Stack , and copy's C Constants to the Linker specified address.
#3) Yes. see page 21 of #SPRA040 Interfacing Memory to the C32 DSP App
Rep.
#4) that location, if memory will need to be a EPROM, which in this case
you'll use HEX30 to create your Files ,which you will burn onto the EPROM's , or might be
SRAM , in which case you might have a other CPU copy the bootheader to the location. If
your booting from the serial-port ,then the other serial-port device will supply the
bootheader.
#5) either way , the c32 & Hex30 are very Flexible, however some
hex30 formats are limited.
#6) NO, actually, you can only run code out 32bit wide memory in either
MP/MC
#7) Could be either, you must configure the STRB0 control register , see
pg. 7-8 of the c32 Addendum #SPRU132 see bits 16-19 physical memory and data type size ,
if your address this memory with I/O strobe it's not configurable and is always 32 bit
access. |