2006-03-26 by Alex Gibson
... Jim , I m happy to host copies of the files as have a large account with lots of spare space. Just host one society from uni and a few bits and pieces of
Thread view
Attachments: 0
2006-03-26 by roger_lynx
... already. At ... the whole ... prologue/epilogue with inline ... registers are really used, so I have ... which is a wast of performance. Yes. IRQ
Thread view
Attachments: 0
2006-03-25 by Robert Adsett
... According to the APCS A (called)subroutine must preserve the contents of the registers r4-r8, r10, r11 and SP . R0-R3 are temporary/parameter registers
Thread view
Attachments: 0
2006-03-25 by Tom Walsh
... Ah, better licensing terms. TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com Windows? No
Thread view
Attachments: 0
2006-03-25 by Sten
... Wonderful! ;-) But why to save r0..r3 and ip in your irq_isr?!? Only lr will be changed by bl and registers used by irq_handler() should be saved in its
Thread view
Attachments: 0
2006-03-25 by Robert Adsett
... retCode id declared as type tS8 and initialized to 0. tS8 will defined elsewhere At a guess (and only a guess), it s meant to be a mnemonic for type
Thread view
Attachments: 0
2006-03-25 by Dave Hylands
Hi heedaf, ... This declares a variable called retCode using a type called tS8 and initializes it to zero. The tS8 type is probably declared somewhere like
Thread view
Attachments: 0
2006-03-25 by Robert Bacs
I guess it means an 8 bits signed type. Boby ... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best
Thread view
Attachments: 0
2006-03-25 by heedaf
In the following sample code does anyone know what tS8 (tS8 retCode = 0;) do/mean? It is contained in a .h file. tS8 i2cWrite(tU8 addr, tU8 extraCmd, tU16
Thread view
Attachments: 0
2006-03-25 by David Hawkins
... Then perhaps this :) irq_isr: sub lr, lr, #4 stmfd sp!, {r0-r3, ip, lr} bl irq_handler ldmfd sp!, {r0-r3, ip, pc}^ /* VICVectAddr dispatch loop */ void
Thread view
Attachments: 0
2006-03-25 by Sten
... YES, something like that! ;-) But without nesting and change of cpu-mode. Sten -- /************************************************ Do you need a tiny and
Thread view
Attachments: 0
2006-03-25 by Sten
... You re right, the overhead is exceptable. And it needs less clocks than my current work-around. I think, I will write a stub tomorrow! ;-) Sten --
Thread view
Attachments: 0
2006-03-25 by Xtian Xultz
... I understand, but my problem is that my SPI devices are 25 cm away (in another board) from the board with my uC. So, I have two boards with SPI devices
Thread view
Attachments: 0
2006-03-25 by Robert Adsett
... As a matter of fact, yes. That would be a stub. ... That would also be a stub. I don t see any reason off hand not to do it that way although I also
Thread view
Attachments: 0
2006-03-25 by David Hawkins
... You mean something like this .... irq_isr: /* Save IRQ context, including the APCS registers, and r4-6 */ sub lr, lr, #4 stmfd sp!, {r0-r6, ip, lr} /*
Thread view
Attachments: 0
2006-03-25 by Joel Winarske
Hi Alex, In addition to Tom s info this is a good reference: http://billgatliff.com/drupal/node/25 Also the Ethernut project has a good number of examples for
Thread view
Attachments: 0
2006-03-25 by Sten
... Hello Marko, do you still know where you to find these patches? I would take a look into, because I started to search the gcc sources for the root of this
Thread view
Attachments: 0
2006-03-25 by Sten
... Ok, what exactly did you mean by a stub ? You write a piece of assembler code for a particular IRQ and then branch to your (normal) C service function,
Thread view
Attachments: 0
2006-03-25 by philips_apps
Clemens, it is microamps, you are absolutley right. My apologies. At least this one is rather obvious. Robert ...
Thread view
Attachments: 0
2006-03-25 by Robert Adsett
... If you write a stub that problem disappears. The procedure call standard ensures that the proper registers are saved when you call out of the stub. You
Thread view
Attachments: 0
2006-03-25 by Sten
... Thanks Robert. At the moment I declare my IRQ functions as naked and write my own prologue/epilogue with inline assembler. But it is less efficient
Thread view
Attachments: 0
2006-03-25 by Sten
... Ok, that s the reason! I explored that it happens only in conjunction with optimization options. It seems that gcc is mixing up optimized code with
Thread view
Attachments: 0
2006-03-25 by Robert Adsett
... Rather than go through all this hand-wringing why not just write an assembly stub? You d know it was correct and you d be done already. At most it would
Thread view
Attachments: 0
2006-03-25 by Bertrik Sikken
... Indeed, windows xp offers FAT32 as default for my 256MB SD-card and 128MB flash drive when formatting, but I have no doubt that linux can also format them
Thread view
Attachments: 0
2006-03-25 by Sten
... I ve tried this. But entry/exit is still not correct. Here s the result: void uart_irqHandler0(void) __attribute__((interrupt)); 00000204
Thread view
Attachments: 0
2006-03-25 by clemens fischer
... http://www.standardics.philips.com/support/faq/microcontrollers/lpc2000/peripherals/ Q Can the internal pull-up resistors on port pins be disabled? A No,
Thread view
Attachments: 0
2006-03-25 by Tom Walsh
... No, I don t. AFAIK, the apcs frame is used for backtracing code. So far, the Insight debugger has been fine for backtracing with the options I specify
Thread view
Attachments: 0
2006-03-25 by Tom Walsh
... I don t use: void someISR (void) __attribute__((interrupt( IRQ ))); I declare as: void someISR (void) __attribute__((interrupt)); Entry / exit code is
Thread view
Attachments: 0
2006-03-25 by fordp2002
50% duty cycle is a special case that is super easy to produce. Heres how to do it. 1) Choose a Timer any timer. 2) Program a Match register to a suitable
Thread view
Attachments: 0
2006-03-25 by Sten
... With -mapcs-frame the code produced looks good but due to the APCS a lot of overhead at entry and exit of my functions is generated. Without that option
Thread view
Attachments: 0
2006-03-25 by Tom Walsh
... Yes, it only supports 12/16 bit FATs. As far as I know, the only way you can get a Compact Flash or SD card with 32bit FATs is to format them under
Thread view
Attachments: 0
2006-03-25 by Tom Walsh
... I use newlib, it drives the RDCF2 FAT filesystem for the SD card, and newlib functions are used extensively throughout the code: memcpy, strncmp, etc. I
Thread view
Attachments: 0
2006-03-25 by Tom Walsh
... I am not sure what your question is. Why do you feel you have to intentionally suppress the apcs stack frame? Regards, TomW -- Tom Walsh - WN3L - Embedded
Thread view
Attachments: 0
2006-03-25 by balaji cr
I am planning to do the same. It is really sad that this forum occasionally generates SPAM. Balaji ... === message truncated === Dream is just a dream. A goal
Thread view
Attachments: 0
2006-03-25 by Michael Rubitschka
Hi George ... This process is called plonk! It is used in newsgroups to tell a troll, that his threads are now directed to the trashcan. It is an acronym for
Thread view
Attachments: 0
2006-03-25 by Sten
Hello Tom, some days ago I discovered a GCC bug on interrupt service routines for functions with __attribute__((interrupt( IRQ ))). At GCC-Bugzilla I found
Thread view
Attachments: 0
2006-03-25 by George M. Gallant, Jr.
Jayasooriah, Congratulations. You are the first person I have ever created a filter to automatically route all email from directly to the trash bin! I won t
Thread view
Attachments: 0
2006-03-25 by Saravanakumar S
Hi all, I am newbie to this field .Can you please help me to come out of this problem. I modify the pgm, to generate the 100KHz frequency with 50% duty cycle
Thread view
Attachments: 0
2006-03-25 by Jayasooriah
Hello,
For what it is worth, here is a summary of the issues surrounding the very
first question I raised relating to spurious interrupts on LPC 2000 family.
Thread view
Attachments: 0
2006-03-25 by Thiadmer Riemersma (ITB CompuPhase)
Hello Robert, ... Thanks for the tip. Another hypothesis that I want to investigate is whether we may be operating the LPC2138 under off spec conditions.
Thread view
Attachments: 0
2006-03-25 by Leon Heller
... From: jk jlkj To: LPC 2000 Sent: Saturday, March 25, 2006 12:03 PM Subject: [lpc2000] JTAG problem ...
Thread view
Attachments: 0
2006-03-25 by Seb Tarris
Hi, Do you use the IAR compiler v4.30A ? So yes, there is a problem with the UBROF8 debug format, and you must install the IAR patch Xlink 4.59 or more.
Thread view
Attachments: 0
2006-03-25 by jk jlkj
Hi Friends, Any one knows what this JTAG error means. The debug session could not be started. Either the debugger intialization failed, or else the file
Thread view
Attachments: 0
2006-03-25 by nospam@FreeRTOS.org
... Yes. ... Naturally. The only purpose of this was for my own amusment, to see if the interrupt was called frequently or rarely/erratically. I was not
Thread view
Attachments: 0
2006-03-25 by Mukund Deshmukh
... We are using MMC with LPC2138 and efsl for playing raw audio data. The quality of sound at 8bit, 8000 samples is too good. With 10 bit , and at higher
Thread view
Attachments: 0
2006-03-25 by Pandurang Shinde
hi, thanks for suuggestion,i check my initlization & i nowhere found that i am writing one reserved bit. My RTC initlization routine is as below. CCR=0x13; /*
Thread view
Attachments: 0
2006-03-25 by brendanmurphy37
Richard, I know I said I wouldn t post anything else on this topic, but please bear with me on the following: I hope you ll understand why. From your statement
Thread view
Attachments: 0
2006-03-24 by ian.scanlon
That doesn t make any sense. Think, THEN type. ... Ralph ... one ... vested ... this ... http://au.messenger.yahoo.com
Thread view
Attachments: 0
2006-03-24 by Jayasooriah
Hah! I wonder who is saving face here. Did you not also jump on Ralph
Hempel bandwagon. Remember, the flawed one?
It just goes on to show that it does not
Thread view
Attachments: 0
2006-03-24 by Jayasooriah
Thread view
Attachments: 0