Changes between Version 12 and Version 13 of TBR/BSP/STM32F105


Ignore:
Timestamp:
Feb 14, 2015, 6:40:48 PM (4 years ago)
Author:
JM Friedt
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/STM32F105

    v12 v13  
    99builder from source with
    1010
     11{{{
    1112  ../source-builder/sb-set-builder --log=build-log.txt --prefix=$HOME/prefix/compiler/4.11 4.11/rtems-arm
     13}}}
    1214
    1315Having compiled the toolchain, RTEMS is compiled for the STM32F105 BSP following
    1416http://s937484.blogspot.fr/2013/10/rtems-stm32f407-discovery-board-posted.html: RTEMS is compiled with
    1517
     18{{{
    1619  export PATH=$HOME/prefix/compiler/4.11/bin:$PATH
    1720  export TARGET="arm-rtems4.11"
    1821  ./bootstrap
     22}}}
    1923
    2024in the RTEMS directory and then in the build directory:
    2125
     26{{{
    2227  ../rtems/configure --target=${TARGET} --enable-rtemsbsp=stm32f105rc --enable-tests=samples --prefix=$HOME/prefix/rtems-4.11
    2328  make
    2429  make install
     30}}}
    2531
    2632We run the example from the testsuit c/stm32f105rc/testsuites/samples/hello on Qemu supporting the STM32 architecture as described at: https://github.com/beckus/qemu_stm32
     
    4753Having compiled Qemu with these updates, and RTEMS for the STM32F105 BSP, the example is loaded using
    4854
     55{{{
    4956    qemu-system-arm -M stm32-p103 -serial stdio -serial stdio -serial stdio -kernel hello.bin
     57}}}
    5058
    5159(three times -serial stdio to indicate that all three UART outputs are displayed on stdout). The result is
     60{{{
    5261    VNC server running on `::1:5900'
    5362    LED Off
     
    5564    Hello World
    5665    *** END OF TEST HELLO WORLD ***
     66}}}
    5767
    58 For 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
    59 the configuration step, export variables STM32F4_ENABLE_USART_3="" and STM32F4_ENABLE_USART_1="1" for the same
     68For 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
     69the configuration step, export variables {{{STM32F4_ENABLE_USART_3=""}}} and {{{STM32F4_ENABLE_USART_1="1"}}} for the same
    6070effect. Following this modification, the hello.exe example was run successfuly on a STM32F103RCT microcontroller.
    6171