Processor Expert and VLLSx

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

Processor Expert and VLLSx

ソリューションへジャンプ
1,310件の閲覧回数
marknordstrand
Contributor III

I'm trying to exit out of VLLS1 on a mk20dn512VLQ10.  Code was generated with CW 10.4.  If the MCG is set up for FEI, the pin for LLWU works as expected.  Switching the MCG to PEE and nothing happens.  From the ref. manual and the Kinetis Low Power Modes manual, I understand the MCG should already be in FEI, so I can see why this is working with little effort.  I did see there is a __init_hardware() in Sources/Cpu.c which looks like it handles the transitions from FEI to PEE.  Tried calling that directly and copying and modifying it to no avail (and setting the ACKISO bit afterwards).  What besides the code in __init_hardware() should be done to get out of VLLS1?

ラベル(1)
0 件の賞賛
返信
1 解決策
1,193件の閲覧回数
marknordstrand
Contributor III

So, turns out to fairly simple.  The docs are good, but don't take CW into account.  __init_hardware() is mostly correct, but it needs to have the ACKISO check added.  Turns out this can be done from the CPU Component Inspector:  Build Options --> User Initialization --> User code before PE Initialization.

Now there's the problem of having the same pin put the processor back into VLLS1.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,194件の閲覧回数
marknordstrand
Contributor III

So, turns out to fairly simple.  The docs are good, but don't take CW into account.  __init_hardware() is mostly correct, but it needs to have the ACKISO check added.  Turns out this can be done from the CPU Component Inspector:  Build Options --> User Initialization --> User code before PE Initialization.

Now there's the problem of having the same pin put the processor back into VLLS1.

0 件の賞賛
返信