cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

RoCa_1222471
New Contributor II

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

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

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