LPC8 power profile API

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

LPC8 power profile API

447件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by antodonne on Fri May 03 09:46:43 MST 2013
Hello,

I am facing some issue when trying to access the ROM and execute the Power Profile API on LPC812.

I reach directly the hardfault handler, but the ROm is clocked.

Did some one has an idea of what is happening?

Thank you for your help.

Antoine

part of my code is here:



LPC_SYSCON->SYSAHBCLKCTRL |= 0x2;  // enable ROM
LPC_SYSCON->SYSPLLCLKSEL =  0x0;   // IRC as PLL clock source
LPC_SYSCON->MAINCLKSEL |= 0x1;     // set main clock source as PLL input clock    
LPC_SYSCON->SYSAHBCLKDIV |= 0x1;   // AHB CLK DIV set to 1

command[0] = 12000;
command[1] = 30000;
command[2] = CPU_FREQ_EQU;
command[3] = 0;
(*rom)->pWRD->set_pll(command, result);
while(result[0]!=0)
  {}
0 件の賞賛
返信
0 返答(返信)