Section dimension

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RoCa_1222471
Level 2
Level 2
First like received Welcome!

I defined a Flash section in the scatter file (.ld) of my project:

   RomTrim (rx) : ORIGIN = 0x0003f800, LENGTH = 512

    .TrimClock : ALIGN (4)

    {

        KEEP(*(.TrimClock))

    } >RomTrim

There's a predefined macro to calculate the number of bytes contained into a FLASH section?

Thank you

0 Likes
1 Solution
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

You can refer to <project>.map file produced by the linker. It contains informations on how the device's memory was used, where functions and variables were placed and other details. You can refer to this file to confirm memory section size and observe memory section overlap, if any.  The steps to place arrays or functions in custom memory region is elaborated in section: 9.2 Placement Procedure of PSoC Arm Cortex Code Optimization Application Note.

View solution in original post

0 Likes
1 Reply
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

You can refer to <project>.map file produced by the linker. It contains informations on how the device's memory was used, where functions and variables were placed and other details. You can refer to this file to confirm memory section size and observe memory section overlap, if any.  The steps to place arrays or functions in custom memory region is elaborated in section: 9.2 Placement Procedure of PSoC Arm Cortex Code Optimization Application Note.

0 Likes