From: Karl B. <ka...@tu...> - 2001-09-01 16:42:04
|
Hi Jeroen, What do you mean by normal 8051- There is a mode of ds390 that we call flat24 which can use the wide(>64K) address space. Then there is the "normal" compatible mode that runs in a 64K ram/rom banks. The -mds390 mode of SDCC defaults to generate FLAT24 mode code. The TINI bootloader has ability to load and run either types of programs. If the bootloader is not invoked it defaults to going into flat24 mode, then starting a program in bank1 flash. You can run in either mode from TINI. Here are some resources: * In the sdcc sources(device\example & device\lib\ds390), there are some TINI/DS390 specific support routines and examples. There is a hello world example. * Bootloader - Dallas was kind enough to put out source for this, which can be a useful reference. The source syntax is not compatible with asx8051. * on my web site I've got a TCP stack app that I play around with. Its still a work in progress. I've also got a few notes on TINI and SDCC which might be helpful. * Some alternative terminal emulators are available to load TINI code. One is included in SDCC - \tinitalk. I've made one as well which I've posted on my turbobit.com site(ttty). ASM code can be compiled with the asx8051 assembler and linker. Heres a really simple example , something like a 3 line assembly app to toggle an output pin(the ultimate extreme of hello world). I'll get this in the examples of for SDCC. And you can just strip down and modify the .asm generated from sdcc. Determining the assembler and linker invocations is the toughest part - strace might be useful. Are you working in Linux or Windows? Whats your app? Karl. Jeroen Koek wrote: > Hello, > > I'm using the Tini board in combination with the SDCC version for this > board. > > I have two questions; > > How can I set the Ds390 board so that it can be used as a normal 8051. > I'm asking this because I have object code that can run only on this board. > > Second question; > How can I compile ordinary 8051 assembler code. I have tried this by > using the ax8051 but that does allow only SDCC assembler file's. > > Can someone help me because otherwise I'm forced to use the Java > development. > > Or has anyone a RTOS for the DS390 written in c that can be used with > the SDCC compiler > > greetings > > Jeroen. > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > |