2 Replies Latest reply on Jun 23, 2018 8:12 PM by MikeMitchell

    BLE Bootloadable example won't build -  `.text' is not within region `rom'

    MikeMitchell

      I'm just trying to port the examples to PsocCreator 4.,2 and CYBLE-224110-00.

       

      building bootloader is fine, but bootloadable will not link.

       

      ERROR: address 0x241a0 of ...\ARM_GCC_541\Debug\BLE_OTA_FixedStack_Bootloadable01.elf section `.text' is not within region `rom'

      ERROR: ...\ARM_GCC_541\Debug\BLE_OTA_FixedStack_Bootloadable01.elf section `.eh_frame' will not fit in region `rom'

      ERROR: address 0x241a0 of ..\ARM_GCC_541\Debug\BLE_OTA_FixedStack_Bootloadable01.elf section `.text' is not within region `rom'

      ERROR: address 0x241a0 of ...\ARM_GCC_541\Debug\BLE_OTA_FixedStack_Bootloadable01.elf section `.text' is not within region `rom'

      ERROR: section .cyloadablemeta loaded at [0001ffc0,0001ffff] overlaps section .cybootloader loaded at [00000000,0001ffff]

      ERROR: region `rom' overflowed by 0 bytes

      collect2.exe: error: ld returned 1 exit status

      The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.

       

      Bootloader size is  (38.4%), so I don't think I've overflowed.

       

      I can't seem to find a memory map for the device, but don't see why the linker would make this mistake.

       

      Workspace is attached.  Thanks.