Forum Discussion

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

DS-5 debug problem!

I use the ds-5 to debug ucosii on terasic DE-1 SOC.

I want to control the FPGA PIO and I add the altera API to do this.

But when I debug the program, commands window shows that “Target Message: Could not determine target state” and target consoles window shows that “ERROR 0 returned when checking ACK NCONT_STALL 1”

Could someone tell me what the problem is?

12 Replies

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

    I think the original project uocsii skips the process of loading the preloader,just like the “u-boot-spl.axf” in project hwlib, and runs on the on chip ram.

    I add the hwlib in ucos and exceed the on chip ram limit.

    So I use the ”debug-hosted.ds“ to load the “u-boot-spl.axf” to initial the SDRAM and other peripherals.but some errors come out when loading the ucosii.axf.

    is there any method to solve this problem?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Your region of memory "0x00100000" at first is good ("Loaded section .text: S:0x00100000 ~ S:0x0010E297 (size 0xE298)" is successful), and after "+start" bad image ("Entry point S:0x0010B298") is damage all.

    If you make image ucosii.axf with "Entry point S:0x00100000" or "Entry point S:0x00100040", then running will be ideal.

    If running was even from 0x0010B298 ("Running from entry point"), Preloader don't know about this.

    Use Disassembler window to stepping in asm-mode, load your bad "D:\my_experiment\hwlib\Micrium\Software\EvalBoards\Altera\Cyclone-V-Dev-Kit\GNU\Ex-1\ucosii.axf" with "loadfile" command after runned to main() Altera-s HWLIB example, as I describe long ago.

    If my words is incomprehensible, ask greater ! You must see start of normal application with "B" on begin and your ucosii.axf with function codes at start.

    Method will be in tuning linker scripts, I don't know there.

    Or ask UCOS site, may there is solutions.