Modify startup_MK22F51212.S in order to relocate the UHK firmware that links to the KSDK. This way, the UHK firmware works with KBOOT.

This commit is contained in:
László Monda
2017-01-21 00:59:27 +01:00
parent 69affcfe62
commit e522962619
2 changed files with 860 additions and 23 deletions

View File

@@ -286,32 +286,42 @@ __isr_vector:
.long DefaultISR /* 237*/ .long DefaultISR /* 237*/
.long DefaultISR /* 238*/ .long DefaultISR /* 238*/
.long DefaultISR /* 239*/ .long DefaultISR /* 239*/
.long DefaultISR /* 240*/
.long DefaultISR /* 241*/ // .long 0xFFFFFFFF /* Reserved for user TRIM value*/
.long DefaultISR /* 242*/
.long DefaultISR /* 243*/ /* SGF This is the actual BCA that is being loaded by the bootloader at reset time to check what to do.
.long DefaultISR /* 244*/ The key value is Direct boot, which we have enabled. So by default the BL will just jump to the
.long DefaultISR /* 245*/ user application unless some of the check conditions are not present. */
.long DefaultISR /* 246*/ //__bootloaderConfigurationArea ; 0x3c0
.long DefaultISR /* 247*/ // .long 'kcfg' // [00:03] tag - Tag value used to validate the bootloader configuration data. Must be set to 'kcfg'
.long DefaultISR /* 248*/ .long 0x6766636b /* Be aware of endianness SGF */
.long DefaultISR /* 249*/ .long 0xFFFFFFFF // [04:07] crcStartAddress
.long DefaultISR /* 250*/ .long 0xFFFFFFFF // [08:0b] crcByteCount
.long DefaultISR /* 251*/ .long 0xFFFFFFFF // [0c:0f] crcExpectedValue
.long DefaultISR /* 252*/ .byte 0x10 // [10:10] enabledPeripherals /* SGF Bit 4 corresponds to USB HID */
.long DefaultISR /* 253*/ .byte 0xFF // [11:11] i2cSlaveAddress
.long DefaultISR /* 254*/ .short 5000 // [12:13] peripheralDetectionTimeoutMs - Timeout in milliseconds for peripheral detection before jumping to application code
.long 0xFFFFFFFF /* Reserved for user TRIM value*/ .short 0xFFFF // [14:15] usbVid
.short 0xFFFF // [16:17] usbPid
.long 0xFFFFFFFF // [18:1b] usbStringsPointer
.byte 0x00 // [1c:1c] clockFlags - High Speed and other clock options /* SGF Set to 0 to enable 48 MHz CLK and USB HID */
.byte 0xFF // [1d:1d] clockDivider - One's complement of clock divider, zero divider is divide by 1
.byte 0xFE // [1e] SGF Direct boot in 1's complement. FE means direct boot enabled.
.byte 0xFF // [1f] reserved
// Fill to align with flash configuration field.
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF // Reserved for user TRIM value
.size __isr_vector, . - __isr_vector .size __isr_vector, . - __isr_vector
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFE
.text .text
.thumb .thumb

File diff suppressed because it is too large Load Diff