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 코드 :
코드 출처 :
https://www.dotnetnote.com/docs/c-language/get-file-size-in-c/
파일 크기 확인하는 C 프로그램 예제
파일 크기 확인하는 C 프로그램 예제 이번 아티클에서는 C 언어를 사용하여 특정 파일의 크기를 확인하는 방법을 소개합니다. ftell() 함수는 C 언어의 파일 입출력 라이브러리에 포함된 함수로,
www.dotnetnote.com
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
'초보의 아웅다웅 설계하기 > STM32' 카테고리의 다른 글
OLED QG-2864KSWLG01 내부 펌프 초기 코드 (0) | 2018.09.01 |
---|---|
Partial Erase Done (areas with no algorithms skipped!) 에러 발생 (0) | 2018.08.17 |
IAR Debugger 다운로드 설정 (0) | 2018.08.16 |
LCD 5*8 픽셀 글자 (0) | 2018.07.27 |
Tamper 사용 (0) | 2018.07.23 |