This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nfc_t2t_lib_gcc.a exports .stack and .heap sections

Hi,

Migration to nRF5_SDK_12.0.0_12f24da has broken build of some our projects at link stage (region RAM overflowed with stack). During investigation I found that nfc_t2t_lib_gcc.a exports .stack and .heap sections, 8192 bytes each, when for my understanding it should not /* :) */.

The library also exports ResetVector, SystemInit and other startup-related functions. It is not clear if the library's version of SystemInit contains something important in addition to the one from nrf/components/toolchain/system_nrf52.c

With best regards,

Dmitry

Parents
  • A quick pass through a disassembler says, no, those look like the standard system_nrf52 and startup files and it's pretty unusual to have stack and heap sections in static libraries. The startup is definitely the same, the system_nrf52 one could have an extra errata test, but I didn't think so.

    You might want to extract the one object file from the archive

    ar x  nfc_t2t_lib_gcc.a nfc_t2t_lib_nfc_lib.c.o
    

    using an armgcc version of ar, and link with that - see if it works any better.

Reply
  • A quick pass through a disassembler says, no, those look like the standard system_nrf52 and startup files and it's pretty unusual to have stack and heap sections in static libraries. The startup is definitely the same, the system_nrf52 one could have an extra errata test, but I didn't think so.

    You might want to extract the one object file from the archive

    ar x  nfc_t2t_lib_gcc.a nfc_t2t_lib_nfc_lib.c.o
    

    using an armgcc version of ar, and link with that - see if it works any better.

Children
No Data
Related