What I do when I need to update the bootloader is to create a special application that carries the new bootloader's code embedded in itself. First the bootloader programs the updater and runs it. The first action that the updater does is to replace the reset vector so the old bootloader is deactivated. Then the updater programs the new bootloader. If everything went well, the application installs the new reset vector and erases the magic number that tells the bootloader that there is a valid application and resets the processor. Isaac Em 3/5/2012 11:40, kris duff escreveu: > Usually, you can update your bootloader and your firmware when they are b= oth 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 t= o do it, but I'm not sure it is a very "safe" idea. > > Regards! > > Kris > > > > ________________________________ > From: Mike snyder > To: Microcontroller discussion list - Public. =20 > Sent: Wednesday, May 2, 2012 1:51:51 PM > Subject: [PIC] PIC32 running a program entirely from RAM > =20 > 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 > Mike --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .