Flash memory mapping

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flash memory mapping

569 Views
mehdikarimibiuk
Contributor V

1- I want to know how to configure internal flash memory of K10 in PE "Build options"?

2- I want to store all my data (program, code, variables, Bootloader, interrupts, factory defaults) in flash memory. Is that possible to configure them all in below:


lcf.PNG.png



I want to see if in the Flash Memory it is possible to do the following:

3- section for Bootloader to start up upon cpu reset?

4- section for read-only factory default parameter values.

Please give suggestions and examples on how to do that.

My controller is MK10DN512ZVLL10. And I am having a bare-metal project.

5- I see from the Ref Manual chapter 4 (Memory Map) that program flash range is 0x0000_0000–0x07FF_FFFF. But this does not make sense (30MB!!!) since my flash memory is 512KB only! Can you please elaborate?


Thanks,

Mehdi

0 Kudos
1 Reply

347 Views
Petr_H
NXP Employee
NXP Employee

When you create a Processor Expert project for Kinetis (e.g. K10), two configurations are created, each holding one CPU component. Set the configuration FLASH as active a and it will make active the CPU which is set the way that all code and static data go to internal flash. See the attached picture for details. There, in the build options you can see the settings and the internal flash should by occupied to the maximum.

Best regards

Petr Hradsky

Processor Expert Support Team

0 Kudos