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

placing code at specific address

in main() I have two pieces of code - the first one needs to start at the beginning of main and it is very small the second one will be placed just after at the beginnig adddress + 200h
can you tell me the directive(s) to use to set this second piece of code to be placed at this specific address after the beginning of main()

Parents
  • You are talking about two separate programs that have a separate load region (check your linker user manual!) - a bootloader and an application. What you describe can be achived by a simple function call! You need to separate the programs - each program can be placed then at will - either using a scatter loading file or directly via the IDE (with limited capabilities). There are some samples on the NXP site.

Reply
  • You are talking about two separate programs that have a separate load region (check your linker user manual!) - a bootloader and an application. What you describe can be achived by a simple function call! You need to separate the programs - each program can be placed then at will - either using a scatter loading file or directly via the IDE (with limited capabilities). There are some samples on the NXP site.

Children
No data