LPC54628 moving functions into board flash

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

LPC54628 moving functions into board flash

Jump to solution
1,115 Views
mateuszkiełbasa
Contributor III

I would like to move some functions into BOARD_FLASH region because internal flash has too small capacity. I know tat including "cr_section_macros.h" file and __TEXT() macro works but it's tiring when for example 100 functions should be decorated this way. I any way to for example move all functions from directory into specified region of flash? I searched tutorials and I found how to place it in SDRAM but it requires own linker script. Is any simple way to do that?

Labels (1)
0 Kudos
Reply
1 Solution
1,005 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Mateuz,

This is possible to do, please check the link bellow:

https://community.nxp.com/thread/389110

Best Regards,

Alexis Andalon

View solution in original post

3 Replies
1,006 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Mateuz,

This is possible to do, please check the link bellow:

https://community.nxp.com/thread/389110

Best Regards,

Alexis Andalon

1,005 Views
mateuszkiełbasa
Contributor III

Hi,

Thanks for your answer. Your solution works fine but I am wondering about one thing. Is it possible to move static library (like emWin which is provided with header files and .a file). In this case the compiler doesn't make .o file for emWin and I don't know how to do that.

Best regards!

0 Kudos
Reply
1,005 Views
mateuszkiełbasa
Contributor III

Using archive:file section did the job.

0 Kudos
Reply