The check on the BL size was wrong as it didn't take care of the

_bootStart() function size
This commit is contained in:
bsongis
2014-07-01 15:59:45 +02:00
parent 74f4f99280
commit 9333f3778f
3 changed files with 5 additions and 5 deletions
-1
View File
@@ -1149,7 +1149,6 @@ endif
# build bootloader # build bootloader
ifeq ($(PCB), TARANIS) ifeq ($(PCB), TARANIS)
bootloader.lbm: bootloader/bootloader_ramBoot.bin bootloader.lbm: bootloader/bootloader_ramBoot.bin
test -z "$$(find $^ -size +32k)"
$(BIN2LBM) $^ $@ $(BIN2LBM) $^ $@
.PHONY bootloader/bootloader_ramBoot.bin: .PHONY bootloader/bootloader_ramBoot.bin:
+3 -2
View File
@@ -71,8 +71,9 @@ void _bootStart(void);
#if defined(PCBTARANIS) #if defined(PCBTARANIS)
__attribute__ ((section(".isr_boot_vector"), used)) __attribute__ ((section(".isr_boot_vector"), used))
const uint32_t BootVectors[] = { (uint32_t) &_estack, const uint32_t BootVectors[] = {
(uint32_t) (void (*)(void)) ((unsigned long) &_bootStart) }; (uint32_t) &_estack,
(uint32_t) (void (*)(void)) ((unsigned long) &_bootStart) };
#endif #endif
#if defined(PCBTARANIS) #if defined(PCBTARANIS)
+2 -2
View File
@@ -15,7 +15,7 @@
** **
** Environment : Atollic TrueSTUDIO(R) ** Environment : Atollic TrueSTUDIO(R)
** **
** Distribution: The file is distributed “as is,” without any warranty ** Distribution: The file is distributed �as is,� without any warranty
** of any kind. ** of any kind.
** **
** (c)Copyright Atollic AB. ** (c)Copyright Atollic AB.
@@ -63,7 +63,7 @@ SECTIONS
*(.bootrodata) *(.bootrodata)
*(.bootrodata.*) *(.bootrodata.*)
. = ALIGN(32768); /* Align the start of the main program */ . = 32768; /* Set the start of the main program */
_stext = .; /* Provide the name for the start of this section */ _stext = .; /* Provide the name for the start of this section */
. = ALIGN(4); . = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */ KEEP(*(.isr_vector)) /* Startup code */