This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ST 8032 In-Application Programming

Hi All,

I am trying to get my In-Application Programming up and running on an ST micro uPSD33xx. When activating the newly programmed image I need to switch execution from the boot flash to the main flash. When this happens the micro will just blindy contiune retrieving instructions from the next memory location as if nothing has happened, unaware of the switch in flash device.

For everything to not fall in a big heap I am planning to have a routine which is fixed at the same absolute in both applications - it is this routine which will handle the switching of memory banks (and so the instuctions being retreieved should be identical in both apps).

First of all, does that sound insane to anyone out there?

Secondly, and prehaps a daft question, how should I determine *where* to locate the absolute routine. What guidelines can you offer as to how one determines where to locate such a 'shared' routine?

Cheers for any help/recommendations.

Andy

Parents
  • Andy,

    Yes, I understand what you're saying. I don't use code banking at all in my application. I use two separate projects: One for the bootloader that goes into CSBOOT and one for the main application.

    As long as the memory map is configured in PSDSoft such that you can EXECUTE out of CSBOOT and WRITE to MAIN flash, then you should be able to get the job done. The only difficulty is that your bootloader code will need to change the page register itself. For instance, if you are trying to program code into bank 5 which is on page 5, then the bootloader will need to change to that page to get it done. Hope that makes it clearer.

    -Jay Daniel

Reply
  • Andy,

    Yes, I understand what you're saying. I don't use code banking at all in my application. I use two separate projects: One for the bootloader that goes into CSBOOT and one for the main application.

    As long as the memory map is configured in PSDSoft such that you can EXECUTE out of CSBOOT and WRITE to MAIN flash, then you should be able to get the job done. The only difficulty is that your bootloader code will need to change the page register itself. For instance, if you are trying to program code into bank 5 which is on page 5, then the bootloader will need to change to that page to get it done. Hope that makes it clearer.

    -Jay Daniel

Children