Horus bootloader (#5455)

Horus bootloader
This commit is contained in:
Raphael Coeffic
2017-12-19 12:13:59 +01:00
committed by Bertrand Songis
parent 908adb4d2b
commit 0d7832b208
54 changed files with 1772 additions and 1038 deletions
+1 -5
View File
@@ -67,6 +67,7 @@ set(GUI_SRC
set(FIRMWARE_TARGET_SRC
${FIRMWARE_TARGET_SRC}
../common/arm/loadboot.cpp
core_cm3.c
board_lowlevel.c
crt.c
@@ -109,11 +110,6 @@ set(TARGET_SRC
audio_driver.cpp
)
set(FIRMWARE_SRC
${FIRMWARE_SRC}
loadboot.cpp
)
set(SRC
${SRC}
debug.cpp
-9
View File
@@ -401,15 +401,6 @@ void i2cInit()
void boardInit()
{
// TODO this is not clean, completely unuseful, but prevents the bootloader from being optimized away...
uint8_t dummy[3];
memcpy(&dummy, BootCode, sizeof(dummy));
for (unsigned int i=0; i<sizeof(dummy); i++) {
if (dummy[i] == 0) {
__asm("nop");
}
}
Pio *pioptr ;
ResetReason = RSTC->RSTC_SR;
+6 -7
View File
@@ -71,15 +71,14 @@ SECTIONS
*/
.text :
{
FILL(0xFFFF)
CREATE_OBJECT_SYMBOLS
FILL(0xFFFF)
*(.bootrodata)
*(.bootrodata.*)
CREATE_OBJECT_SYMBOLS
KEEP(*(.bootloader)) /* Bootloader code */
. = ALIGN(32768); /* Align the start of the exidx part */
_stext = .; /* Provide the name for the start of this section */
. = ALIGN(32768); /* Align the start of the exidx part */
_stext = .; /* Provide the name for the start of this section */
KEEP(*(.vectors))
+4 -5
View File
@@ -71,15 +71,14 @@ SECTIONS
*/
.text :
{
FILL(0xFFFF)
FILL(0xFFFF)
CREATE_OBJECT_SYMBOLS
*(.bootrodata)
*(.bootrodata.*)
KEEP(*(.bootloader))
. = ALIGN(32768); /* Align the start of the exidx part */
_stext = .; /* Provide the name for the start of this section */
_stext = .; /* Provide the name for the start of this section */
KEEP(*(.vectors))
*(.text)