diff options
author | Uwe Kleine-König <uwe@kleine-koenig.org> | 2013-06-27 22:47:11 +0200 |
---|---|---|
committer | Uwe Kleine-König <uwe@kleine-koenig.org> | 2013-06-27 22:47:11 +0200 |
commit | 9c20f9e2ed9479ab04dccbdbb9be42161398114a (patch) | |
tree | 16210b3c9a55bc5246c6088d2a319cf2ae013dc9 | |
parent | 8ed96aa1c250ffe87fe01ad5315762dcfbcfa892 (diff) | |
download | OSELAS.BSP-EnergyMicro-Gecko-9c20f9e2ed9479ab04dccbdbb9be42161398114a.tar.gz OSELAS.BSP-EnergyMicro-Gecko-9c20f9e2ed9479ab04dccbdbb9be42161398114a.tar.xz |
OSELAS.BSP-EnergyMicro-Gecko: geckoboot: assert 'k' makes it to the UART
-rw-r--r-- | local_src/geckoboot-2013.01.0/geckoboot.S | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/local_src/geckoboot-2013.01.0/geckoboot.S b/local_src/geckoboot-2013.01.0/geckoboot.S index 7ae6ae0..1cfe3e3 100644 --- a/local_src/geckoboot-2013.01.0/geckoboot.S +++ b/local_src/geckoboot-2013.01.0/geckoboot.S @@ -85,9 +85,13 @@ wait_boot_linux: tst r1, #2 bne 1b #else - ldr r0, =(UARTBASE + 0x34) + ldr r0, =(UARTBASE) mov r1, #'c' - str r1, [r0] + str r1, [r0, 0x34] + @ wait for STATUS.TXBL being set, otherwise the 'k' might not appear +1: ldr r1, [r0, 0x10] + tst r1, #0x40 + beq 1b #endif boot_linux: |