Out of interest, why not just reserve the register, as per:
http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_regbind
For example
#include avr/io.h
#include avr/signal.h
#include avr/interrupt.h
register unsigned char counter asm(r3);
int main()
{
EICRA |=
IMO this should work given that
1.) you mark r3 to be a fixed register by gcc's compile switches
2.) for all of the externally linked files you have been using these compile
switches
3.) all other assembler source files follow this convention
.
IMO, it will only be possible to do this with
Hi,
On Fri, 03 Jun 2005 17:07:03 +0530, E. Weddington [EMAIL PROTECTED] wrote:
Royce Sharal Pereira wrote:
Hi,
I just observed, that while installing winAVR on Win 98 SE, the
directories are not added to the path, inspite of ticking it in the
install options. As a result, the compiler
Hello all,
Perhaps there is ready documentation on bootloader,
but I have not been able to get what I wanted. How
does one declare a programme to be bootloader program?
that is the code must be loaded in the bootsection
when I program the chip using avrisp. How does one set
the starting address
Royce Sharal Pereira wrote:
Hi,
On Fri, 03 Jun 2005 17:07:03 +0530, E. Weddington [EMAIL PROTECTED]
wrote:
Royce Sharal Pereira wrote:
Hi,
I just observed, that while installing winAVR on Win 98 SE, the
directories are not added to the path, inspite of ticking it in
the install
Hi,
On Mon, 06 Jun 2005 20:39:05 +0530, E. Weddington [EMAIL PROTECTED] wrote:
Royce Sharal Pereira wrote:
Hi,
On Fri, 03 Jun 2005 17:07:03 +0530, E. Weddington [EMAIL PROTECTED]
wrote:
Royce Sharal Pereira wrote:
Hi,
I just observed, that while installing winAVR on Win 98 SE, the
Hello,
I have several avr's connected by an RS-485 serial line. I'm looking
for a bootloader that will work with avrdude and can be compiled under
gcc, and which I can modify to properly handle talking over my bus.
I've found a couple gcc bootloaders so far, but none of them seem to
work with
Isn't avrdude an isp? Not a bootloader type programmer? I could be
totally off the mark.
My suggestion given this type of configuration would be to roll your own
bootloader code and loader app.
Then you can build the bus controlling logic into the bootloader. (ie
for selecting which avr to
Hi,
I hope you do find one.
I would not automatically expect one to be readily available - RS485 is half
duplex and can feature timing issues in the driver control lines. If the
devices are on a bus you must have a device address packed in with the
programming data - this can be both rather
Could someone help me out, I want to use the load an
array element into a register. When I do this:
asm(lds r16, array+n::);
Where n is the array element I want, it works fine.
But what I want to do it this:
asm(lds r16, array[element]::);
That gives me the following error:
Error: garbage
Matt McLellan [EMAIL PROTECTED] wrote:
asm(lds r16, array[element]::);
That gives me the following error:
Error: garbage at end of file
Sure, assembler is not C. ;-)
You'd need to compute the address yourself in assembler.
I've also tried passing it as an arguement, but can't
seem to
11 matches
Mail list logo