Memory configuration editor for VS Code and generate linker script

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Memory configuration editor for VS Code and generate linker script

749 次查看
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 项奖励
回复
1 回复

677 次查看
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 项奖励
回复