Forum Discussion

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

Problem while tring to download applications

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif

Hello everyone,I have some problem while tring to load applications to my board.

(1) I try to debug over serial using gdb.

(gdb) set remotebaud 115200

(gdb) target remote COM1

Remote debugging using COM1

Ignoring packet error, continuing...

Ignoring packet error, continuing...

Ignoring packet error, continuing...

Ignoring packet error, continuing...

Error: Couldn&#39;t establish connection to remote target

Malformed response to offset query, timeout

How should I solve this problem?

I have tried to debug over Ethernet and that works.

(2) I try to download applications to the board in the redboot enviroment and type in the following command.

RedBoot> load -r -m xmodem -b 0x01010000

CCCCCCCCCCCCCCCCCCCCCRaw file loaded 0x01010000-0x0100ffff, assumed entry at 0x0

1010000

xyzModem - CRC mode, 0(SOH)/0(STX)/0(CAN) packets, 20 retries

RedBoot> load -r -m ymodem -b 0x01010000

CCCCCCCCan&#39;t load &#39;<null>&#39;: Timed out

I use Windows Hyperterminal. Both xmodem and ymodem doesn&#39;t work. Even before I have time to select a file to send,

those &#39;C&#39; have already all come out and at a really high rate.

I have searched the Mailing list of eCos, and modified the HAL_DELAY_US() macro:

I change "#define HAL_DELAY_US(n) hal_delay_us(n)"

to "#define HAL_DELAY_US(n) hal_delay_us((n)*10)"

after that the &#39;C&#39; come out at a lower rate,and I have time to choose a file to send.But that still doesn&#39;t work. Can anyone tell me how to send a file by xmodem or ymodem? Thanks!

p.s. My dev board is Stratix Pro Edition.
No RepliesBe the first to reply