Tool/software: Code Composer Studio
Hello. I have an MSP430G2403 and I need to write a small bootloader. From a file format .out I receive by means of a strip file the format .bin. Help me find the datasheet on the bin format, where it is written in which segment and to which address the program code is located.
P.S.: Sorry for bad english(
I presume this .bin file is created by using either tiobj2bin or some variant of objcopy.
There is no industry standard format for a .bin file. objcopy started as a Unix utility. Here is the objcopy man page entry on a .bin file ...
When objcopy generates a raw binary file, it will essentially produce a memory dump of the contents of the input object file. All symbols and relocation information will be discarded. The memory dump will start at the load address of the lowest section copied into the output file.
I think of it as a dump of the initialized raw data sections. Any holes in the memory map, however that may occur, are filled with zero. The length of the raw data is not encoded directly, but is implied by the length of the file.
Vitaliy Kvitovto which address the program code is located.
This information is not encoded anywhere in the .bin file. It is maintained separately by some other unspecified method.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click This Resolved My Issue on the best reply to your questionThe CCS Youtube Channel has short how-to videosThe Compiler Wiki answers most common questionsTrack an issue with SDOWP. Enter your bug id in the Search box.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.