Function call at address in ROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Function call at address in ROM

455件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Loop on Thu Sep 27 05:24:31 MST 2012
Hey,

I need to call a function over a known address(0x40000) in ROM. My solution is working without troubles.
But when I debug the system and want to upload new code I always get a ET:Flash driver not ready message.
After restart(Ends up in the HardFault_Handler) I can write on the Flash again.

    Bool8 (*UnknownGetFunctions)(ttag_RTOSFunctions*);
    uInt32* uiUnknownInterfaceAddressPointer = (uInt32 *)0x40000;
    UnknownGetFunctions = (void*)*uiUnknownInterfaceAddressPointer; //*address; //0x7ccc0;

    ttag_RTOSFunctions ptagRTOSFunctions;

    UnknownGetFunctions(&ptagRTOSFunctions);


So is there a problem in my code, or does the debugger have troubles understanding the call of my function?
0 件の賞賛
返信
0 返答(返信)