Dear all.
I use CW 10.6 and KE04Z8.
I now that in flash between 0x400 to 0x40F there is protection register of cfmprotrom
The map of default cw project is:
.interrupts 0x00000000 0xc0
0x00000000 __vector_table = .
0x00000000 . = ALIGN (0x4)
*(.vectortable)
.vectortable 0x00000000 0xc0 ./Project_Settings/Startup_Code/kinetis_sysinit.o
0x00000000 InterruptVector
0x000000c0 . = ALIGN (0x4).cfmprotect 0x00000400 0x0
0x00000400 . = ALIGN (0x4)
*(.cfmconfig)
0x00000400 . = ALIGN (0x4).text 0x00000800 0x268
0x00000800 . = ALIGN (0x4)
*(.text)
*(.text*)
I have moves the start from 0x800 to 0x410 but . . How can i use the zone fron 0x0010 (after vector) to 0x0400 ?
My question is : What there is from 0x0010 to 0x0400 ?
How can i use it ?
Thanks
Stefano
Solved! Go to Solution.
Hi Stefano
If you locate interrupt vectors in Flash they will occupy from 0x00000010 to 0x0000007a (the KE04 has 28 interrupt vectors). Between here and 0x400 there is nothing and so can be used to locate const variables, or code to if you wish.
If you locate interrupt vectors to SRAM (and don't have a copy of them in the default vector area of flash) the area from 0x00000010 to 0x0x000003ff will be free for such usage too.
Most likely, due to the very small SRAM size in a KE04Z8 (1k), you will be using fixed vectors in Flash.
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
KE04: http://www.utasker.com/kinetis/FRDM-KE04Z.html
Hi Stefano
If you locate interrupt vectors in Flash they will occupy from 0x00000010 to 0x0000007a (the KE04 has 28 interrupt vectors). Between here and 0x400 there is nothing and so can be used to locate const variables, or code to if you wish.
If you locate interrupt vectors to SRAM (and don't have a copy of them in the default vector area of flash) the area from 0x00000010 to 0x0x000003ff will be free for such usage too.
Most likely, due to the very small SRAM size in a KE04Z8 (1k), you will be using fixed vectors in Flash.
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
KE04: http://www.utasker.com/kinetis/FRDM-KE04Z.html