Changes between Version 7 and Version 8 of TBR/BSP/STM32F105


Ignore:
Timestamp:
Aug 17, 2014, 11:47:29 PM (5 years ago)
Author:
Jmfriedt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/STM32F105

    v7 v8  
    3131solution is easiest, the latter most useful for practical applications on real board which might use other
    3232UARTs than UART3. For modifying Qemu, edit hw/arm/stm32_p103.c in the Qemu source tree downloaded from
    33 the github cite and add both UART1 and UART3 by including
     33the github site and add both UART1 and UART3 by including
    3434
    3535    DeviceState *uart1 = DEVICE(object_resolve_path("/machine/stm32/uart[1]", NULL));
     
    4444    qemu-system-arm -M stm32-p103 -serial stdio -serial stdio -serial stdio -kernel hello.bin
    4545
    46 (three times -serial stdio to indicate that all three UARTs outputs are displayed on stdout). The result is
     46(three times -serial stdio to indicate that all three UART outputs are displayed on stdout). The result is
    4747    VNC server running on `::1:5900'
    4848    LED Off
     
    5151    *** END OF TEST HELLO WORLD ***
    5252
    53 For modifying the default UART used by the console, either edit in the RTEMS BSP the rtems/c/src/lib/libbsp/arm/stm32f4/configure.ac file and modify RTEMS_BSPOPTS_SET([STM32F4_ENABLE_USART_3],[*],[1]) by disabling
    54 UART3 (remove [1] and replace with []) and activating UART1 (replace [] with [1]). Alternatively, before
     53For modifying the default UART used by the console, either edit the RTEMS BSP defined in the rtems/c/src/lib/libbsp/arm/stm32f4/configure.ac file and modify RTEMS_BSPOPTS_SET([STM32F4_ENABLE_USART_3],[*],[1]) for disabling UART3 (remove [1] and replace with []) and activating UART1 (replace [] with [1]). Alternatively, before
    5554the configuration step, export variables STM32F4_ENABLE_USART_3="" and STM32F4_ENABLE_USART_1="1" for the same
    5655effect.
     56
     57Notice that at the moment, the STM32 support for QEmu does not include (yet) the A/D converters: requesting a sample with a loop testing the conversion completion will hang since the conversion never occurs.