6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed Oct 02, 2024 3:29 pm

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Feb 17, 2016 8:54 pm 
Offline

Joined: Thu Mar 03, 2011 5:56 pm
Posts: 284
BigDumbDinosaur wrote:
rwiker wrote:
BigDumbDinosaur wrote:
Ahem...the S-record (aka S19) standard includes 24 and 32 bit addressing. The S19 moniker has to do with the 9 possible records types recognized. It's up to the programmer to decide which ones to use. :)


According to wikipedia, S19 is one possible combination of SRecord records. S19 specifically uses 16-bit addresses, while S28 uses 24-bit addresses (and S37, 32-bit addresses). So, S19 is a subset of the SRecord format, and supports only 16-bit addresses.

https://en.wikipedia.org/wiki/SREC_%28file_format%29#Record_types

Wikipedia's S-record article is in error—S19, S28 and S37 are made-up terms that have never been used by Motorola in any of their documentation. For the definitive description of the S-record format (and terms) please refer to Appendix C (page 640) of the attached manual, which is an official Motorola publication.

Incidentally, the UNIX man page for the S-record format is not entirely correct. Only the Motorola definition should be taken as gospel.


"Never"?

https://web.archive.org/web/20031016102833/http://e-www.motorola.com/files/microcontrollers/doc/eng_bulletin/EB335.pdf

http://www.nxp.com/files/microcontrollers/doc/app_note/AN4367.pdf

There are plenty other examples.


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 17, 2016 9:08 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8409
Location: Midwestern USA
rwiker wrote:
BigDumbDinosaur wrote:
Wikipedia's S-record article is in error—S19, S28 and S37 are made-up terms that have never been used by Motorola in any of their documentation. For the definitive description of the S-record format (and terms) please refer to Appendix C (page 640) of the attached manual, which is an official Motorola publication.

Incidentally, the UNIX man page for the S-record format is not entirely correct. Only the Motorola definition should be taken as gospel.

"Never"?

https://web.archive.org/web/20031016102833/http://e-www.motorola.com/files/microcontrollers/doc/eng_bulletin/EB335.pdf

http://www.nxp.com/files/microcontrollers/doc/app_note/AN4367.pdf

There are plenty other examples.

I stand corrected on the Motorola bulletin—I had not seen that one. That said, S19 is an informal term that is not found in the published S-record standard (which I have read countless times over the years).

NXP has no relation to Motorola. NXP is the spun-off semiconductor business of Phillips.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 17, 2016 9:32 pm 
Offline

Joined: Thu Mar 03, 2011 5:56 pm
Posts: 284
BigDumbDinosaur wrote:
rwiker wrote:
BigDumbDinosaur wrote:
Wikipedia's S-record article is in error—S19, S28 and S37 are made-up terms that have never been used by Motorola in any of their documentation. For the definitive description of the S-record format (and terms) please refer to Appendix C (page 640) of the attached manual, which is an official Motorola publication.

Incidentally, the UNIX man page for the S-record format is not entirely correct. Only the Motorola definition should be taken as gospel.

"Never"?

https://web.archive.org/web/20031016102833/http://e-www.motorola.com/files/microcontrollers/doc/eng_bulletin/EB335.pdf

http://www.nxp.com/files/microcontrollers/doc/app_note/AN4367.pdf

There are plenty other examples.

I stand corrected on the Motorola bulletin—I had not seen that one. That said, S19 is an informal term that is not found in the published S-record standard (which I have read countless times over the years).

NXP has no relation to Motorola. NXP is the spun-off semiconductor business of Phillips.


What is "The published S-record standard"? Is that separate from the appendix of the MC68000 programming manual?

NXP merged with Freescale, which was the spun-off microprocessor division of Motorola. Further, Philips owned Signetics, which was an official second source of the 68000.


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 17, 2016 10:21 pm 
Offline

Joined: Mon Aug 05, 2013 10:43 pm
Posts: 258
Location: Southampton, UK
Threads that degenerate into pedantry are pointless. I thought this forum was better then this.

Just because someone messed up some minor detail should not automatically generate some valuless reply.

Not aimed at anyone in particular, just getting a bit fed up with a repeating pattern.

_________________
8 bit fun and games: https://www.aslak.net/


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2016 9:11 am 
Offline

Joined: Mon Jan 07, 2013 2:42 pm
Posts: 576
Location: Just outside Berlin, Germany
Anyway -- I had an interesting discussion with a friend of mine who does lots of embedded stuff and he wanted to know why we couldn't just stream binary directly to the board. I had nothing, except to point out that the monitor is 20 year old code and that probably wasn't what the cool kids were doing at the time. Just what would we want to use in the 21st century instead of S28?

(I'm assuming that at some point we're going to want to create a replacement for the Mensch Monitor that includes stuff like routines for writing bytes to Flash etc., so that would be something to update while we're at it.)


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2016 9:15 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10943
Location: England
Would ZMODEM transporting raw binary be a good choice? I think most terminal emulators support it. You'd need to start with a load address, perhaps, and maybe end with an execution address. (Srecord is actually a good fit for what's needed.)


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2016 10:04 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
My hacker tool does binary XMODEM transfer and will write into the flash area as well as normal RAM on the SXBs.

All we need is a better boot ROM. The question is should it be a better machine code monitor, a Forth environment or a simple operating system?

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2016 11:09 am 
Offline

Joined: Mon Jan 07, 2013 2:42 pm
Posts: 576
Location: Just outside Berlin, Germany
BitWise wrote:
All we need is a better boot ROM. The question is should it be a better machine code monitor, a Forth environment or a simple operating system?
This might sound strange coming from me, but I wonder if a better Monitor might be the best solution because it would provide the most flexibility for people who, say, want to add a version of BASIC. Maybe keep the entry points for the important subroutines such as PUT_CHR for backwards compatibility, but then add XMODEM and code for handling the Flash stuff ... if it fits.

(I'm not sure about the whole tone generator and RTC stuff that is currently included, does anybody really use either? I'd sort of assumed that if you're going to have a RTC, it would probably be something battery-backed in hardware ...)

The other option, though, would in fact be an "Open Firmware" type Forth that makes a point of exposing the basic routines such as PUT_CHR and whatnot at the current jump addresses for backwards compatibility. It wouldn't have to be able to do much, and I'm wondering if this might be a case where a Token Threaded Forth might be the best solution to keep stuff small (256 8-bit tokens, say), because for these mostly interactive admin things you wouldn't care so much about speed anyway. So you'd keep the access to the low-level system libraries, but could do basic Forth things as well.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: