Memory configuration editor for VS Code and generate linker script

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

Memory configuration editor for VS Code and generate linker script

734 Views
Lumax
Contributor I

Hi Developers,

I am currently working on an project that started from MCUXpresso for VS Code.

But I couldn't find any documentation about how to change the memory region and generate linker script link in the CMake project, unlike the MCUXpresso IDE has built in tool to have managed linker script and auto generate .ld. 

Does anyone know are there any alternative ways to properly do that in VS Code project?

Thanks!

Lumax

0 Kudos
Reply
1 Reply

662 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Lumax 

In VS Code, when using CMake for an embedded project, managing the linker script and memory regions involves a bit of manual setup compared to MCUXpresso IDE's automated tools.

If you have a custom linker script (like .ld), you can tell CMake to use it. Add this to your CMakeLists.txt

BR

Harry

0 Kudos
Reply