본문 바로가기
DSP, MCU/TMS320F2838x (C28x)

TMS320F28388D ] CCS에서 hex 파일 출력하는법

by eteo 2023. 12. 28.

 

 

프로젝트 우클릭 - C2000 Hex Utility

 

 

 

 

Enable 'C2000 Hex Utility' 체크

 

 

--memwidth, --romwidth 16으로 설정

출력 포맷은 .hex

 

 

 

Output Format Options는 Intel hex 선택

 

 

 

 

 

만약 hex말고 bin파일로 출력하려면 내가 올린 다른 글을 참고하면 된다. tiobj2bin, mkhex4bin, hex2000 툴을 사용하여 out파일로부터 bin파일을 생성해내는 방법이다.

 

2023.04.20 - [DSP, MCU/TMS320F2838x (C28x)] - TMS320F28388D ] CSS에서 bin 파일 생성하는 법, filling a hole with 0xFF not 0x00

 

 

 

위 방법 말고 이미 생성된 hex파일을 bin파일로 변경하려면 아래 사이트에서 Jacques Pelletier의 hex2bin 프로그램을 받고 -a(Address Alignment Word), -w(Swap wordwise) 옵션을 사용해 변경하는 방법이 있다.

https://sourceforge.net/projects/hex2bin/

 

 

참고:

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/650094/compiler-ccs-settings-for-bin-generation