I'm using nRF52 + SDK11.0.0 + s132 and following this tutorial and this blog to make a Managed Make project using the ble_hrs esample.
As I was going through the directory structure, I noticed that ble_app_hrs_gcc_nrf52.ld in the Eclipse project directory is exactly the same as armgcc_s132_nrf52832_xxaa.ld (located in the components\softdevice\s132\toolchain\armgcc subdirectory) but armgcc_s132_nrf52832_xxaa.ld is not being used. Why are there essentially two copies of this file?
Also, I am trying to match up the Managed Makefile flags with the Standard (tutorial's) Makefile flags and would like clarifications on:
-
--gc-sections is optional in the Standard build:
Standard: -Wl,--gc-sections vs Managed: --gc-sections
. Is this an issue? -
-Map is optional in the Managed build:
Standard: -Map=nrf52.map vs Managed: -Wl,-Map,"nrf52.map"
. Is this an issue? -
not linking
libc
andlibnosys
does not cause errors in the Managed Build. Are these necessary?