2016-07-07 10:12 PM
application
(10K) is working in the first part of memorysector-0
as follows.1. sector-0 ( 0x00000000–0x00007FFF)
2. sector-1 ( 0x00008000–0x0000BFFF)
3. sector-2 ( 0x0000C000–0x0000FFFF)
4. sector-3 (0x00010000–0x00017FFF)
We want to load new code in the
sector-2
(0x0000C000–0x0000FFFF) and run the application after restart.So, how to
configure
theboo
t sector
to run the new application from sector -2.2016-07-08 01:33 AM
Hi,
For SPC560B50 please go to Platform Component -->Runtime Setting and select 0x0000C000 as Load Address.
Plese, consider that:
2016-07-08 02:20 AM
Hi Procolo,
Thank for you suggestion,Currently the application code is running in sector-0.We are loading the new application code into sector-2 using flash programmer library function.So, we want toconfigure
the
boo
t sector
to run the new application in sector -2
2016-07-08 02:44 AM
Hi,
First of all my suggestion is to read carefully the Reference manual for RCHW (chapter 6) and the way the MCU is starting.A possible solution could be to add to application in sector2 a way erase sector 0. Actually, you should need only to erase RCHW data structure in sector0. Control flow could be then:1. start in secto 02. program sector 23. jump to sector 2, right where erasing of sector 0 is.4. erase sector 0, while executing form sector 2Then, after a POR, you should start from sector 2 since sector 0 has been erased.Regards,Procolo2016-07-22 02:10 AM
Thank very much suggestion,
we are implemented and it is working.We are in completing stage of the project and our application size is 122K.We want to load new application in different sector 5 or 6,so how to generate the code using spc5 studio.