could u please tell internal flash stating and ending address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

could u please tell internal flash stating and ending address

跳至解决方案
1,031 次查看
sudhakarp
Contributor V

Hi David,

        can i use internal flash writing destination starting address =0x0000000;could u please tell internal flash stating and ending address. i think END ADDRESS is 0x1024000;

am i correct..?

thanks and regards,

sudhakar p

0 项奖励
回复
1 解答
864 次查看
DavidS
NXP Employee
NXP Employee

Hi Sudhakar,

I branched this to a new thread.

All Kinetis devices have flash starting address of 0x0000_0000.

The ending flash address depends on the device.  Some have only one block of flash.  Others have more.  And yet others also have two types of flash (program and data) where the data flash may be divided up into FlexMemory to be used for EEPROM emulation.

For the K64 device on the FRDM-K64F Freedom board, it is the MK64FN1M0VLL12.  The flash on it has two blocks each of 512KB.

Block 1 0x0000_0000 - 0x0007_FFFF

Block 2 0x0008_0000 - 0x000F_FFFF

Address 0x0 is reserved for the vector table and flash configuration field.  User code usually starts at 0x420.

If you are trying to reserve a portion of un-used flash for your configuration information then typical location to do that is at the end of flash space.

Please look at your linker file and your *.map file for how you project/code is allocated to flash.

Regards,

David

在原帖中查看解决方案

0 项奖励
回复
1 回复
865 次查看
DavidS
NXP Employee
NXP Employee

Hi Sudhakar,

I branched this to a new thread.

All Kinetis devices have flash starting address of 0x0000_0000.

The ending flash address depends on the device.  Some have only one block of flash.  Others have more.  And yet others also have two types of flash (program and data) where the data flash may be divided up into FlexMemory to be used for EEPROM emulation.

For the K64 device on the FRDM-K64F Freedom board, it is the MK64FN1M0VLL12.  The flash on it has two blocks each of 512KB.

Block 1 0x0000_0000 - 0x0007_FFFF

Block 2 0x0008_0000 - 0x000F_FFFF

Address 0x0 is reserved for the vector table and flash configuration field.  User code usually starts at 0x420.

If you are trying to reserve a portion of un-used flash for your configuration information then typical location to do that is at the end of flash space.

Please look at your linker file and your *.map file for how you project/code is allocated to flash.

Regards,

David

0 项奖励
回复