|
how to execute function from RAMNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Author wario d Posted 2-Jul-2008 08:51 Toolset ARM |  how to execute function from RAM wario d Hi, I apologize if this question has been asked before but I couldn't find an answer. I want to clear GPNVM2 bit but to do that I need to copy the function that does that to RAM and run it from RAM. Has anyone done this before? I've seen few posts about setting/clearing GPNVM bits so these people figured out how to copy function to RAM. IAR uses __ramfunc but that is only for IAR. Do I just have to copy function from flash to RAM and it would work? using memcpy()? Thanks | | Author wario d Posted 7-Jul-2008 15:09 Toolset ARM |  RE: how to execute function from RAM wario d Ok I figured out how to copy function to RAM and execute it but I found another problem now. When I try to write to flash to clear GPNVM 2 bit my system crashes and doesn't execute any code after I write to flash. Anyone encountered the same problem? Am I forgetting something when trying to clear GPNVM bit 2 ? Thanks | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|