LPC8 power profile API

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC8 power profile API

185 次查看
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 回复数