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

C166 : startup with a loader

Hi,

I use a C164 chip (similar to C166).
For my project, I'll have a bootloader (witch will be located in 0xC0'0000) and an applicative software (located in 0xC1'0000).

Is it possible to have the following flow chart ?

Start 0xC0'0000
if (A_FLAG_IN_FLASH == VALID_APPLI)
  Call Applicative_Startup
else
  Call Boot_Startup
endif

Boot_Startup and Applicative_Startup are the START_V2.A66 file for each project. They will be for sure different.

I don't find the way to do that in keil s options (move ICODE section to 0xC1'0000 didn't success with the linker, ...)

If you have some tips or application note, it will be great.

thks, Nick.