Skip to content

Commit cbc2daa

Browse files
mbrossardmathias-arm
authored andcommitted
kinetis: Fix bin file generation regression
Changes in #959 created an issue for GCC builds of k26f_bl, kl26z_bl, and k20dx_bl in the generation of .bin file: ``` ../../../tools/post_build_script_gcc.py build/k26f_bl_crc Error - only 1 region allowed in hex file 2 found. Regions: 0: 0x00000000 - 0x000003bf 1: 0x00000400 - 0x0000ffff ```
1 parent 0004198 commit cbc2daa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

records/hic_hal/kl27z.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ common:
1010
- FLASH_SSD_CONFIG_ENABLE_FLEXNVM_SUPPORT=0
1111
- FLASH_DRIVER_IS_FLASH_RESIDENT=1
1212
- DAPLINK_NO_ASSERT_FILENAMES
13+
- BOOTLOADER_CONFIG
1314
- OS_CLOCK=48000000
1415
includes:
1516
- source/hic_hal/freescale/kl27z

source/hic_hal/freescale/kinetis.ld

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : DAPLINK_STACK_SIZE;
3434
MEMORY
3535
{
3636
#if defined(DAPLINK_BL)
37+
#if defined(BOOTLOADER_CONFIG)
3738
m_interrupts (RX) : ORIGIN = DAPLINK_ROM_APP_START, LENGTH = 0x3C0
3839
m_bootloader_config (RX) : ORIGIN = DAPLINK_ROM_APP_START + 0x3C0, LENGTH = 0x40
40+
#else
41+
m_interrupts (RX) : ORIGIN = DAPLINK_ROM_APP_START, LENGTH = 0x400
42+
#endif
3943
m_flash_config (RX) : ORIGIN = DAPLINK_ROM_APP_START + 0x400, LENGTH = 0x10
4044
m_text (RX) : ORIGIN = DAPLINK_ROM_APP_START + 0x410, LENGTH = DAPLINK_ROM_APP_SIZE - 0x410
4145
#else
@@ -61,12 +65,14 @@ SECTIONS
6165
} > m_interrupts
6266

6367
#if defined(DAPLINK_BL)
68+
#if defined(BOOTLOADER_CONFIG)
6469
.bootloader_config :
6570
{
6671
. = ALIGN(4);
6772
KEEP(*(.BootloaderConfig)) /* Bootloader Configuration Area (BCA) */
6873
. = ALIGN(4);
6974
} > m_bootloader_config
75+
#endif
7076

7177
.flash_config :
7278
{
@@ -245,4 +251,3 @@ SECTIONS
245251

246252
ASSERT(__StackLimit >= __HeapLimit, "region overflowed with stack and heap")
247253
}
248-

0 commit comments

Comments
 (0)