> Usually, you can update your bootloader and your firmware when they are both on flash.
>
> I'm not sure if I understood well, but if you load your software in ram, what will happen if you lose power ?
>
> Sorry, I can not help you to place the program on ram, I don't know how to do it, but I'm not sure it is a very "safe" idea.
>
> Regards!
>
> Kris
>
>
>
> ________________________________
> From: Mike snyder <
msnyder19
KILLspamgmail.com>
> To: Microcontroller discussion list - Public. <
.....piclistKILLspam
.....mit.edu>
> Sent: Wednesday, May 2, 2012 1:51:51 PM
> Subject: [PIC] PIC32 running a program entirely from RAM
>
> Hi All,
>
> I need to run a program on the PIC32 entirely from RAM. This way we
> could reflash the bootloader app on the flash if needed by loading a
> program directly into RAM via USB or Setrial port and then executing
> that rather than the program on flash.
>
> The C32 compiler provides a ramfunc keyword to run specific functions
> in RAM but I am not very clear on how one would run an entire program
> from RAM. One thought I am planning on trying out is to modify the
> linker file so all address are in RAM and see if that would work -
> however I wanted to check with the collective wisdom of the piclist to
> see if anyone has already done that or something similar?
>
> Thanks