From mcintosh@infinity.ccsi.com Sat Feb 1 02:30:42 1997 From: Gordon McIntosh Date: Sat Feb 1 02:30:44 PST 1997 Subject: Re: Text on software development for PPC 604 I've read the book "Optimizing PowerPC Code" by Gary Kacmarcik and I like it better tan the others I have... Gordon McIntosh mcintosh@rtsd.com http://www.rtsd.com From raymond@ipnsun5.in2p3.fr Mon Feb 3 01:02:19 1997 From: DOUET Raymond Date: Mon Feb 3 01:02:25 PST 1997 Subject: tip connection Hi, I use "tip" running in a xterm window to connect mv167 and Sun workstation over RS232. Sometime this connection badly hung up and I don't see the reason for this problem I have ever seen this problem in users group mails. Does anyone have any idea. Thanks -- ++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++ _/_/ _/_/_/_/_/ _/ _/ Raymond Douet _/_/ _/ _/ _/_/ _/ S2I - I.P.N Orsay bt 102 _/_/ _/_/_/_/_/ _/ _/ _/ 91406 ORSAY FRANCE _/_/ _/ _/ _/_/ email:raymond@ipnsun5.in2p3.fr _/_/ _/ _/ _/ phone:(33) 01 69 15 64 41 fax:(33) 01 69 15 62 58 Institut de Physique Nucleaire (IN2P3) ++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++ From malcolm.cifuentes@nautronix.com.au Mon Feb 3 01:11:00 1997 From: malcolm.cifuentes@nautronix.com.au (Malcolm Cifuentes) Date: Mon Feb 3 01:11:03 PST 1997 Subject: MMU Modification under tornado Hi all, Host: Solaris 2.51 Target: PowerPC OS : Tornado 1.0 FCS I am trying to allow a 256MB window of VME address space to be made accessible through the MMU. Under vxworks version 5.2 on a MVM167, I just did the following :- Modified the structure PHYS_MEM_DESC sysPhysMemDesc in "sysLib.c" to contain the initialisation :- { (void *) 0x18000000, (void *) 0x18000000, 0x10000000, VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE, VM_STATE_VALID | VM_STATE_WRITABLE | VM_STATE_CACHEABLE_NOT }, I have tried the same under tornado for the PPC, but is seems to hang the system after the following startup sequence :- Loading... 547600 Starting at 0x100000... HANGS RIGHT HERE! I assume where it hangs is where it is doing the memory initialisation! Has any one seen this before, and how did you get around it! thanks -- Malcolm Cifuentes ( Nautronix LTD malcolm.cifuentes@nautronix.com.au PH : +61-09-430-5900 FAX : +61-09-430-5901 ) From cgrames@mdc.com Mon Feb 3 07:11:36 1997 From: Charlie Grames Date: Mon Feb 3 07:11:37 PST 1997 Subject: MMU Modification under tornado -Reply >Submitted-by malcolm.cifuentes@nautronix.com.au Mon Feb 3 01:11:00 1997 >Submitted-by: malcolm.cifuentes@nautronix.com.au (Malcolm Cifuentes) > I am trying to allow a 256MB window of VME address space to be made > accessible through the MMU. Malcolm, If you are using the MVME1604, you need to make the following changes in config.h: #define MASTER_MEM_BUS_A32 0x00000000 #define MASTER_MEM_A32_SIZE 0x10000000 You may also want to consider using the block-address translation (BAT) registers to map your VME space instead of page table entries. The page table entries for 256 MB of VME space consume 2 MB of memory. Let me know if you want more info. Charlie Grames McDonnell Douglas Training & Support Systems (314) 233-1956 CGrames@mdc.com From fbh@vlsi9.gsfc.nasa.gov Mon Feb 3 09:02:55 1997 From: Francis Hallahan Date: Mon Feb 3 09:03:01 PST 1997 Subject: Re: MMU Modification under tornado >Submitted-by malcolm.cifuentes@nautronix.com.au Mon Feb 3 01:11:00 1997 >Hi all, > Host: Solaris 2.51 > Target: PowerPC > OS : Tornado 1.0 FCS > > I am trying to allow a 256MB window of VME address space to be made > accessible through the MMU. > > Under vxworks version 5.2 on a MVM167, I just did the following :- > Modified the structure PHYS_MEM_DESC sysPhysMemDesc in "sysLib.c" to > I have tried the same under tornado for the PPC, but is seems to hang the > system after the following startup sequence :- > > Loading... 547600 > Starting at 0x100000... > HANGS RIGHT HERE! > > I assume where it hangs is where it is doing the memory initialisation! > > Has any one seen this before, and how did you get around it! > >thanks >-- >Malcolm Cifuentes > Nautronix LTD Malcolm, Yes, I've seen this. I have not been able to create a VME window larger than 64Meg. I did do some tracing through usrConfig.c and found the hang occurs during a call to usrMmuInit(). The source for usrMmuInit() is in /vw.../src/config/usrMmuInit.c; however, I have not had time to try debugging this. Hope this helps, Frank Hallahan --------------------------------------------------------------------------- | Frank Hallahan | Hallahan@gsfc.nasa.gov | | Software Environment Leader - Code 521 | fbh@vlsi.gsfc.nasa.gov | | Computer Sciences Corporation | | | at Nasa Goddard Space Flight Center | Phone (301) 286 7064 | --------------------------------------------------------------------------- From rstelzer%ims.fhg.de%sonja.ims.fhg.de@ims.fhg.de Tue Feb 4 07:32:02 1997 From: Rainer Stelzer Date: Tue Feb 4 07:32:04 PST 1997 Subject: 1394 High Performance Serial Bus Driver Hi there, first I want to thank all the guy's who give me suggestions to solve my WindView problem. (the problem was the TPU-code). Now a further question: I'm looking for a device-driver for the IEEE1394 high performance serial bus. We want to use the chipset TSB12C01A/TSB11C01 from Texas Instruments. Has somebody allready written driver code for such a device. We need a PC-Card (PCI or ISA) to talk with our system, too. thanks in advance ! rainer -- ********************************************************************** Fraunhofer Institut f|r Mikroelektronische Schaltungen und Systeme Abteilung SAT Rainer Stelzer Finkenstra_e 61 47057 Duisburg Tel. 0203/3783-238 email rstelzer@ims.fhg.de ********************************************************************** From daemon@csg.lbl.gov Wed Feb 5 04:00:18 1997 From: daemon@csg.lbl.gov Date: Wed Feb 5 04:00:20 PST 1997 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Wed Feb 5 04:00:16 PST 1997 Subject: Re: VxWorks 5.3 kernel size ? Subject: US, NY, Syracuse--Job:Software Engineer, Embedded Systems Subject: Proper use of malloc() Subject: SLIP problems Subject: Re: invisible static variables ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: VxWorks 5.3 kernel size ? Date: Sun, 26 Jan 1997 22:39:09 -0800 From: dfigueroa@tst.com (David Figueroa) Organization: Torrey Science Corp Message-ID: References: <32E968EA.8A0@z9.com> In article <32E968EA.8A0@z9.com>, geo@z9.com wrote: > For a 68332 target, can someone tell me approx how big the kernel is ? > For this application, networking support is not required. > > Also, it was suggested to me that a build for debugging would require > much more target memory than one without debugging information. I can > see that perhaps -g turns off some code optimization, but other than > that why should the target care about debug info ? Is the debug info > actually downloaded to the target ? > > Thanks for any pointers or insight into the above. I have experience with the '302, and have spent a lot of time trying to shrink the kernel size. You will be hard pressed to get it under 80K. But 80K is very possible (this includes the agent and most needed libraries like semLib, memLib and msgQLib. As far as debugging, you have to preallocate memory to be used by the debug agent in advance. This is used mainly for downloading code. If your code is built into rom, this is unnecessary, and all your ram is available. Wind River really needs to address kernel size to remain competetive. I have heard (from sales people) that wrs already has very tiny kernels, but they are not publicly available. good luck dave - -- | David Figueroa - -+---------------------------------- | Torrey Science Corporation | 10065 Barnes Canyon Rd | San Diego, CA 92121 | | (619) 552-1052 | (619) 552-1056 (fax) --------------------------- Newsgroups: comp.os.vxworks Subject: US, NY, Syracuse--Job:Software Engineer, Embedded Systems Date: 4 Feb 1997 14:58:49 GMT From: chthibault@aol.com Organization: AOL http://www.aol.com Message-ID: <19970204145800.JAA07401@ladder01.news.aol.com> Leybold Inficon, Inc., located in central New York state, is looking for a Software Engineer responsible for developing and maintaining real-time, embedded software to control the operation of analytical instrumentation, acquire data, and transfer the data to other tasks or processors for subsequent processing. This position reports to the HAPS Software Manager. The successful candidate must be an experienced, self-motivated individual with strong communications and team skills, capable for working with minimal supervision. Minimum educational and work experience is a BS in computer science, electrical engineering, or related technical discipline, with at least 5 years experience or an advanced degree with 3 years experience. Technical experience is required in the following areas: - - Real-Time programming including data acquisition, instrument control, and/or signal processing. - - Embedded systems programming, including experience developing software where speed, memory and power consumption constraints are critical. - - Multi-Task programming, including familiarity with such issues as inter-task communication, multi-task debugging, and parent-child task relations. - - Extensive experience in C and some experience in assembly language are required. Experiance in the following areas would be helpful: - - Experience with C++ or other object oriented languages would be a plus. - - Scientific Programming experience and/or Gas Chromatography and Mass Spectrometry would be a plus. - - Experience with various real time operating systems and kernels would be helpful (especially VxWorks). - - Experience writing and debugging device drivers would also be helpful. Please send resumes and cover letters, with salary requirements to: Leybold Inficon, Inc. Human Resources, Dept CT 2 Technology Place E. Syracuse NY 13057 ======================================================================== Charlie Thibault Leybold Inficon, Inc ChThibault@aol.com 2 Technology Place (315)434-1268 E. Syracuse NY 13057 Charlie Thibault Leybold Inficon, Inc ChThibault@aol.com 2 Technology Place (315)434-1268 E. Syracuse NY 13057 --------------------------- Newsgroups: comp.os.vxworks Subject: Proper use of malloc() Date: 4 Feb 1997 14:51:07 GMT From: plward@ll.mit.edu (paula l ward) Organization: MIT Lincoln Laboratory Message-ID: <5d7icr$bai@llnews.ll.mit.edu> Sender: plw@bart (paula l ward) Hello, I'm developing my first system under VxWorks and I'm using a VME167 target and Tornado running on Solaris. I'm unclear on the proper use of malloc. I want to allocate some memory and it seems pretty straightforward but I think I'm missing some basic information. According the the programmer guide, malloc() is supposed to return a pointer to the memory space but when I do: ... short *ptr; ... ptr = malloc(32); ... I get a compile warning that the assignment makes a pointer from an integer without a cast. It seems to get allocated ok at run time and I can write to it but I think I'm doing something wrong here. (BTW, does VxWorks zero the memory or do I need to do that?) After the memory is allocated, what is the proper way to use it? I found the documentation lacking examples for this. What I really want to do is reserve a block of memory for a structure and another for an array. I'd like to reference the array and structure in the normal ways but how do I get them assigned to the specified memory blocks? If I define the array separately, the memory seems to already be allocated elsewhere for it. Am I trying to combine too many things and oversimplify/compilcate this? Thanks in advance. Paula --------------------------- Newsgroups: comp.os.vxworks Subject: SLIP problems Date: Tue, 04 Feb 1997 17:36:11 +0100 From: Maureen Jett Organization: MPI fuer biophysikalische Chemie Message-ID: <32F7657B.21FC@gwdg.de> Reply-To: mjett@gwdg.de Hello, We are using Solaris 2.5 and are trying to use SLIP to talk to our V17 though the serial port. When I tried to attach using the following command: slip-attach -d /dev/ttya -l 134.76.211.40 -v 134.76.211.50 -m 255.255.0.0 I got the following error: slip-attach[321]: ioctl(I_PUSH) slipdlpi: Invalid argument We are using solaris-slip-7 obtained from ftp://ftp.ece.wisc.edu/pub/slip. I realize this isn't really a vxWorks question, but I thought maybe someone in this group might have run into this problem. It's also very likely that I'm doing something stupid, since I've never used SLIP before. TIA, Maureen - -- Maureen M. Jett Max Planck Institute for Biophysical Chemistry ZEWEG-EDV Group, 051 tel: 49-551-201-1414 FAX: 49-551-201-1011 email: mjett@gwdg.de --------------------------- Newsgroups: comp.os.vxworks Subject: Re: invisible static variables Date: 30 Jan 1997 22:15:15 GMT From: "Robert Myhre" Organization: Alexis Logic Corporation Message-ID: <01bc0efa$ef7709a0$0cd2b8c7@PCRAM.alexis.com> References: <5cqjui$5a8@bogus.cts.com> Lee Slaughter wrote in article <5cqjui$5a8@bogus.cts.com>... > Why are static variables invisible symbols to vxWorks? > Impossible to debug. > > for example, a .c file: > ...... > #include ... > #define ... > > int x; > > foo() > { > ... > } > ... > > in this case x is visible. > if i qualify it with 'static' it is unknown. > This seems reasonable to me. K & R's "The C Programming Language" says that if an external variable is declared static, it's scope is limited to the source file in which it is declared. --------------------------- End of New-News digest ********************** From gverdun@fibertek.com Wed Feb 5 07:56:50 1997 From: "Gustavo H. Verdun" Date: Wed Feb 5 07:56:53 PST 1997 Subject: Anyone gotten VME Interrupts to work on Tornado for PowerPC? I'm using two Radstone boards to write a simple periodic interrupt handler and have not had luck in getting it to work. Has anyone done this before and could provide me with sample code to do this? Both Tornado and Radstone have vague documentation on this. Thanks, Gustavo H. Verdun Senior Systems Engineer FIBERTEK, INC. \|/ --------------------------*-- 510 Herndon Parkway /|\ Herndon, Virginia 20170-5225 Voice: (703) 471-7671 Fax: (703) 471-5806 http://www.fibertek.com From cgrames@mdc.com Wed Feb 5 08:38:57 1997 From: Charlie Grames Date: Wed Feb 5 08:38:59 PST 1997 Subject: comp.os.vxworks newsdigest -Reply >According the the programmer guide, malloc() is supposed to return a pointer to the memory >space but when I do: > >... short *ptr; >... ptr = malloc(32); >... > >I get a compile warning that the assignment makes a pointer from an integer without a cast. It >seems to get allocated ok at run time and I can write to it but I think I'm doing something wrong >here. (BTW, does VxWorks zero the memory or do I need to do that?) Paula, malloc returns a void pointer (you have to include stdlib.h). To get the compiler to not complain, you need to cast it to your target type. In your example: ptr = (short *)malloc(32); malloc does not zero memory. If you want that capability, use calloc. For your example (assuming short is 16 bits): ptr = (short *)calloc(16,sizeof short); >After the memory is allocated, what is the proper way to use it? I found the documentation lacking >examples for this. What I really want to do is reserve a block of memory for a structure and >another for an array. I'd like to reference the array and structure in the normal ways but how do I >get them assigned to the specified memory blocks? If I define the array separately, the memory >seems to already be allocated elsewhere for it. Am >I trying to combine too many things and oversimplify/compilcate this? If you want to allocate structures, you do something like: struct mystruct { int field1; short field2; char field3[2]; } struct mystruct *myptr; myptr = (struct mystruct *)calloc(1,sizeof struct mystruct); myptr->field1 = 1; myptr->field2 = 2; myptr->field3[0] = 3; myptr->field3[1] = 4; Arrays are even simpler. In your example, ptr[0] accesses the first element, ptr[1], the second, etc. Charlie Grames McDonnell Douglas Training & Support Systems (314) 233-1956 CGrames@mdc.com From Phil_Watson@ns1.masirv.com Wed Feb 5 09:32:34 1997 From: Phil_Watson@ns1.masirv.com (Phil Watson) Date: Wed Feb 5 09:32:36 PST 1997 Subject: Re: Proper use of malloc() > Hello, I'm developing my first system under VxWorks and I'm using a VME167 > target and Tornado running on Solaris. > > According the the programmer guide, malloc() is supposed to return a pointer > to the memory space but when I do: > > ... > short *ptr; > ... > ptr = malloc(32); > ... > > I get a compile warning that the assignment makes a pointer from an integer > without a cast. It seems to get allocated ok at run time and I can write to > it but I think I'm doing something wrong here. (BTW, does VxWorks zero the > memory or do I need to do that?) Check the malloc prototype that you are using. Perhaps you are using the Solaris prototype instead of the Tornado header. Make sure your include directives include the VxWorks header directory, and that you use -nostdinc to the GNU compiler (if that's what you're using) so that the compiler doesn't look in /usr/include for you when you don't want it to. Your usage of malloc() looks fine otherwise. No, VxWorks does NOT zero out malloc'd memory. Do it yourself if you need it done. As far as use of malloc'd memory, see a good C programming guide. Check the section on pointers and arrays. ---- Philip Watson Telecommunications Lead Phil_Watson@masirv.com Matsushita Avionics Systems Corporation 15253 Bake Parkway Irvine, California, 92618 U.S.A. From Phil_Watson@ns1.masirv.com Wed Feb 5 09:37:31 1997 From: Phil_Watson@ns1.masirv.com (Phil Watson) Date: Wed Feb 5 09:37:33 PST 1997 Subject: Re: comp.os.vxworks newsdigest > Lee Slaughter wrote in article <5cqjui$5a8@bogus.cts.com>... > > Why are static variables invisible symbols to vxWorks? > > Impossible to debug. > > > > for example, a .c file: > > ...... > > #include ... > > #define ... > > > > int x; > > > > foo() > > { > > ... > > } > > ... > > > > in this case x is visible. > > if i qualify it with 'static' it is unknown. > > > > This seems reasonable to me. K & R's "The C Programming Language" says > that if an external variable is declared static, it's scope is limited to > the source file in which it is declared. To reference static variables, use the first parameter to the ld() command: 0 - Add global symbols to the system symbol table. 1 - Add global and local symbols to the system symbol table. -1 - Add no symbols to the system symbol table. For example, ld 1 < debug.o Of course, this only works if you are downloading code. If your code is burned in ROM with the kernel, I don't know how to do this. ---- Philip Watson Telecommunications Lead Phil_Watson@masirv.com Matsushita Avionics Systems Corporation 15253 Bake Parkway From bcarlson@drao.nrc.ca Wed Feb 5 09:51:20 1997 From: Brent Carlson Date: Wed Feb 5 09:51:26 PST 1997 Subject: SCSI disk corruption problem. Hello VxWorks users: I'm a new addition to this exploder and I have a problem that has puzzled me for some time now. I'm running VxWorks 5.2 on Radstone PME 68-41 CPUs and "occaisionally" I get a disk corruption problem when writing to the local SCSI disk which has a VxWorks DOS file system (long name support, NFS mounted). It seems that I can write and read hundreds of Mbytes over several weeks and then boom, all of a sudden the application that tried to write data to a file in some directory goes into never-never land (spy indicates that the task uses almost 100% CPU). So, I reboot the disk and try, via NFS from a Sun, to write to a file in the directory which was just being written to and bang, the VxWorks NFS server is history (100% CPU usage ...). This would seem to indicate that the drive is corrupted (but only in the directory where the failure occured). I recently had this happen on several CPUs at about the same time (each CPU has its own disk). I'm split down the middle as to whether this is a hardware or software problem (or termites). My drives are 2Gb and 4Gb Fujitsu M2932 and M2934 and I have every confidence that they are not the problem (have one running flawlessly on a Sun for the last year). The whole system is on a dedicated UPS and my rack power supplies are made by Todd. After a corruption, re-making the file system fixes the disk (unfortunately all of my data is gone though). Has anybody seen anything similar to this? Any help would be appreciated. Brent. From YF.Siu@eng.efi.com Wed Feb 5 13:09:32 1997 From: "Yuet Fung Siu" Date: Wed Feb 5 13:09:34 PST 1997 Subject: Re: SCSI disk corruption problem. >and read hundreds of Mbytes over several weeks and then boom, all of >a sudden the application that tried to write data to a file in some >directory goes into never-never land (spy indicates that the task >uses almost 100% CPU). So, I reboot the disk and try, via NFS from This looks very much like the 5.2 dosFsLib problem that I'd reported to WRS two years ago, when they first released 5.2. The in-core hash table used by dosFsLib was corrupted, due to a bug in dosFsLib. The disk itself may not be corrupted. You may be able to use it with VxWorks 5.1, which doesn't use the hash table. If you've the source license, I can probably email you the fix. Or you can talk to WRS tech support, ask for a patch for SPR 4418. I am really surprised that they haven't fixed this fatal bug in two years' time. Good Luck, YF From fbh@vlsi9.gsfc.nasa.gov Wed Feb 5 16:38:09 1997 From: Francis Hallahan Date: Wed Feb 5 16:38:11 PST 1997 Subject: Re: SCSI disk corruption problem. >>Submitted-by bcarlson@drao.nrc.ca Wed Feb 5 09:51:20 1997 >>Submitted-by: Brent Carlson > >>and read hundreds of Mbytes over several weeks and then boom, all of >>a sudden the application that tried to write data to a file in some >>directory goes into never-never land (spy indicates that the task >>uses almost 100% CPU). So, I reboot the disk and try, via NFS from > >Submitted-by YF.Siu@eng.efi.com Wed Feb 5 13:09:32 1997 >Submitted-by: "Yuet Fung Siu" > >This looks very much like the 5.2 dosFsLib problem that I'd reported >to WRS two years ago, when they first released 5.2. The in-core hash >table used by dosFsLib was corrupted, due to a bug in dosFsLib. The >disk itself may not be corrupted. You may be able to use it with >VxWorks 5.1, which doesn't use the hash table. > >If you've the source license, I can probably email you the fix. Or >you can talk to WRS tech support, ask for a patch for SPR 4418. I >am really surprised that they haven't fixed this fatal bug in two >years' time. > I also had many problems with the early 5.2 NFS in May-Nov 95 and am also surprised to find anyone else still experiencing it. I think someone using vxWorks 5.3 just reported this to the exploder. I had TSR#s 23185 (100% CPU on task tNfsdX) and 24452 ( corruption of large file, 1.3Mb, on >2Gb disk) and was assigned SPR #4672. Yuet Fung Siu is right! you need the patch for the 100% CPU problem. I am still waiting for an answer to TSR #24452/SPR #4672 (not really its only been over a year ;-), but in the meantime I set the number of NFS servers to 1. The nfs daemons apparently don't set any file locks and if the DOS cluster size(16k in my case) is larger than the NFS block size(8k) a race condition may occur when 2 daemons try to write to the same file at the same time. To set 1 NFS Daemon (default is 4) add the line nfsdNDervers = 1; /* limit number of NFS Servers */ somewhere in vxWorks, before the network is initialized. I like to put it in sysHwInit in sysLib.c, but usrConfig.c is probably a better location. I hope this helps you and others. Frank Hallahan /-------------------------------------------------------------------------\ | Frank Hallahan | at | | Computer Sciences Corporation | Nasa Goddard Space Flight Center | | 7700 Hubble Drive | Code 521 | | Greentec II, Dept. 522 | Greenbelt, MD 20771 | | Lanham-Seabrook, MD 20706 | | | | Hallahan@gsfc.nasa.gov | | fhallaha@csc.com | fbh@vlsi.gsfc.nasa.gov | | fbh@niccolo.gsfc.nasa.gov | | | | Phone (301) 286 7064 | | Phone (301) 794 2030 | Fax (301) 286 1768 | \-------------------------------------------------------------------------/ From froeber@bbn.com Wed Feb 5 18:49:59 1997 From: Fred Roeber Date: Wed Feb 5 18:50:02 PST 1997 Subject: Re: SCSI disk corruption problem. On Wed, 5 Feb 1997, "Yuet Fung Siu" answered a question: > >and read hundreds of Mbytes over several weeks and then boom, all of > >a sudden the application that tried to write data to a file in some > >directory goes into never-never land (spy indicates that the task > >uses almost 100% CPU). So, I reboot the disk and try, via NFS from > > This looks very much like the 5.2 dosFsLib problem that I'd reported > to WRS two years ago, when they first released 5.2. The in-core hash > table used by dosFsLib was corrupted, due to a bug in dosFsLib. The > disk itself may not be corrupted. You may be able to use it with > VxWorks 5.1, which doesn't use the hash table. We ran into a similar problem recently and got a patched dosFsLib.o for VxWorks 5.2 from WRS support that seemed to fix the problem. Seems first thing you want to try is asking them for the fixed version of the file. I doubt you need a specific SPR number to reference it. Fred | Fred J Roeber, BBN Systems & Technologies | | 4 John Clarke Road Middletown, RI 02842-5202 | | froeber@bbn.com 401-848-3548 | From cgrames@mdc.com Wed Feb 5 20:14:34 1997 From: Charlie Grames Date: Wed Feb 5 20:14:36 PST 1997 Subject: Redirecting Output to a Different Board Hi all, I am evaluating an application that would be using multiple PowerPC targets in a single VME chassis with a console attached to processor 0 only. In this application, I would like to get any output on standard output/error, including any VxWorks-generated abort messages, redirected to that one console. I know that ioGlobalStdSet will redirect standard output/error to another device, but I can't think of any way to make it a device on another board. Has anyone else run into this requirement, and, if so, what solution did you find? Thanks in advance. Charlie Grames McDonnell Douglas Training & Support Systems (314) 233-1956 CGrames@mdc.com From daemon@csg.lbl.gov Thu Feb 6 04:00:26 1997 From: daemon@csg.lbl.gov Date: Thu Feb 6 04:00:45 PST 1997 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Thu Feb 6 04:00:23 PST 1997 Subject: Re: comp.os.vxworks newsdigest Subject: Re: invisible static variables Subject: Re: OSI TRANSPORT layer Subject: Re: Big disks on Vxworks Subject: Re: The year 2000 and VxWorks Subject: CD-R.Media.for.Sale. Subject: high-speed mass storage, Fibre Channel, VME Subject: Re: The year 2000 and VxWorks Subject: Re: ROM Expansion card for PCs Subject: Re: Device Driver's Class Subject: syntax completion - a bad thing? Subject: DHCP support for Tornado 1.0 Subject: visionsoft development tools - performance analysis, optimization, runtime error checking, coverage in a single pass Subject: Re: Proper use of malloc() Subject: BIND/dns resolver for vxworks? Subject: Re: Need Simple GZIP Function Subject: Re: ethernet drivers Subject: Re: syntax completion - a bad thing? Subject: Re: Information on MPC860/821 Device Drivers Subject: Tornado - VxWorks subroutine calls ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: comp.os.vxworks newsdigest Date: Fri, 31 Jan 1997 01:34:27 +0000 From: "Dale M. Rickman" Organization: Erol's Internet Services Message-ID: <32F14C14.5AC5@erols.com> References: <9701281741.AA27455@trojan.masirv.com> Reply-To: daler@erols.com A close relative of mine works for Microtec. She tells me that Microtec has not only had per-task debugging with XRAY, a superbly stable graphical debug environment, a streams based networking solution for VRTX (with dynamic routing and multicast available for years) and that they invented the "Tornado" architecture years ago (but theirs is called Spectra) and since it is 3 years old, IT actually works. And embedded compiler features including linking of C++ and C code seamlessly, template debugging support, packed structure support, align keyword support, init data (rom to ram copy support), etc. Plus task-per-window debugging built into the debugger. She complains that the only reason that WindRiver wins is because of their marketing hype, that in any real technical evaluation Microtec wins hands down. Any comments ? --------------------------- Newsgroups: comp.os.vxworks Subject: Re: invisible static variables Date: Fri, 31 Jan 1997 01:40:25 +0000 From: "Dale M. Rickman" Organization: Erol's Internet Services Message-ID: <32F14D78.4D4A@erols.com> References: <5cqjui$5a8@bogus.cts.com> <01bc0efa$ef7709a0$0cd2b8c7@PCRAM.alexis.com> Reply-To: daler@erols.com Or you could just use XRAY, where this stuff "just works", and you don't even have to RTFM. And you don't have to worry about turning on optimization in your code. This just works as well. Apparently, according to my sources. Why are static variables invisible symbols to vxWorks? > Impossible to debug. > > for example, a .c file: > ...... > #include ... > #define ... > > int x; > > foo() > { > ... > } > ... > > in this case x is visible. > if i qualify it with 'static' it is unknown. > This seems reasonable to me. K & R's "The C Programming Language" says that if an external variable is declared static, it's scope is limited to the source file in which it is declared. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: OSI TRANSPORT layer Date: Fri, 31 Jan 1997 03:47:23 +0000 From: "Dale M. Rickman" Organization: Erol's Internet Services Message-ID: <32F16B41.1CCF@erols.com> References: <5bgeev$3ai@ilex.FernUni-Hagen.de> <5cok29$qui@krypto.zippo.com> Reply-To: daler@erols.com or you could check out open networks engineering www.one.com Of course, ONE (CMIP, GDMO,etc ) is owned by Microtec. But then, Epilogue (SNMP, MIB) is owned by ISI....... So, if an Epilogue solution doesn't bother you, and ONE one shouldn't either :-) --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Big disks on Vxworks Date: 5 Feb 1997 13:58:20 GMT From: "Adam Baker" Organization: Roke Manor Research Message-ID: <01bc136c$77fce770$e2c076c1@aabpc> References: <01bc0efb$85d46280$0cd2b8c7@PCRAM.alexis.com> Robert Myhre wrote in article <01bc0efb$85d46280$0cd2b8c7@PCRAM.alexis.com>... > I'm trying to use a 4 GB disk with DOS formatting, but I get an error when > I call dosFsMkfs. It doesn't seem to have a problem at 3 GB. What's the > limit? > I spent a long time playing with this and eventually concluded that to get the maximum possible size is 8323072 512 byte sectors or about 3.97 GB. This is because one of the parameters to dosFsConfigInit is a signed char and hence limited to 127. I filed a TSR to try and confirm if this is the limitation and Wind River claimed much larger sizes are possible. I replied that that wasn't my experience and haven't heard anything from them since. There is a second issue if you are booting from SCSI disk. This falls over with a somewhat smaller disk, around 2GB IIRC. I think this is down to how much memory is available at boot time but as its such a pain to debug boot rom problems I settled for using a small boot partition and then after booting configuring the rest of the disk as a much larger partition. --------------------------- Newsgroups: comp.os.vxworks Subject: Re: The year 2000 and VxWorks Date: Wed, 05 Feb 1997 10:32:18 -0800 From: Dave Bott Message-ID: <32F8D232.2847@cetia.com> References: <5d57tb$5u2@llnews.ll.mit.edu> <5d8ksa$gth@bcarh8ab.bnr.ca> Pierre Pierre Blais wrote: > > In article <5d57tb$5u2@llnews.ll.mit.edu>, > paula l ward wrote: > > > >Does anyone know how VxWorks will handle the transition from > >December 31, 1999 to January 1, 2000? > > We asked this question of WRS and the answer was that VxWorks > is Y2K compliant. > > > >What algorithms are used to determine the date? Since the year 2000 > >is a leap year (and is divisible by 400), does anyone know if this > >will be handled correctly? Here is some code I tried to look at what vxWorks thinks. According to my sparc, there is a February 29th in 2000, but not according to vxWorks - there's a March 0 instead ! #include "vxWorks.h" #include "stdio.h" #include "taskLib.h" #include "time.h" #include "private/timeP.h" void t2000 (int year); /* t2000 - year 2000 leap year test code * * set the time to 10 seconds before midnight on Feb 28th for the year * provided as a parameter (97 = 1997, 100 == 2000) and test how the * rollover works to Feb 29th or March 1st. * It appears to show that the year 2000 has a March 0... */ void t2000 ( int year ) { time_t result; time_t x; char *y; struct tm tm_time; char zoneBuf[sizeof (ZONEBUFFER)]; IMPORT void __getZoneInto (char *, int, TIMELOCALE *); IMPORT TIMELOCALE * __loctime; IMPORT sysClkRateGet (); struct timespec curTmSpec; /* setup current time as if from a time of day clock */ tm_time.tm_sec = 50; tm_time.tm_min = 59; tm_time.tm_hour = 23; tm_time.tm_mday = 28; tm_time.tm_mon = 1; tm_time.tm_year = year; result = mktime (&tm_time); /* mktime returns localtime, convert back to GMT */ if (tm_time.tm_isdst) result -= SECSPERHOUR; __getZoneInfo (zoneBuf, TIMEOFFSET, __loctime); result -= atoi (zoneBuf) * SECSPERMIN; curTmSpec.tv_sec = result; curTmSpec.tv_nsec = 0; /* set clock time (POSIX) */ clock_settime (CLOCK_REALTIME, &curTmSpec); /* Loop displaying the time (roughly) every second */ while (1) { taskDelay (sysClkRateGet ()); x = time ((time_t *)NULL); y = ctime (&x); printf ("Time is %s\n", y); } } Here's my output for the year 2000: Running on a Cetia CVME604 100Mhz PowerPC 604 vxWorks 5.3) - -> t2000 100 ... Time is MON FEB 28 23:59:57 2000 Time is MON FEB 28 23:59:58 2000 Time is MON FEB 28 23:59:59 2000 Time is TUE MAR 00 00:00:00 2000 Time is TUE MAR 00 00:00:01 2000 ... For 1995, I get : - -> t2000 95 ... Time is TUE FEB 28 23:59:57 1995 Time is TUE FEB 28 23:59:58 1995 Time is TUE FEB 28 23:59:59 1995 Time is WED MAR 01 00:00:00 1995 Time is WED MAR 01 00:00:01 1995 ... For 1996, I get : - -> t2000 96 ... Time is WED FEB 28 23:59:57 1996 Time is WED FEB 28 23:59:58 1996 Time is WED FEB 28 23:59:59 1996 Time is THU FEB 29 00:00:00 1996 Time is THU FEB 29 00:00:01 1996 ... Maybe I did something wrong, but it looks like there's a problem with the year 2000 ! Dave - -- Dave Bott : Customer Support Engineer Cetia Inc. Tel +1 408 247 2430 45, Cabot Avenue, Suite 201 Fax +1 408 247 5132 Santa Clara CA 95051, USA dmb@cetia.com #include --------------------------- Newsgroups: comp.os.vxworks Subject: CD-R.Media.for.Sale. Date: 2 Feb 1997 13:08:43 GMT From: oure@cmfadljf.com Organization: The.Copy.Cat Shop. Message-ID: <5d23kr$jct@mtinsc04.worldnet.att.net> We have the following CD-R media for sale. Brand: Pioneer Type: Printable Media (Surface is blank for printing or labels) Type: Gold on Green Size: 74 min (650 mb) Price: 6.99 Minimum Order: 10 Brand: Maxell Type: Gold on Gold Size: 74 min (650 mb) Price: 6.55 Minimum Order: 10 Brand: TDK Type: Gold on Green Size: 74 min (650 mb) Price: 6.55 Minimum Order: 10 Brand: Hewlett Packard Type Gold on Gold Size: 74 min (650 mb) Price: 7.15 Minimum Order: 10 Lifetime Warranty The Copy Cat Shop has all your CD duplication, replication, recorders, software, and media needs. If you have any questions or comments feel free to call. Cordially, The Copy Cat Shop 213-650-1680 213-650-9110 Fax --------------------------- Newsgroups: comp.os.vxworks Subject: high-speed mass storage, Fibre Channel, VME Date: 27 Jan 1997 18:57:06 GMT From: lsrsearch@aol.com (LSRsearch) Organization: AOL http://www.aol.com Message-ID: <19970127185700.NAA12421@ladder01.news.aol.com> I am looking for people with knowledge of high-speed mass storage networks. Specifically I am interested in your opinion on the future applications for fibre channel to high-speed mass storage networks. Also, do you see any application to the VME market. Any referrals to experts in this area are greatly appreciated. Thanks, Lisa Solomon LSRsearch@aol.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: The year 2000 and VxWorks Date: Wed, 05 Feb 1997 16:24:02 -0600 From: Steve Strauss Organization: LMTAS News Server Message-ID: <32F90882.49A9@lmtas.lmco.com> References: <5d57tb$5u2@llnews.ll.mit.edu> paula l ward wrote: > > Does anyone know how VxWorks will handle the transition from > December 31, 1999 to January 1, 2000? > > What algorithms are used to determine the date? Since the year 2000 > is a leap year (and is divisible by 400), does anyone know if this > will be handled correctly? > > Thanks. > > Paula Ward At the Wind River Users Conference recently, they told us that vxWorks does not know or care about the date, so the transition to 2000 will not affect it. Steve Strauss --------------------------- Newsgroups: comp.os.vxworks Subject: Re: ROM Expansion card for PCs Date: Mon, 03 Feb 1997 10:05:13 -0700 From: Michael Mirabile Organization: Dayna Communications Message-ID: <32F61AC9.64B1@dayna.com> References: <32EE4818.1CFBAE39@xyplex.com> Roger, Check out Circuit Specialists at http://www.cir.com Look in "Flash EPROM/RAM/ROM Disk Cards under the "Industrial Computers" section. Good luck. - --- Roger Cruz wrote: > > I'm researching the use of VxWorks on a regular IBM-compatible PC for > an embedded application. I understand that if I like to have VxWorks on > a ROM, I will need to get an expansion ROM card. I'm wondering if > anyone has done something similar to this. If so, can you give me > references to ROM card manufacturers (WRS mentions Blunk Microsystems)? > Can they be Flash ROMs or only EPROMs? What's the maximum size > allowed? I assume these cards plug in to an ISA slot. Correct? > > Another thought I had was to use the boot-rom sockets provided with NIC > cards. Has anyone used this approach? Is there enough space to hold > the boot code? a VxWorks image? The PCI spec also allows for expansion > roms, is there a card that has just a EPROM or flash ROM? > > Thanks in advance. > > -- > Roger Cruz cruz@xyplex.com, rcruz@xyplex.com, rrc@xyplex.com > Whittaker Xyplex w: 508-952-4783 > 295 Foster Street f: 508-952-5772 > Littleton, MA 01460 --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Device Driver's Class Date: Tue, 04 Feb 1997 11:21:59 +0100 From: Josef Rabitz Organization: Ericsson Austria AG Message-ID: <32F70DC6.7D08@sea.ericsson.se> References: <32F10228.136@dskp3.itg.ti.com> <32F4AD8E.3DCB@gdesystems.com> Michael Levasseur wrote: > > Steven J. Powell wrote: > > > > What are people's true opinions about the Device Driver class taught > > by Wind River? Is it good class with "lab" time. > > > > I took the class last July and I thought it was a good class. The > instructor was knowledgable. There was a lab and plenty of lab > time. The labs were simple, yet effect examples of implementations > of Character Drivers, Serial Drivers and Block Drivers. I think, too, that in general their classes are quite ok. BUT having heard a VxWorks or Tornado Class before the Device Driver's Class a part of it is just a repitition (those are the first 2 of 4 days which are rather a presentation of the basics of hardware programming like polling, interrupt handling, etc.). the actual device driver stuff is just the other 2 days. for me 1/3 instead of 2/2 days would have been better. but probably like in any other class what you really get out depends on the knowledge you already have. another thing (which at least Tornado users do not like) is that all labs are mainly done by using the shell and not Tornado tools. Josef Rabitz - Ericsson Austria AG --------------------------- Newsgroups: comp.lang.ada,comp.os.vxworks Subject: syntax completion - a bad thing? Date: Thu, 06 Feb 1997 08:22:17 +0900 From: Andrew Kelly Organization: Vision Systems Message-ID: <32F91629.5F9@vsl.com.au> Reply-To: andrewk@vsl.com.au Looking at Rational's Apex Ada development environment, I am worried the inclusion of syntax completion in the "analyser" (pre-compilation phase). It seems to me that syntax completion, as a step during compilation, is not a good thing as it *repairs* errors rather than report them (eg. unpaired begin/ends). The obvious risk being that incorrect code will quite happily be "repaired" (very possibly, incorrectly) and will compile successfully. This seems, to me, to be more dangerous than it is useful ... eg. If you accidentally delete the "end" from a nested "if", where does the analyser stuff the "end"? Indeed, even if it gets the placement correct (eg. by inference from the text indentation) if code statements have been inadvertantly deleted as well, a clearly erroneous file will compile cleanly. I believe syntax completion should be available during editting, but not automatically employed during compilation. As far as I can discover, it cannot be switched off in Apex either. Has anybody had any experiences with syntax completion that may confirm or allay my fears? - -- +===============================================================+ | Andrew Kelly (andrewk@vsl.com.au) _ |\ | | Software Design Engineer _/ |_| \ | | Vision Systems / Vision \ | | Technology Park / Products \ | | Adelaide, SA 5095, AUSTRALIA \ __ / | | ph: +61-8-300 4602 \__/ \__/ | | fx: +61-8-300 4422 v | +===============================================================+ --------------------------- Newsgroups: comp.os.vxworks Subject: DHCP support for Tornado 1.0 Date: Wed, 05 Feb 1997 18:15:28 -0800 From: Scott Slomba Organization: Wind River Systems Message-ID: <32F93EC0.7068@wrs.com> Hi, DHCP is going to be supported in the next release of the networking stack, BSD 4.4, due out shortly after the Tornado 1.0.1 maintenance release. I'm working with some people who are in need of DHCP now. Does anybody know of a DHCP integration with the current Tornado 1.0 networking stack. Any information would be greatly appreciated. Thank you, Scott *************************** Scott Slomba Field Applications Engineer Wind River Systems (619)546-2835 scotts@wrs.com --------------------------- Newsgroups: comp.os.os9,comp.os.qnx,comp.os.vms,comp.os.vxworks Subject: visionsoft development tools - performance analysis, optimization, runtime error checking, coverage in a single pass Date: Wed, 05 Feb 1997 10:50:40 -0800 From: Phil Thoren Organization: VisionSoft Inc. Message-ID: <32F8D680.68D8@vsonline.com> Reply-To: phil@vsonline.com Professional C/C++/Java Developers: VisionSoft has recently developed a runtime analysis and optimization tool that will analyze the relative and actual execution performance of your Java and/or C/C++ applications. The C/C++/Java tool provides results as follows: For C/C++ by file, function, class, method, statement and if-clause True/False degrees of resolution. For Java by file, class/method, statement and if-clause True/False degrees of resolution. Once the analysis is performed the program can automatically or be directed to optimize your source structure to improve the C/C++ application performance dramatically. If you are interested in using this tool please send email to vsinfo@vsonline.com or visit our web site at http://www.vsonline.com and request an evaluation. For other tools that are currently released please visit our web site at http://www.vsonline.com regards, VisionSoft --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Proper use of malloc() Date: Tue, 04 Feb 1997 17:07:48 GMT From: tfm@sei.cmu.edu Organization: Software Engineering Institute Message-ID: <5d7qea$ko3@news.sei.cmu.edu> References: <5d7icr$bai@llnews.ll.mit.edu> plward@ll.mit.edu (paula l ward) wrote: >Hello, I'm developing my first system under VxWorks and I'm using a VME167 >target and Tornado running on Solaris. >I'm unclear on the proper use of malloc. I want to allocate some memory >and it seems pretty straightforward but I think I'm missing some basic >information. >According the the programmer guide, malloc() is supposed to return a pointer >to the memory space but when I do: >... >short *ptr; >... >ptr = malloc(32); >... >I get a compile warning that the assignment makes a pointer from an integer >without a cast. It seems to get allocated ok at run time and I can write to >it but I think I'm doing something wrong here. (BTW, does VxWorks zero the >memory or do I need to do that?) It sounds like you are missing an include file reference in your source. C implicitly defines all functions as returning INT. You probably need to include . This will define malloc as returning a void *. You will have to cast the result of malloc into the type of pointer you want to use. malloc typically does not initialize memory, it only allocates it. You can initialize allocated memory to zero either by making a call to bzero following the malloc, or by using calloc instead of malloc >After the memory is allocated, what is the proper way to use it? I found >the documentation lacking examples for this. What I really want to do is >reserve a block of memory for a structure and another for an array. I'd >like to reference the array and structure in the normal ways but how do I >get them assigned to the specified memory blocks? If I define the array >separately, the memory seems to already be allocated elsewhere for it. Am >I trying to combine too many things and oversimplify/compilcate this? There is typically no proper way to use it (or rather, it depends on you application). Typically, you will have and maintain a pointer to the allocated space. This pointer may be of any type (natural or derived), and all accesses to this memory are made via this pointer. In terms of what you would like to do, you can either define an item of the type you want, in which case the compiler will allocate storage for the item (either statically, or on the stack, depending on the system and how you define the item). Or, you can define a pointer to the type of item you are interested in, and then use malloc/calloc/valloc to allocate storage associated with one or more of the items of the interested type. In this way, you can create either a single, dynamically allocated item, or a dynamically allocated array of items ie typedef struct { ... } structure_type; structure_type *structure_pointer; structure_type *structure_array_pointer; ... structure_pointer = (structure_type *)malloc(sizeof(structure_type)); /* this allocates one of the kind of structure of interest*/ /* the following would allocate an "array" of 5 items, all accessed thru a single pointer */ structure_array_pointer = (structure_type *)malloc(5*sizeof(structure_type)); be careful as to how you use these pointers and how you manage them. It is very easy to either "lose" a pointer, orphaning the memory and creating a classic "memory leak" resource problem, or free the memory and then reference the pointer, at which point the pointer may not be valid, as the memory could have been reallocated to contain some other object. All of this is basic, classic memory allocation (dynamic memory) information, which is basically the same in Unix, Windoze, and VxWorks. In most cases, the allocated memory comes off of a construct known as a "heap", which may be task unique in terms of size. In VxWorks, I believe the "heap" is merely all of unallocated system memory. When memory is free'ed, it is returned to the "heap". VxWorks will combine adjacent free'ed memory sections into one larger memory section. Still, depending on the system being implemented, memory can become seriously fragmented. This means that merely performing a malloc does not mean that the allocation of memory was successful.. Check the return value. If malloc fails, it (usually) returns NULL. >Thanks in advance. >Paula Ted Marz --------------------------- Newsgroups: comp.os.vxworks Subject: BIND/dns resolver for vxworks? Date: 06 Feb 1997 00:23:17 -0500 From: Mark Eichin Organization: Cygnus Support, Eastern USA Message-ID: Has anyone ported BIND to vxworks? All I'm really looking for is enough of a resolver to implement gethostbyname, but didn't see anything on the ucar vxworks archive... --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Need Simple GZIP Function Date: 5 Feb 1997 23:15:15 -0800 From: chaos@idiom.com (h.j. bae) Organization: the derome mansion, oakland california Message-ID: <5dc0e3$t5@idiom.com> References: In article , Russ Brill wrote: >Has anybody got a simple (small), callable version of gzip (or a program >implementing a similar compression scheme) that will run under VxWorks? I >need to load this function on board a spacecraft, and I can't afford the >luxury of lots of options, or of bringing along the decompression >software. i've ported zlib uncompress() function to replace the vxworks' bsd style uncompress. gnu version does better than 50% compression, compared to 30% in bsd version. this allowed us save a lot of money on one of the products by eliminating our need for a second flash rom part. the zlib port is easy enough. the only thing one has to look out for is when actually creating a compressed version of bootroms and modifying the bootInit.c. if interested in details, email me. - -- http://www.pso.com --------------------------- Newsgroups: comp.os.vxworks Subject: Re: ethernet drivers Date: 5 Feb 1997 23:18:30 -0800 From: chaos@idiom.com (h.j. bae) Organization: the derome mansion, oakland california Message-ID: <5dc0k6$13n@idiom.com> References: <32F20FB7.684A@ccii.co.za> In article <32F20FB7.684A@ccii.co.za>, Conrad Vermeulen wrote: >Hi there > >Under Solaris one can access drivers by opening a device, like: > fp = open("/dev/le0",..) > >By calling "devs" under vxWorks, I did not see any suitable drivers >available, but I know that the ene interface is active upon startup. >Can I open them as under Solaris? Do the ethernet drivers under >vxWorks support the DLPI 2.0 interface? > vxworks network drivers are bsd unix style drivers and do not support dlpi interface or streams at all, although there are some third vendor streams ports and protocol stacks that work with vxworks that support dlpi/streams. - -- http://www.pso.com --------------------------- Newsgroups: comp.lang.ada,comp.os.vxworks Subject: Re: syntax completion - a bad thing? Date: Thu, 6 Feb 1997 07:39:51 GMT From: wb6w@netcom.com (Glenn Thomas) Organization: Netcom On-Line Services Message-ID: References: <32F91629.5F9@vsl.com.au> Followup-To: comp.lang.ada,comp.os.vxworks Sender: wb6w@netcom14.netcom.com My newsreader claims that Andrew Kelly (andrewk@vsl.com.au) wrote: : Looking at Rational's Apex Ada development environment, I am : worried the inclusion of syntax completion in the "analyser" : (pre-compilation phase). : It seems to me that syntax completion, as a step during : compilation, is not a good thing as it *repairs* errors : rather than report them (eg. unpaired begin/ends). The : obvious risk being that incorrect code will quite happily be : "repaired" (very possibly, incorrectly) and will compile : successfully. : This seems, to me, to be more dangerous than it is useful ... : eg. If you accidentally delete the "end" from a nested "if", : where does the analyser stuff the "end"? Indeed, even if it : gets the placement correct (eg. by inference from the text : indentation) if code statements have been inadvertantly deleted : as well, a clearly erroneous file will compile cleanly. : I believe syntax completion should be available during editting, : but not automatically employed during compilation. As far as I : can discover, it cannot be switched off in Apex either. : Has anybody had any experiences with syntax completion that may : confirm or allay my fears? Yes - more years ago than I'd like to admit, I worked as a window programming consultant in college. The machine was a CDC-3150 and the main programming language used by students was FORTRAN-IV. We had several Fortran compilers available and the one that was particularly recommended for student use was a FORTRAN IV interpriter(!). The stated reason for the recommendation was that it was more forgiving of keypunch errors than the other compilers. A more logical reason was that most student programs were short (10 to 200 LOC), so a system that could dispense with part of the compilation process and all of the linkage process could turn programs around much faster. (Typical turnaround time was about 24 hours...) One of the things this system did was correct the number of parenthesis in a given statement if there was a problem. The correction was to add the appropriate number of left parens to the beginning or right parens to the end. Well... students were usually not too sure about operator precidence and would use parens to make it explicit. The problem was that if a paren on either end of the statement was not semanticly correct, the student would spend a LOT of time trying to figure out why a program that compiled with NO ERRORS (see, it says so right on the listing and computers don't lie) and looked corrrect on fairly close examination, insisted on producing bizzare results. The current programming methodology fad at the time was that computers should be easy to program and minor errors (like parenthesis counts) should be automaticly and painlessly corrected. The problem is that this (and any other system that arbitrarily assumes what the programmer really intended) is that computer language processors can only work with the syntax of the program. They have little information about the semantic of a program (other than the mapping of the input language to whatever language the processor outputs) and no information about the *intended* semantic. For this reason, programs that attempt to predict what the intended syntax of an otherwise syntacticly incorrect statement will meet with mixed success at best. Syntax completion systems can be useful only if the human is explictly advised of the change and if the human approves the change. Put more simply, the computer will do exactly what you told it to do, which is not necessarily the same thing as what you wanted it to do. : -- : +===============================================================+ : | Andrew Kelly (andrewk@vsl.com.au) _ |\ | : | Software Design Engineer _/ |_| \ | : | Vision Systems / Vision \ | : | Technology Park / Products \ | : | Adelaide, SA 5095, AUSTRALIA \ __ / | : | ph: +61-8-300 4602 \__/ \__/ | : | fx: +61-8-300 4422 v | : +===============================================================+ Good luck - Glenn Thomas -- ********************************************************************* * "Two wrongs don't make a right, but three lefts do." * * * * wb6w@netcom.com - Glenn Thomas * ********************************************************************* --------------------------- Newsgroups: comp.os.vxworks Subject: Re: Information on MPC860/821 Device Drivers Date: Wed, 05 Feb 1997 23:13:49 -0500 From: Hugo Krapf Organization: InterLog Internet Services Message-ID: <32F95A7D.38A6@interlog.com> References: <32F7CB62.794B@printrak.com> Reply-To: huggo@interlog.com Diane Kato wrote: > > Hi, > > We are working on a project using the PowerPC MPC821 processor > and the ADS860 Board Support Package. > > We need to obtain the following device drivers that are not > included as part of the BSP: > > I2C, SPI, DMA, PCMCIA > > Does anyone know of any device driver software that is availible > for these devices? > > Any help would be greatly appreciated... > > -- > Diane Kato > dkato@printrak.com > http://www.PrintrakInternational.com Me too !!! I'm especially interested in PCMCIA drivers for the 821. Thanks. Hugo Krapf huggo@interlog.com --------------------------- Newsgroups: comp.os.vxworks,comp.lang.tcl Subject: Tornado - VxWorks subroutine calls Date: Thu, 06 Feb 1997 11:21:25 -0800 From: Lajos Farkas Organization: ABB Network, Sweden Message-ID: <32FA2F35.62CA@rlyhps2.rly.abb.se> Hello I am developing a dialog by Tcl in Tornado and I want to execute VxWorks subroutines on my target maskin (host: HPUX, target: PPC 603) from the dialog. My solution is just now to send gdb commands to CrossWind, but it is not really good for me. I want to execute these soubrutine calls direct on the target or send them to WindShell but I don't know how can I do it. Has anyone some exeperience about it ? --------------------------- End of New-News digest ********************** From "74043,572"@compuserve.com Thu Feb 6 06:24:09 1997 From: Jeff Schmidt <"74043,572"@compuserve.com> Date: Thu Feb 6 06:24:10 PST 1997 Subject: Warning Messages I'm developing C/C++ code using the cc386 compiler and am having problems controling which warning messages actually get displayed. I've tried a number of things without receiving the desired results. What I need to do is basically supress all warning messages with the exception of a selected few. I've tried doing what was explained in the manual, however, the results were not what were expected. Here are the things I've tried. 1. -w with specific messages turned on - Didn't get any messages 2. Turn on only the message I want to see - Got flooded with various warning messages 3. Explicitly turned off every message listed in the GNU toolkit. - Got flooded with various warning messages. I find #3 the most curious. If anyone has any info on this or has some success controlling messages please let me know. For example, how would the flags be set up to look at -Wimplicit warnings and no others?? Any help would be appreciated. Jeff Schmidt 74043,572@compuserve.com From dit@bach.jhuapl.edu Thu Feb 6 07:52:56 1997 From: dit@bach.jhuapl.edu (Daryl I. Tewell) Date: Thu Feb 6 07:52:58 PST 1997 Subject: Re: Proper use of malloc() >... >short *ptr; >... >ptr = malloc(32); >... >I get a compile warning that the assignment makes a pointer from an integer >without a cast. It seems to get allocated ok at run time and I can write to >it but I think I'm doing something wrong here. (BTW, does VxWorks zero the >memory or do I need to do that?) You don't have a malloc declaration in scope. Include the proper .h file (see comp.lang.c FAQ 7.6). Two others have responded that you need to cast the result of malloc. For ANSI-C compilers, this is untrue, and, in fact, detrimental (see comp.lang.c FAQ 7.7). -Daryl From Phil_Watson@ns1.masirv.com Thu Feb 6 09:51:45 1997 From: Phil_Watson@ns1.masirv.com (Phil Watson) Date: Thu Feb 6 09:51:50 PST 1997 Subject: Re: Warning Messages Jeff, I've had no problems with controlling GNU warnings, so I'm surprised with yours. Here's what I use: -Wall -Wshadow -Wpointer-arith I find these to be the most useful set. I've never used the -w option, nor only the -Wimplicit. ------------------ Submitted-by "74043,572"@compuserve.com Thu Feb 6 06:24:09 1997 Submitted-by: Jeff Schmidt <"74043,572"@compuserve.com> I'm developing C/C++ code using the cc386 compiler and am having problems controling which warning messages actually get displayed. I've tried a number of things without receiving the desired results. What I need to do is basically supress all warning messages with the exception of a selected few. I've tried doing what was explained in the manual, however, the results were not what were expected. Here are the things I've tried. 1. -w with specific messages turned on - Didn't get any messages 2. Turn on only the message I want to see - Got flooded with various warning messages 3. Explicitly turned off every message listed in the GNU toolkit. - Got flooded with various warning messages. I find #3 the most curious. If anyone has any info on this or has some success controlling messages please let me know. For example, how would the flags be set up to look at -Wimplicit warnings and no others?? Any help would be appreciated. Jeff Schmidt 74043,572@compuserve.com ---- Philip Watson Phil_Watson@masirv.com Matsushita Avionics Systems Corporation 15253 Bake Parkway Irvine, California, 92618 U.S.A. From darren@wrs.com Thu Feb 6 15:31:15 1997 From: Darren Cathey Date: Thu Feb 6 15:31:17 PST 1997 Subject: Re: comp.os.vxworks newsdigest Dear User's Community: Normally, Wind River Systems employees refrain from responding to *customer* interaction on the Web in a non-productive manner. However, I felt obligated to warn you that the messages from one "Dale M. Rickman" are obviously biased due to the fact that his close relative just happens to be a Sales Rep in our local territory. Personally, I find that this is in truly poor taste and indicative of the drastic lengths to which Ready/Microtec/Mentor has stooped to save what remaining business they can. I can tell you we have many VRTX customers who are literally *jumping* at the chance to go to VxWorks. As far as the specifics of the varied comments, please contact your local Sales Team for answers to any questions that Mr. Rickman's correspondence has raised. Respectfully, Darren Cathey >Newsgroups: comp.os.vxworks >Subject: Re: comp.os.vxworks newsdigest >Date: Fri, 31 Jan 1997 01:34:27 +0000 >From: "Dale M. Rickman" >Organization: Erol's Internet Services >Message-ID: <32F14C14.5AC5@erols.com> >References: <9701281741.AA27455@trojan.masirv.com> >Reply-To: daler@erols.com > >A close relative of mine works for Microtec. She tells me that Microtec >has not only had per-task debugging with XRAY, a superbly stable >graphical debug environment, a streams based networking solution for >VRTX (with dynamic routing and multicast available for years) and that >they invented the "Tornado" architecture years ago (but theirs is called >Spectra) and since it is 3 years old, IT actually works. And embedded >compiler features including linking of C++ and C code seamlessly, >template debugging support, packed structure support, align keyword >support, init data (rom to ram copy support), etc. Plus task-per-window >debugging built into the debugger. > >She complains that the only reason that WindRiver wins is because of >their marketing hype, that in any real technical evaluation Microtec >wins hands down. > >Any comments ? > > > > =========================================================== Darren Cathey Phone : 540-338-6970 Regional FAE Manager - Southeast Fax : 540-338-3168 Wind River Systems Email : darren@wrs.com =========================================================== From darren@wrs.com Thu Feb 6 15:37:03 1997 From: Darren Cathey Date: Thu Feb 6 15:37:05 PST 1997 Subject: Re: comp.os.vxworks newsdigest Dear User's Community: Normally, Wind River Systems employees refrain from responding to *customer* interaction on the Web in a non-productive manner. However, I felt obligated to warn you that the messages from one "Dale M. Rickman" are obviously biased due to the fact that his close relative just happens to be a Sales Rep for Microtec/Mentor (i.e. VRTX/Spectra) in our local territory. Personally, I find that this is in truly poor taste and indicative of the drastic lengths to which Ready/Microtec/Mentor has stooped to save what remaining business they can. I can tell you we have many VRTX customers who are literally *jumping* at the chance to go to VxWorks. As far as the specifics of the varied comments, please contact your local Sales Team for answers to any questions that Mr. Rickman's correspondence has raised. Respectfully, Darren Cathey >Newsgroups: comp.os.vxworks >Subject: Re: comp.os.vxworks newsdigest >Date: Fri, 31 Jan 1997 01:34:27 +0000 >From: "Dale M. Rickman" >Organization: Erol's Internet Services >Message-ID: <32F14C14.5AC5@erols.com> >References: <9701281741.AA27455@trojan.masirv.com> >Reply-To: daler@erols.com > >A close relative of mine works for Microtec. She tells me that Microtec >has not only had per-task debugging with XRAY, a superbly stable >graphical debug environment, a streams based networking solution for >VRTX (with dynamic routing and multicast available for years) and that >they invented the "Tornado" architecture years ago (but theirs is called >Spectra) and since it is 3 years old, IT actually works. And embedded >compiler features including linking of C++ and C code seamlessly, >template debugging support, packed structure support, align keyword >support, init data (rom to ram copy support), etc. Plus task-per-window >debugging built into the debugger. > >She complains that the only reason that WindRiver wins is because of >their marketing hype, that in any real technical evaluation Microtec >wins hands down. > >Any comments ? > > > > =========================================================== Darren Cathey Phone : 540-338-6970 Regional FAE Manager - Southeast Fax : 540-338-3168 Wind River Systems Email : darren@wrs.com =========================================================== From dleviner@HiWAAY.net Thu Feb 6 17:24:59 1997 From: David Leviner Date: Thu Feb 6 17:25:01 PST 1997 Subject: PCMCIA driver??? & mouse driver??? Hi all, I'm in the process of working on a BSP for an embedded PC386 with standard pc interfaces (serial, parallel, ps/2 keyboard and mouse), 4MBytes of FLASH (Intel 28F016 chipset), 2MBytes of DRAM, and PCMCIA capabilities. The PCMCIA chipset is the Cirrus Logic CL-PD6720-QC-B. I've heard through the grapevine that VxWorks does support this chipset. Does anyone know where I can find the driver for this interface? If I'm completely wrong in assuming there is a driver for this controller -- please let me know also. Also, the customer wants to eventually utilize a vxWorks supported graphical interface and thus needs mouse support. Does anyone know of a ps/2 mouse driver available? Thanks for the advice. -------------------------- David Leviner Systems Engineer Chandler/May, Inc. (CMI) 125 West Park Loop Huntsville, AL 35806 phone: (205)722-0175 fax: (205)722-0144 email: dleviner@HiWAAY.net From mjh@adv.sbc.sony.co.jp Fri Feb 7 01:17:23 1997 From: Margaret J Harris Date: Fri Feb 7 01:17:25 PST 1997 Subject: Anyone know of a SPI Driver? Hi all, I'm in the process of working on a BSP for an embedded system with based on a Motorola QUICC chip. This has a Serial Peripheral Interface (SPI) on chip. Anyone know of a vxWorks driver for this? Thanks for the advice. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Margaret J Harris Engineer Tel: +44 (0) 1256 48 3722 (Direct) New Technologies (D&D) Tel: +44 (0) 1256 55 011 (Switchboard) Advanced Technology Division Fax: +44 (0) 1256 81 1430 Sony Broadcast & Professional Europe Jays Close, Viables, Basingstoke Hampshire RG22 4SB UK E-mail: mjh@adv.sbc.sony.co.jp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From usd@mee.hwm.com Fri Feb 7 01:26:18 1997 From: Uwe Scheffold Date: Fri Feb 7 01:26:20 PST 1997 Subject: socket types Hi vxWorkers, in the socket() manual page are described 3 types of sockets: SOCK_STREAM, SOCK_DGRAM and SOCK_RAW. But I can find example programs for only: SOCK_STREAM and SOCK_DGRAM. So what are the main advantages (or disadvantages) for the different socket types. In what case do you use what kind of socket? Does anyone have a example client/server program witch uses SOCK_RAW? regards: Uwe -- ------------------------------------------------------------------------- Uwe Scheffold _/_/_/_/_/_/_/_/_/ _/_/_/_/ Mail: usd@mee.hwm.com Tele Robot Engineering _/ _/ _/ _/ Web: http://www.hwm.com Waelischmiller GmbH _/ _/_/_/ _/_/_/ Voice: (+49) 7532 4320 41 Klingleweg 8 _/ _/ _/ _/ Fax: (+49) 7532 4320 99 D-88709 Meersburg _/ _/ _/_/_/_/_/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From daemon@csg.lbl.gov Fri Feb 7 04:00:21 1997 From: daemon@csg.lbl.gov Date: Fri Feb 7 04:00:25 PST 1997 Subject: comp.os.vxworks newsdigest Comp.Os.Vxworks Daily Digest Fri Feb 7 04:00:18 PST 1997 Subject: Re: Big disks on Vxworks Subject: Re: ethernet drivers Subject: Re: syntax completion - a bad thing? Subject: New to vxWorks with NT Subject: Re: syntax completion - a bad thing? Subject: Help please. VxWorks 5.3 on R4650 Subject: Structure alignment with x86 compiler Subject: Networking Subject: floating point exceptions & the mv1604 Subject: The year 2000 and VxWorks Subject: PPP difficulties Subject: Help Wanted: POSIX.4 System Call Subject: CFP : 22nd IFAC/IFIP Workshop On Real-Time Programming Subject: VxWorks versus LynxOS Subject: vxload Subject: test ------------------------------------------------------- Newsgroups: comp.os.vxworks Subject: Re: Big disks on Vxworks Date: Thu, 06 Feb 1997 06:44:04 -0500 From: "richard.price" Organization: United Space Alliance Message-ID: <32F9C404.7111@lsoc114x.ksc.nasa.gov> References: <01bc0efb$85d46280$0cd2b8c7@PCRAM.alexis.com> <01bc136c$77fce770$e2c076c1@aabpc> Adam Baker wrote: > > Robert Myhre wrote in article > <01bc0efb$85d46280$0cd2b8c7@PCRAM.alexis.com>... > > I'm trying to use a 4 GB disk with DOS formatting, but I get an error > when > > I call dosFsMkfs. It doesn't seem to have a problem at 3 GB. What's the > > limit? > > > I spent a long time playing with this and eventually concluded that to get > the maximum possible size is 8323072 512 byte sectors or about 3.97 GB. > This is because one of the parameters to dosFsConfigInit is a signed char > and hence limited to 127. > > I filed a TSR to try and confirm if this is the limitation and Wind River > claimed much larger sizes are possible. I replied that that wasn't my > experience and haven't heard anything from them since. > > There is a second issue if you are booting from SCSI disk. This falls over > with a somewhat smaller disk, around 2GB IIRC. I think this is down to how > much memory is available at boot time but as its such a pain to debug boot > rom problems I settled for using a small boot partition and then after > booting configuring the rest of the disk as a much larger partition. Yes We had a similar problem with vxworks and an GB RAID. After weeks of T/S a suspected bad VME controller we determined that vxworks had a disk volume limit with the signed character perameter. No help from wind river either. RNP at KSC --------------------------- Newsgroups: comp.os.vxworks Subject: Re: ethernet drivers Date: 6 Feb 1997 05:08:05 GMT From: mda@bnr.ca (Mark Dapoz) Organization: Bell-Northern Research Ltd. Message-ID: <5dbovl$ogc@bcarh8ab.bnr.ca> References: <32F20FB7.684A@ccii.co.za> In article <32F20FB7.684A@ccii.co.za>, Conrad Vermeulen wrote: >Hi there > >Under Solaris one can access drivers by opening a device, like: > fp = open("/dev/le0",..) > >By calling "devs" under vxWorks, I did not see any suitable drivers >available, but I know that the ene interface is active upon startup. >Can I open them as under Solaris? All of the standard vxWorks network drivers are written using the BSD networking model. This model uses an internal ifnet structure to represent the driver entry points. There is no file level access to the network drivers as there is in Solaris 2.X and other SVR4 based systems. > Do the ethernet drivers under vxWorks support the DLPI 2.0 interface? There is a DLPI 2.0 framework if you get the WRS streams package. I'm not sure how (or even if) the streams layer talks to the BSD layer, you may have to write your own drivers for it. -mark - -- Mark Dapoz Bell-Northern Research, Ottawa, Canada Mark.Dapoz@bnr.ca Fingers and toes, fingers and toes, forty things we share, forty one if you include the fact that we don't care. - The Tragically Hip --------------------------- Newsgroups: comp.lang.ada,comp.os.vxworks Subject: Re: syntax completion - a bad thing? Date: 6 Feb 1997 08:08:56 -0500 From: dewar@merv.cs.nyu.edu (Robert Dewar) Organization: New York University Message-ID: References: <32F91629.5F9@vsl.com.au> Andrew says "It seems to me that syntax completion, as a step during compilation, is not a good thing as it *repairs* errors rather than report them (eg. unpaired begin/ends). The obvious risk being that incorrect code will quite happily be "repaired" (very possibly, incorrectly) and will compile successfully." This must be a misunderstanding, no Ada compiler can possibly have as its standard or only operating mode one in which errors are silently ignored. It would be impossible to validate such a compiler, and since the Rational compilers are validated (the observations apply equally to Ada 83 and Ada 95), you must be misunderstanding ... --------------------------- Newsgroups: comp.os.vxworks Subject: New to vxWorks with NT Date: Thu, 06 Feb 1997 16:32:02 +0200 From: Howie Schiffmiller Organization: NetVision LTD. Message-ID: <32F9EB62.167EB0E7@amil.co.il> Hi We've been working with UNIX and vxWorks for a few years, and we're now trying to move our host to NT. I was hoping someone out there could help with some of the following... 1. On UNIX, in order to download our code and start our session with the target, we use the following cat