Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

A discussion about software upgrade solutions?

$
0
0

About RZ/T1, renesa support a sample demo " Sample Program for Writing Serial Flash ROM via the USB Microcomputers Incorporating the R-IN Engine "

Now I refer the sample test the upgrade solutions which based on "an-r01an2554ej0120-rzt1-initial-settings" .

I generate two binaries and not like Sample Program for Writing Serial Flash ROM via the USB Microcomputers Incorporating the R-IN Engine " while linked the two project in one binaris.

One is burned  in 0x30000000, and /* Copy the application program from external NOR memory to ATCM */ like that.

Two is burning  in 0x30100000 ( useing j-flash) while included  the  user program information table  in a certain position 0x300A0000.

const st_user_prg_info_tbl_t Usr_Prog_Info_Table=
{
(uint32_t) __section_begin("USER_PRG_RBLOCK"),
(uint32_t) __section_begin("USER_PRG_WBLOCK"),
(uint32_t) __section_end ("USER_PRG_WBLOCK"),

(uint32_t) __section_begin("USER_DATA_RBLOCK"),
(uint32_t) __section_begin("USER_DATA_WBLOCK"),
(uint32_t) __section_end ("USER_DATA_WBLOCK"),
};

When the Pin is high, i read the user program information table from 0x301A0000, and accoding the info Copy the application program from external NOR memory to ATCM.

But  after reset and boot, it can not work. 

Q1: In my solution, i did not init_bss while this step is it necessary?

Q2:Two binaries almost the same as each other. and diffrence listed below

1)  burning flash address is not same. 

One is burned  in  0x30000000, two is One is burned  in  0x30100000. And i can promised it is exist independently in flash.

2) blink led is different which  used to indentify which program is run in ATCM.

 

Q3: i checked the binaries the "VECTOR_RBLOCK" this block is completely same. So Pin is high, I don't  change this block reading addr. That to say,when I shift to program two, i copy the "VECTOR_RBLOCK" belong to program one.

I do not kown it is right ?

 


Viewing all articles
Browse latest Browse all 1583

Trending Articles