Tool/software: Code Composer Studio
Hi,
From the loadRaw Doc:
public void loadRaw(int nPage, long nAddress, java.lang.String sFilename, int nTypeSize, boolean bByteSwap)
throws ScriptingException
- Load a raw file from the host to target memory (specified by start address, page and length). Filesize is automatically determined and the entire file is loaded *
- Parameters:
nAddress- is the first address in the block.nPage- the memory page. Use one of Memory.Page enumeration.sFilename- specifies the name of the file that will store the target data.nTypeSize- specifies the type size of the data. Affects how data is byte-swapped to account for differences in host and target endianess. For example: if the target is big endian (the host is always little endian) and you specify nTypeSize = 16 then the upper and lower bytes are swapped after loading the file - but before writing to target memory.bByteSwap- Force a byte-swap of the data before writing to target memory. If Host and Target are difference endianess - this will effectively disable the automatic endianess conversion.- Throws:
ScriptingException
Can You please explain the meaning and usage of the nTypeSize - i could not figure out how it works and what values should accept (when i loaded a file and set it to 8 assuming it means loading the file byte by byte it seemed to write to memory that exceeds the file length while if ste it to 32 it seemed ok - why ?).
Also how this relates to the
bByteSwapparameters and how this also is being used.Thanks
Guy