This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash usage of programs and softdevice

I'm trying to write a firmware for PCA10001, which works like a bootloader. In other words, it can download some data into the Flash. To avoid conflicting with the existed program itself, I need to know the exact position of the program and the softdevice.

Is there any macro or function that can tell me the START/END address of my program?

Thanks.

Parents
  • I suspect this should be static, as in you program won't change over the course of its lifetime. Couldn't you just define these memory values in your application? In Keil (I don't know what you are using tho) you have defined the target location of your application. Looking at the output from compiling you can see the size of your app and calculate from that. A couple of #defines should suffice your needs, won't it?

Reply
  • I suspect this should be static, as in you program won't change over the course of its lifetime. Couldn't you just define these memory values in your application? In Keil (I don't know what you are using tho) you have defined the target location of your application. Looking at the output from compiling you can see the size of your app and calculate from that. A couple of #defines should suffice your needs, won't it?

Children
No Data
Related