[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] bootloader not jumping back to app

From: Dave Hansen
Subject: Re: [avr-gcc-list] bootloader not jumping back to app
Date: Mon, 08 Aug 2005 17:29:51 -0400

From: jeffrey traer bernstein <address@hidden>


void (*funcptr)( void ) = 0x0000;

okay here's another stab in the dark. when you make a function pointer and initialize it with an address (0x0000 in the case) is it the data i.e. the address stored in the .data section? this would

Yes. If it wasn't, you'd have to copy the value into RAM before it could be used (pgm_read_word).

mean that when i reprogramming from the bootloader i am overwriting this necessary initialization data and so the jump is not going to the right place and keeping me in the bootloader.

If that's the case, perhaps you can do something like
  funcptr = (void (*)(void)) 0;

The initialization of funcptr then becomes optional.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]