Forum: FPGA, VHDL & Co. _sw.tcl Script & DE2 & I2C & Nios BSP Editor Problem


von No Y. (noy)


Angehängte Dateien:

Lesenswert?

Hallo Forum,
wie in der Überschrift bereits zu erahnen habe ich ein kleines Problem 
mit meinem DE2 Board und dem I2C Core von Opencores bzw. genauer gesagt 
von hier: http://www.alterawiki.com/wiki/I2C_%28OpenCores%29

Mein Nios läuft soweit anscheinend (_hw.tcl als neue Komponente in Qsys 
hinzugefügt, dann Nios zusammengelickt, Top Level geschrieben und 
geflasht);
allerdings bekomme ich den Software Teil nicht zum laufen.

Wenn ich nun für meinen Nios das BSP mit dem Editor (erst neues Projekt 
über Template erstellen) zusammenstelle bekomme ich einfach nicht das 
zum I2C Core passende _sw.tcl eingefügt.
Ich gehe dabei wie folgt vor:

1. Bild 1 (Mein Nios)
1. Bild 2 (BSP erstellen)
2. Bild 3 (Diese Fehlermeldung kommt!)
3. So sieht meine _sw.tcl aus (Die Namen wurden entsprechend des Altera 
Wikis in i2c_opencores umbenannt):


#
# opencores_i2c_sw.tcl
#

# Create a new driver
create_driver i2c_opencores_driver

# Associate it with some hardware known as "opencores_i2c"
set_sw_property hw_class_name i2c_copencores

# The version of this driver
set_sw_property version 13.0

# This driver may be incompatible with versions of hardware less
# than specified below. Updates to hardware and device drivers
# rendering the driver incompatible with older versions of
# hardware are noted with this property assignment.
#
# Multiple-Version compatibility was introduced in version 7.1;
# prior versions are therefore excluded.
set_sw_property min_compatible_hw_version 7.1

# Initialize the driver in alt_sys_init()
set_sw_property auto_initialize true

# Location in generated BSP that above sources will be copied into
set_sw_property bsp_subdirectory drivers


# Interrupt properties:
# This peripheral has an IRQ output but the driver doesn't currently
# have any interrupt service routine. To ensure that the BSP tools
# do not otherwise limit the BSP functionality for users of the
# Nios II enhanced interrupt port, these settings advertise
# compliance with both legacy and enhanced interrupt APIs, and to state
# that any driver ISR supports preemption. If an interrupt handler
# is added to this driver, these must be re-examined for validity.
set_sw_property isr_preemption_supported true
set_sw_property supported_interrupt_apis "legacy_interrupt_api 
enhanced_interrupt_api"

#
# Source file listings...
#

# C/C++ source files
add_sw_property c_source HAL/src/i2c_opencores.c

# Include files
add_sw_property include_source HAL/inc/i2c_opencores.h
add_sw_property include_source inc/i2c_opencores_regs.h

# This driver supports HAL & UCOSII BSP (OS) types
add_sw_property supported_bsp_type HAL
add_sw_property supported_bsp_type UCOSII

# End of file



Wo liegt der Fehler?
Oder, wie bekomme ich sonst die Treiber usw. hinzugefügt, vll. alle 
einzeln, wenn ja wie?

von No Y. (noy)


Lesenswert?

Hat sich erledigt, das Modul war nicht richtig eingebunden.

von fdu (Gast)


Lesenswert?

Moin,
ich steh gerade vor dem gleichen Problem. Core in Qsys eingebunden und 
Synthetisiert. Im BSP Editor ist i2c_opencores auch unter "Drivers" 
gelistet, es gibt allerdings kein Checkbox zum enablen. Wie bist du 
vorgegangen um das Problem zu lösen?
Gruß und Dank
Felix

von fdu (Gast)


Lesenswert?

Hat sich bei mir jetzt auch erledigt. Laut alteraforum müssen auch die 
Versionsnummern von _hw.tcl und _sw.tcl übereinstimmen.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.