Changes between Version 4 and Version 5 of TBR/BSP/STM32F105


Ignore:
Timestamp:
Aug 17, 2014, 9:25:15 PM (6 years ago)
Author:
Jmfriedt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/STM32F105

    v4 v5  
    66
    77The STM32F105 BSP, based on the STM32F4 BSP, is compiled according to
    8 http://alanstechnotes.blogspot.fr/2013/03/setting-up-rtems-development.html.
     8http://alanstechnotes.blogspot.fr/2013/03/setting-up-rtems-development.html. We use the RTEMS toolchain
     9builder from source with
     10
     11  ../source-builder/sb-set-builder --log=build-log.txt --prefix=$HOME/enseignement/stm32/rtems/compiler/4.11 4.11/rtems-arm
    912
    1013Having compiled the toolchain, RTEMS is compiled for the STM32F105 BSP following
    11 http://s937484.blogspot.fr/2013/10/rtems-stm32f407-discovery-board-posted.html
     14http://s937484.blogspot.fr/2013/10/rtems-stm32f407-discovery-board-posted.html: RTEMS is compiled with
    1215
    13 We run the example on Qemu supporting the STM32 architecture as described at:
    14 https://github.com/beckus/qemu_stm32
     16  export PATH=$HOME/enseignement/stm32/rtems/compiler/4.11/bin:$PATH
     17  export TARGET="arm-rtems4.11"
     18  ./bootstrap
     19
     20in the RTEMS directory and then in the build directory:
     21
     22  ../rtems/configure --target=${TARGET} --enable-rtemsbsp=stm32f105rc --enable-tests=samples --prefix=$HOME/enseignement/stm32/rtems/rtems-4.11
     23  make
     24  make install
     25
     26We 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
    1527
    1628The trick is that, as indicated at ftp://ftp.rtems.eu/pub/rrr/RRR_Quick_Start_Guide_en.pdf, the
     
    2133the github cite and add both UART1 and UART3 by including
    2234
     35<source lang="C">
    2336    DeviceState *uart1 = DEVICE(object_resolve_path("/machine/stm32/uart[1]", NULL));
    2437    DeviceState *uart3 = DEVICE(object_resolve_path("/machine/stm32/uart[3]", NULL));
     
    2740    stm32_uart_connect((Stm32Uart *)uart1,serial_hds[0],STM32_USART1_NO_REMAP);
    2841    stm32_uart_connect((Stm32Uart *)uart3,serial_hds[2],STM32_USART3_NO_REMAP);
     42</source>
    2943
    3044having compiled Qemu with these updates, and RTEMS for the STM32F105 BSP, the example is loaded using