AnsweredAssumed Answered

Error using #pragma section("sdram0") in function?

Question asked by sauwen on Jan 12, 2011
Latest reply on Jan 13, 2011 by CraigG

I have a bunch of #pragma section("sdram0") that are specified in my main function and they seem to work fine.  However, when the main function calls another function, and I have a header in that function that also has a #pragma section("sdram0"), the project builds but when it runs, the disassembly says unknown exception occurred, do not know what to do.  Is putting the #pragma section("sdram0") in a function header illegal that is only involved in the startup of the code?  The only way I see around this is initializing the variable in main and then passing the variable to the function that way.

 

Thanks!

Outcomes