NXP, Linker scripts, and MCUxpresso extension for VS Code

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

NXP, Linker scripts, and MCUxpresso extension for VS Code

301 Views
litch
Contributor I

Edit: Currently hand editing the linker scripts and it works, but wondering if there isn't something "better" i should be doing.

I am trying to use the 256KB secondary SRAM region (m_data2 in the linker scripts) as my .bss segment

Normally, I'd just edit the linker scripts for my projects and go from there. That's what I do on my STM32 environments.

But before I go and start ripping up project files, are the contents of the ./armgcc folder under the project regenerated ever? (I doubt it, I just want to check my assumptions)

And also, if they are regenerated, or otherwise, is there a better way to use the secondary 256KB SDRAM region on my chip? By default it seems it's not mapped to any region in my code.

0 Kudos
Reply
1 Reply

214 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @litch 

Which chip you are using?

BR

Harry

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2383718%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENXP%2C%20Linker%20scripts%2C%20and%20MCUxpresso%20extension%20for%20VS%20Code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2383718%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEdit%3A%20Currently%20hand%20editing%20the%20linker%20scripts%20and%20it%20works%2C%20but%20wondering%20if%20there%20isn't%20something%20%22better%22%20i%20should%20be%20doing.%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20use%20the%20256KB%20secondary%20SRAM%20region%20(m_data2%20in%20the%20linker%20scripts)%20as%20my%20.bss%20segment%3C%2FP%3E%3CP%3ENormally%2C%20I'd%20just%20edit%20the%20linker%20scripts%20for%20my%20projects%20and%20go%20from%20there.%20That's%20what%20I%20do%20on%20my%20STM32%20environments.%3C%2FP%3E%3CP%3EBut%20before%20I%20go%20and%20start%20ripping%20up%20project%20files%2C%20are%20the%20contents%20of%20the%20.%2Farmgcc%20folder%20under%20the%20project%20regenerated%20ever%3F%20(I%20doubt%20it%2C%20I%20just%20want%20to%20check%20my%20assumptions)%3C%2FP%3E%3CP%3EAnd%20also%2C%20if%20they%20are%20regenerated%2C%20or%20otherwise%2C%20is%20there%20a%20better%20way%20to%20use%20the%20secondary%20256KB%20SDRAM%20region%20on%20my%20chip%3F%20By%20default%20it%20seems%20it's%20not%20mapped%20to%20any%20region%20in%20my%20code.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2384667%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%2C%20Linker%20scripts%2C%20and%20MCUxpresso%20extension%20for%20VS%20Code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2384667%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F263939%22%20target%3D%22_blank%22%3E%40litch%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhich%20chip%20you%20are%20using%3F%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E