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

I have to place one function at specific address using scatter file please give me any idea.

i have to place one function at specific address using scatter file please give me any idea.

Means i have 2 scatter file so i want to call from 1st scatter file to 2nd scatter file 'function'.

in the 1st scatter memory reason my function call is there and 2nd scatter memory reason my function definition

so i have to link them at run time.

Parents
  • Yes i can use one scatter file but if i want to change only application.o in scatter_1 file this will be not possible, then i have to flash both of file application.o and SDK_functio.o so this is little bit time consuming method for OTA. 

    if all SDK file in different scatter file and my application is different file, then i have to update application file only here i will save the program flashing time at the time of OTA. 

    suppose my SDK file size is 3MB and Application file size is 2MB then total size is 5MB file send for FOTA. every time i have to send extra 3MB file and this is not required to do, instead of that i have to change application only this will be less than 2MB so now i have to send for FOTA 2 MB only. not required to send SDK file.

    Already we have SDK function scatter file now we are developing our own another application scatter file. 

    so here is not required flash all code every time, flash only application file in that particular memory reasons .

    ------------------------------------------------

    This is only example ignore it. 

    I see that you are forcing gpio_pin(u32) to be at 0x10004. Are you getting link errors with the ER_1 region at 0x10000.

    No, i am not getting any errors i get only warnings of memory padding of 4 byte.  

Reply
  • Yes i can use one scatter file but if i want to change only application.o in scatter_1 file this will be not possible, then i have to flash both of file application.o and SDK_functio.o so this is little bit time consuming method for OTA. 

    if all SDK file in different scatter file and my application is different file, then i have to update application file only here i will save the program flashing time at the time of OTA. 

    suppose my SDK file size is 3MB and Application file size is 2MB then total size is 5MB file send for FOTA. every time i have to send extra 3MB file and this is not required to do, instead of that i have to change application only this will be less than 2MB so now i have to send for FOTA 2 MB only. not required to send SDK file.

    Already we have SDK function scatter file now we are developing our own another application scatter file. 

    so here is not required flash all code every time, flash only application file in that particular memory reasons .

    ------------------------------------------------

    This is only example ignore it. 

    I see that you are forcing gpio_pin(u32) to be at 0x10004. Are you getting link errors with the ER_1 region at 0x10000.

    No, i am not getting any errors i get only warnings of memory padding of 4 byte.  

Children