To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 8397
8396  |  8398
Subject: 
Re: download .s19 problem
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 29 May 2001 03:34:14 GMT
Viewed: 
1539 times
  
the target of your code is probably the zero page of RAM, where the
downloader bootstrap routine lives.

so as your code is being downloaded, you're over-writing the
hc11-ram-based dl comms code and the host side ultimately fails.

fred


On Monday, May 28, 2001, at 05:06 PM, Kai Schlamp wrote:

Hy!

I have problems downloading a self compiled file to my Handyboard (with
68HC11A1).
I just wrote a little test programm:

int main()
{
  int foo = 0;

  while (foo < 1000)
  {
    foo++;
  }
  return(0);
}

and compiled it to a .s19 file with the gnu gcc 68hc11 cross compiler
under linux:
m6811-elf-gcc -o tst.s19 -Wl,--oformat=srec tst.c

Then i tried to download that file to my bootstrap switched handyboard
with two different downloaders:

a) dl

$> dl tst.s19
6811 .s19 file downloader.  Version 7.31  May 21 2001
        Copyright Randy Sargent 1994
Using port /dev/ttyS0

Please place board in download mode and press RETURN
To quit, press Q
For help, press H
Downloading 256 byte bootstrap (229 data)
................................................................
................................................................
................................................................
.....................................___________________________
Download successful
Config is 0x0C
Loading tst.s19

Sending tst.s19
Fatal internal error:
Unrecognized .s19 record: S0
Speicherzugriffsfehler

b) dlm

$> dlm -p /dev/ttyS0 tst.s19
DLM:  6811 File downloader with Intelligent EEPROM burn by Ken Hornstein
Based on original DLM program by Fred Martin
Adapted by Matthew Stock
Downloading eeprom loader to RAM at 1200 baud ... +
Synchronizing with board ...ok
Sending tst.s19 to RAM at 9600 baud ... |Board memory error: wanted
0x00, got 0x3e at address 0x0000
|Board synchronization error.

As you can see both downloader failed to download the little program.
But dl is able to download the pcode file of free-ic (dlm also does not
work here; i get the same Board memory errors -but many many more- as
with my program).
The strange thing is, that if i change the original first line of the
tst.s19 file, which is
S00A00007473742E7331398F
to
S10A00007473742E7331398F
the downloader dl downloads this file correct.

Can someone tell me why all .s19 files compiled with the gcc cross
compiler start with S0, but the downloader dl just accept S1 ? And how
do i get the dlm to work? Why do i get these Board Memory Errors with
every .s19 file i tried to download?

greetings
Kai




Message is in Reply To:
  download .s19 problem
 
Hy! I have problems downloading a self compiled file to my Handyboard (with 68HC11A1). I just wrote a little test programm: int main() { int foo = 0; while (foo < 1000) { foo++; } return(0); } and compiled it to a .s19 file with the gnu gcc 68hc11 (...) (23 years ago, 28-May-01, to lugnet.robotics.handyboard)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR