초보의 아웅다웅 설계하기/STM32

Keil, IAR고정위치에 바이너리 라이팅하기

로망와니 2018. 8. 17. 13:06

 

Keil에서 고정 위치에 바이너리 라이팅하기 

const unsigned char FixedROM[65520UL + 1] __attribute__((at(0x08010000))) = {0x00, };

 

 
IAR에서 고정위치에 바이너리 라이팅하기
#pragma location = 0x08010000
__root const unsigned char FixedROM[65520UL + 1] = {0x00, };
 
 
0x08010000는 위치하고 싶은 주소 

 

 

Bin2C 코드 :
 
 
Bin2C.exe
0.04MB

 

 

 

 

 

코드 출처 :
 
 

 

 

 

https://www.segger.com/free-utilities/bin2c/

 

What is Bin2c

Bin2C does not require additional software to be installed (runs stand-alone). Typical usage applications are data that need to be included in a C-program, such as FPGA configuration data, bitmaps in portable format (such as GIF, PNG), web pages that need

www.segger.com