Forum Discussion

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

can I trace and set break point using nios-console

I didn't buy the license from Fist Silicon SOlutions company. Can I set the break point? I tried but didn't succeed.

thx!

2 Replies

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

    I believe you cannot set hardware BP's but you can set up to 3 software BP's.

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

    Hi cloud,

    I didn't purchase the FSS license either, but I _can_ set hardware

    breakpoints. Make sure you selected the appropriate option in

    SOPC builder, then use:

    bkpt sethw <addr>

    E.g. a dump from a nios2-console session:

    System Analyzer for Nios® II Processor

    Serial number

    Version 1.9.0 build 9

    Copyright © 1998-2004 First Silicon Solutions, Inc.

    cd c:/work/PCI5441/u-boot

    1> halt

    User halt.

    00DEDE00 0xdf000115 stw fp, 4(sp)

    2> bkpt sethw 0

    {0x00000000 hw}

    3> go

    Emulation started.

    Hardware breakpoint.

    00000000 0x0001703a wrctl status, r0

    4> license

    nios-unlimited-swb invalid

    nios-unlimited-xbrk invalid

    nios-trigger invalid

    nios-instruction-trace invalid

    nios-data-trace invalid

    nios-pm-counter

    5>

    Regards,

    --Scott