Jimmy Nordin

Move a function (not main()) from FLASH to RAM

Discussion created by Jimmy Nordin on May 24, 2006
Latest reply on Jun 22, 2006 by CrasyCat
Hello world!
I am rather new to programming microcontrollers, so this may be a trivial thing for you to help me with.
I'm going to erase the Flash on a NE64 (SPI master) and then be able to burn a new program from a DP256B (SPI slave). In order to do this I have to move the SPI function that I have written and place the whole function in RAM. I would really appreciate if I could get any hint. I'm thinking about using the #pragma directive but maybe there are easier ways to solve this problem.
Thanks in advance!