Showing posts with label Keil. Show all posts
Showing posts with label Keil. Show all posts

Thursday, November 6, 2014

CRP

CRP(Code read protection) is a way to avoid someone to get code from flash.

CRP

Monday, November 3, 2014

Time Stamp

for keil compilar environment, they had a defination for time stamp, therefore we could use that to be a release note for product purpose.

how to use?

printf("%s %s",__DATE__,__TIME__);

or you could assign memory for them.

U8 KC_DATA Datestring[sizeof(__DATE__)];
U8 KC_DATA Timestring[sizeof(__TIME__)];


memcpy(Datestring, &__DATE__, sizeof(__DATE__));
memcpy(Timestring, &__TIME__, sizeof(__TIME__));

 

Reference

[1] http://www.keil.com/forum/2789/display-time-and-date/

compilar a specific memory address for variable and function

Compiler-specific Features [4]

function attributs

assign a section for place function code [1,2]

Variable attributs

locating a variable at absolute memory address [3]

Reference

[1] http://www.keil.com/support/man/docs/armccref/armccref_Cacbgief.htm

[2] http://www.keil.com/forum/13875/-at-for-function-address/

[3] http://www.keil.com/support/docs/2829.htm

[4] http://www.keil.com/support/man/docs/armccref/armccref_chdfijae.htm

Sunday, October 26, 2014

Keil Firmware Binary

 

Normally, Keil will build the HEX file for Magic Flash to burn the code to MCU or .axf for mvisual.

but it’s not for binary code. therefore we need to using some ways to convert HEX to binary.

1.

C:\Keil\ARM\ARMCC\bin\fromelf.exe --bin --output=myprog.bin myprog.axf[1,2]
2.

C:\Keil\ARM\bin\ElfDwt.exe <filename>.axf BIN(<filename>.bin)[3]

 


and we could check the binary with application(AN11305)[4].


this software will check the signature at 0x1C, (43 f0 ff ef or charater Cðÿï )


Reference


[1]http://www.keil.com/support/docs/3213.htm


[2]http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka11291.html


[3]http://www.lpcware.com/content/blog/binary-file-creation-using-keil-mdk-toolchain


[4]http://www.lpcware.com/content/nxpfile/an11305-usb-system-programming-lpc11u3xlpc11u2x

Register Transfer Level Design with Verilog (1) [ebook]

設計程式之所以有趣不外乎是它的千變萬化,同樣的結果卻有不同的寫法。 但這些不同寫法當中也並沒有分誰對誰錯,也沒有制定標準來規範何事該用何解。 這也就是我們設計者的珍貴!! [1] Primitive Instantiations 在Verilog中最基本的邏輯...