eCos BSP

New ecos BSP was developed for improving configuration. The BSP is located in hw/edk_repository. The BSP helps you generate eCos configuration for your design. Together with mon_new_platfrom script, it brings up a powerful tool for adding new platforms to mONeCos distribution. If you experience any problems with the ecos BSP, please, report them to Michal Simek.

How to work with

  • run EDK
    • Windows: Start → Programs → Xilinx EDK → Xilinx Platform Studio
    • Linux: source your Xilinx tools (ISE and EDK) and run xps
[monstr@monstr ~]$ cd /opt/xilinx/ise92i/
[monstr@monstr ise92i]$ . settings.sh
[monstr@monstr ise92i]$ cd ../edk92i/
[monstr@monstr edk92i]$ . settings.sh
[monstr@monstr edk92i]$ xps
  • open your design and configure software setting Software → Software Platform Settings
    • choose OS & Library setting to latest ecos BSP
    • set the correct value of CORE_CLOCK_FREQ_HZ
      • this value is used for eCos timing setting
    • the following figure shows setting the BSP

Software platform settings

  • choose a proper name for your design – this name will be used in mONeCos
    • avoid using “/” character!

Software platform settings OS & Lib

* here is a corresponding block that was added in system.mss file

PARAMETER VERSION = 2.2.0

BEGIN OS
 PARAMETER OS_NAME = ecos
 PARAMETER OS_VER = 1.00.a
 PARAMETER PROC_INSTANCE = microblaze_0
 PARAMETER name = Spartan 3E1600
END
  • build your library
    • Software → Generate Libraries and BSPs
    • or alternatively from a shell you can call
make -f system.make libs
  • here is the interesting part of log, you can see calling eCos BSP
[monstr@monstr Xilinx-Spartan3E1600-RevA-edk92-opb-gpio]$ make -f system.make libs
*********************************************
Creating software libraries...
*********************************************
...
Running generate for OS'es, Drivers and Libraries ...
#--------------------------------------
# eCos BSP generate...
#--------------------------------------
Microblaze CPU
#--------------------------------------
# Standalone BSP generate...
#--------------------------------------
Calling standalone::generate
Copying Library Files ...
...
Running execs_generate for OS'es, Drivers and Libraries ...

LibGen Done.
  • if the configuration ends without any error you can continue to next step
  • please report any problems to Michal Simek

TIPS

To save your time, you can also use top BSP, which generates all BSPs for your eCos, Linux, U-Boot, http://developer.petalogix.com/PetaLinux and standalone applications. Reference design Xilinx-Spartan3E1600-RevA-xps-edk92 shows this feature. (PetaLinux BSP is not distributed with mONeCos)

BEGIN OS
 PARAMETER OS_NAME = top
 PARAMETER OS_VER = 1.00.b
 PARAMETER PROC_INSTANCE = microblaze_0
 PARAMETER name = Xilinx Spartan3e1600 xps edk92
 PARAMETER timer = xps_timer_1
 PARAMETER ethernet = Ethernet_MAC
 PARAMETER gpio = LEDs_6Bit
 PARAMETER lmb_memory = dlmb_cntlr
 PARAMETER flash_memory = FLASH
 PARAMETER main_memory = DDR_SDRAM
 PARAMETER stdin = RS232_DTE
 PARAMETER stdout = RS232_DTE
END 

License

The ecos BSP is written under restricted license. You are not allowed to change and distribute the BSP without permission from Michal Simek. You can use these files without any restriction.

Future work

  • in empty name called this platform with the name of folder where project is
ecos/bsp.txt · Last modified: 2020/09/01 10:59 by 127.0.0.1
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0