Datasheet and linker files

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasheet and linker files

Jump to solution
215 Views
pietrodicastri
Senior Contributor I

Good morning

I find in the linker file for the MK02FN128 as released for the KDS

the ram begins at 0x1FFFE000.

In the Table 4-1. System memory map of the K02F Sub-Family Reference Manual

I find another address: 0x1C00_0000

Do I read some wrong???

In the same manual the interrupt vectors are limited to 90, as in Table 3-4. Interrupt vector assignments.

The linker file for the MK02FN128 reserves 0x400 bytes for the interrupt table. What happens??

Pietro

0 Kudos
1 Solution
102 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Pietro di Castri:

The memory map in Table 4-1 only represents an overview of the memory spaces that the MCU architecture could eventually handle depending on the specific device (part number). The actual RAM sizes and addresses are given in Chapter 3.5.3.1 SRAM sizes:

pastedImage_3.png

About the vectors, the 0x400 space for vectors is the standard reserved size for Kinetis devices; the actual space used depends on the number of vectors as you implied. For your case with K02 the space required is 90 x 4 bytes = 360 = 0x168. There is an unused gap but it is not possible to place code from there because it would overlap with the Kinetis Flash Configuration Field space (from 0x0400 to 0x040F).


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
103 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Pietro di Castri:

The memory map in Table 4-1 only represents an overview of the memory spaces that the MCU architecture could eventually handle depending on the specific device (part number). The actual RAM sizes and addresses are given in Chapter 3.5.3.1 SRAM sizes:

pastedImage_3.png

About the vectors, the 0x400 space for vectors is the standard reserved size for Kinetis devices; the actual space used depends on the number of vectors as you implied. For your case with K02 the space required is 90 x 4 bytes = 360 = 0x168. There is an unused gap but it is not possible to place code from there because it would overlap with the Kinetis Flash Configuration Field space (from 0x0400 to 0x040F).


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
102 Views
pietrodicastri
Senior Contributor I

It is clear now.

Thank You

0 Kudos