[riot-notifications] [RIOT-OS/RIOT] cpu: Moved stdio_init() prior to periph_init() for ARM targets (#11367)

Marian Buschsieweke notifications at github.com
Wed Apr 10 11:32:13 CEST 2019


### Contribution description
In current RIOT master `stdio_init()` is called via newlib's `_init()`, which is way to late during boot up to allow `DEBUG()`ing during `periph_init()`. This PR moves `stdio_init()` into `cpu_init()` just before `periph_init()` is called.

### Testing procedure
Flash and run `examples/default` and interact with the shell. Input and output should still work as expected.

Boards using these CPUs:
- [ ] `cc2538`
- [ ] `cc26x0`
- [ ] `efm32`
- [ ] `ezr32wg`
- [ ] `lm4f120`
- [ ] `lpc1768`
- [ ] `nrf51`
- [ ] `nrf52` (@maribu tested with `nrf42840dk`)
- [ ] `sam3`
- [ ] `samd21`
- [ ] `saml1x`
- [ ] STM32-F1*
- [ ] STM32-F2*
- [ ] STM32-F3*
- [ ] STM32-F4*
- [x] STM32-F7* (@maribu tested with `nucleo-f767zi`)
- [ ] STM32-L0*
- [ ] STM32-L1*
- [ ] STM32-L4*

Boards with custom/weird boot up sequence:
- [x] Board `msba2' (@maribu)

### Issues/PRs references
Spun out of / partly replaces https://github.com/RIOT-OS/RIOT/pull/10806
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11367

-- Commit Summary --

  * cpu: Moved stdio_init() into cpu_init()
  * board/msba2: Added stdio_init()

-- File Changes --

    M boards/msba2/board_init.c (6)
    M cpu/cc2538/cpu.c (3)
    M cpu/cc26x0/cpu.c (4)
    M cpu/efm32/cpu.c (4)
    M cpu/ezr32wg/cpu.c (3)
    M cpu/lm4f120/cpu.c (4)
    M cpu/lpc1768/cpu.c (3)
    M cpu/nrf51/cpu.c (3)
    M cpu/nrf52/cpu.c (4)
    M cpu/sam3/cpu.c (4)
    M cpu/samd21/cpu.c (3)
    M cpu/saml1x/cpu.c (4)
    M cpu/stm32_common/cpu_init.c (3)
    M sys/newlib_syscalls_default/syscalls.c (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11367.patch
https://github.com/RIOT-OS/RIOT/pull/11367.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190410/07a273b5/attachment.html>


More information about the notifications mailing list