Update linker scripts based on latest PDL 1.3 #11354
This depends on PDL update (#11326 ) and BSP restructure (#11323 ). The PR branch is based off of the branch for #11323 because the diff does not apply cleanly to master. The unique commit is
Pull request type
I'm testing out the linker changes. Specifically testing a pre-built bootloader and pelion client example application for CY8CPROTO_062_4343W with GCC_ARM compiler. I'm testing off of 5.13.x with just this linker update made. (My mbed_app.json sets mbed_rom_start to 0x10000000. This would be better to be located in targets.json.)
With the linker changes applied, I get the following error.
This is because the pre-built bootloader file fills the area 0x10000000 - 0x1000C000. It already has the CM0+ area in it. But now the application is being built with the CM0+ in it.
So, are you proposing that when building the bootloader project, it does not include the CM0+ area? This is very possible, but I'm not sure your proposed changes provide a clear method for handling this situation.
After additional testing, I think the linker changes are okay.
After adding this to mbed_app.json for an application project, it successfully combines with a pre-built bootloader (which already has the CM0+ area added).
maclobdell left a comment •
More additional settings might be required to enable bootloader support, but for now the linker changes look good.
Please document this on the board platform page.