Re: [ECOS] why is it wrong to call cyg_semaphore_post() in ISR???

2006-06-09 Thread Monica Dsz
It's a trade off - do you prevent interrupts (hence ISR routines) from running during all data critical sections or do you simply not allow those [ISR] functions to execute code that might perturb critical data? eCos chooses the latter method which allows for lower interrupt latency by putting

Re: [ECOS] why is it wrong to call cyg_semaphore_post() in ISR???

2006-06-09 Thread Andrew Lunn
On Fri, Jun 09, 2006 at 11:18:14AM +0200, Monica Dsz wrote: It's a trade off - do you prevent interrupts (hence ISR routines) from running during all data critical sections or do you simply not allow those [ISR] functions to execute code that might perturb critical data? eCos chooses the

Re: [ECOS] why is it wrong to call cyg_semaphore_post() in ISR???

2006-06-09 Thread Monica Dsz
Normally, you try not to disable interrupts in RTOS's. You should protect your critical regions with mutex's, semaphores etc. I remember well that I(we in our company) have used intLock () in VxWorks to make sure that interrupt doesnt during some critical sections. Ofcourse we did use

AW: [ECOS] Huge memory footprint for a simple hello world

2006-06-09 Thread Ram Sudhir Tadavarthi
Hi Ram; I checked on Port B there's nothing coming out. The setup is :I have Port A connected to one machine from which I upload the application (bin_sim0) and port B connected to some other machine to see if anything comes out. From both machines nothing comes out. But if the application

AW: [ECOS] Huge memory footprint for a simple hello world

2006-06-09 Thread Ram Sudhir Tadavarthi
1.Instead of using gdb, can you try to load the image through redboot using load command and test? ~/work/atmel/020606-ARM/install/bin$ arm-elf-gdb redboot.elf GNU gdb 5.3 (eCosCentric) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public

Re: AW: [ECOS] Huge memory footprint for a simple hello world

2006-06-09 Thread Gary Thomas
On Fri, 2006-06-09 at 16:23 +0200, Ram Sudhir Tadavarthi wrote: 1.Instead of using gdb, can you try to load the image through redboot using load command and test? ~/work/atmel/020606-ARM/install/bin$ arm-elf-gdb redboot.elf GNU gdb 5.3 (eCosCentric) Copyright 2002 Free Software

[ECOS] Flash Driver Read/Write Alignment Question

2006-06-09 Thread Jay Foster
I am puzzling over how the eCos flash drivers are supposed to work when using 16-bit wide flash devices. I'm using an ARM architecture (ARM7TDMI, ARM940T), and the AMD AM29LV160 flash device connected in the 16-bit wide mode (CYGNUM_FLASH_WIDTH=16). Looking at the flash driver code, this defines

Re: [ECOS] USB-CDC on AT91

2006-06-09 Thread Oliver Munz @ SNR
The DiFF... Oliver John Eigelaar schrieb: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 11:12 PM To: John Eigelaar Cc: [EMAIL PROTECTED] Subject: Re: [ECOS] USB-CDC on AT91 There is a fix from Andrew whitch i want to integrate in