Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

nios2configtool not able to read target ptf

When running nios2configtool with the demo ptf file everything works

nios2configtool --ptf=../../examples/demo_2c35/sopc_system.ptf --cpu=cpu

When running nios2configtool with the target ptf file like so (cpu called cpu_0):

nios2configtool --ptf=/path_to_ptf/St_cpu.ptf --cpu=cpu_0

it says:

Error loading the default hardware template 'nios2_dev_board':

Package CYGPKG_HAL_NIOS2, 1 error occurred while reading the CDL data.

I would really like to know what the error is that occurred. How do I find out? Can I look in a log-file somewhere?

Update:

I find that if I edit the file "hal_nios2.cdl" so that the section "cdl_component CYGHWR_MEMORY_LAYOUT" is commented out, the nios2configtool starts the GUI. So I am guessing the error has something to do with the memory layout. Our target contains DDR SDRAM that is not connected to the NIOS. Could this be an issue?

Cheers

Aksel

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by aksel@Nov 30 2006, 11:17 PM

    when running nios2configtool with the demo ptf file everything works

    nios2configtool --ptf=../../examples/demo_2c35/sopc_system.ptf --cpu=cpu

    when running nios2configtool with the target ptf file like so (cpu called cpu_0):

    nios2configtool --ptf=/path_to_ptf/st_cpu.ptf --cpu=cpu_0

    it says:

    error loading the default hardware template 'nios2_dev_board':

    package cygpkg_hal_nios2, 1 error occurred while reading the cdl data.

    i would really like to know what the error is that occurred. how do i find out? can i look in a log-file somewhere?

    update:

    i find that if i edit the file "hal_nios2.cdl" so that the section "cdl_component cyghwr_memory_layout" is commented out, the nios2configtool starts the gui. so i am guessing the error has something to do with the memory layout. our target contains ddr sdram that is not connected to the nios. could this be an issue?

    cheers

    aksel

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19713)

    --- quote end ---

    --- Quote End ---

    I have same problem. Does anyone know why?