Changing Linker.cmd to have additional flash section

Hi,

We wanted to add an additional flash section to the linker.cmd file located in the zephyr folder of the project folder. However, when we make changes to the memory section of it and try to rebuild the zephyr.elf file, we get notified that the project has been modified externally and if we would like to reload it before it can rebuild the zephyr.elf. Once it reloads, any changes we make to the linker.cmd file are reverted automatically. Here is a snapshot of the first few lines of our linker.cmd file:

 How would we be able to create a memory segment, FLASH_2, similarly to FLASH and have it stay in the linker.cmd file when rebuilding the zephyr.elf?

I have seen this thread on a similar issue: Segger linker script - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)
However, for some reason the Project -> Options list for me is different than what they see. I only see these options under the code section: 

I also don't have a flash_placement.xml in any of my project folders but I can find them in the sample project folders. I've also seen another thread talking about how defining another flash section in that file may be a solution but it doesn't seem like our project utilizes that.

Thanks,

Spencer

Related