Forum Discussion

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

Error when building hello_world in Nios IDE

I've never experienced this error before, but somehow it came up and it won't go away - regardless of what project I'm trying to build. This is on the hello_world project for the "standard" configuration of the Cyclone 1C20 dev kit. Any ideas?

**** Incremental build of configuration Debug for project hello_world ****
make -s all 
Creating generated.x...
Jan 23, 2006 7:14:01 PM - (SEVERE) generate: java.lang.IllegalStateException: java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "N/A"
make: ***  Error 1
make: ***  Error 2
Build completed

Thanks!

5 Replies

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

    I've determined that it doesn't happen with a fresh copy of a kit example.

    I added some custom logic to a kit example, regenerated in SOPC and recompiled in Quartus, and used that .ptf file as the target hardware. Then I get the error.

    Unfortunately, I have no idea what's going on here past that.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ok, getting a little closer to an answer.

    It appears the generated.x file contains the memory map for my system. I am intentionally leaving a section of "unused" memory in my system (it will be used by custom logic, a DMA reads from that section of memory and I don't want it to get overwritten). I can't see the file it's trying to parse since it doesn't finish creating it, but I'm assuming somebody made it output "N/A" if the memory isn't used, and then that "N/A" gets read as if it were a number, which throws this exception.

    Therefore, how do I create areas of unused memory without having this happen?

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

    Even closer now:

    If I take the kit design and add in some unused memory without my custom logic, it works fine. If I put my custom logic in, it doesn't.

    However, the system generates and compiles.. I only get the error in the IDE.

    The said DMA reads from the first 0x100000 addresses of SDRAM and writes to some small on-chip cache, which is in turn read by custom logic...

    So now I really don't understand why I'm getting the error.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ok, I figured it out.

    My custom logic was interfacing with the CPU via a slave port, and it didn't handle addresses properly.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by rhaikh@Jan 24 2006, 05:01 PM

    ok, i figured it out.

    my custom logic was interfacing with the cpu via a slave port, and it didn't handle addresses properly.

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

    --- quote end ---

    --- Quote End ---

    I&#39;ve just met a problem like this, could you tell me how did you solve this problem?

    Thanks.