6 Replies Latest reply on Sep 1, 2018 12:18 AM by felec_3429856

    region 'flash_app1_core0' overflowed by 1376 bytes when converting a project to a bootloadable project

      I am following the CE216767 BLE bootloadable project example to convert my project ble project to a BLE bootloadable one. I keep getting an error message during generation of the bootloadable file (.cyacd):

       

      ERROR: C:\Users\FelixLe\Documents\PSoC Creator\Design0592_1\Design0592.cydsn\CortexM0p\ARM_GCC_541\Debug\Design0592_link.elf section `i.betacyRetentionInit' will not fit in region `flash_app1_core0'

      ERROR: region `flash_app1_core0' overflowed by 1376 bytes

       

      I understand what the issue is (I think) but I'm not sure how to increase the size of my flash_app1_core0. I have tried increasing the size in the bootload_common.ld file from:

          flash_app0_core0  (rx)  : ORIGIN = 0x10000000, LENGTH = 0x10000

          flash_app0_core1  (rx)  : ORIGIN = 0x10010000, LENGTH = 0x30000

          flash_app1_core0  (rx)  : ORIGIN = 0x10040000, LENGTH = 0x32000

          flash_app1_core1  (rx)  : ORIGIN = 0x10072000, LENGTH = 0x02000

      to

          flash_app0_core0  (rx)  : ORIGIN = 0x10000000, LENGTH = 0x10000

          flash_app0_core1  (rx)  : ORIGIN = 0x10010000, LENGTH = 0x33000

          flash_app1_core0  (rx)  : ORIGIN = 0x10043000, LENGTH = 0x35000

          flash_app1_core1  (rx)  : ORIGIN = 0x10078000, LENGTH = 0x02000

       

      However no changes I make in this file affect anything and I still get the same error message. I even tried breaking the code in the bootload_common.ld but it still builds just fine and gives me the exact same error. Can someone help me figure out how to increase the size of the flash region for my app1 on core 0. I am fairly sure that I only need to increase the flash region b/c I managed to convert a very simple led project (it didn't have BLE) to a ble bootloadable one. I have attached my project files below. Thank you for your time!