LPC55S69 POWER_EnterPowerDown random bug

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

LPC55S69 POWER_EnterPowerDown random bug

621件の閲覧回数
v_canoz
Contributor III

Hello, In our LPC55S69 project , using Freertos, we are encountering random bugs in the .POWER_EnterPowerDown API function.

Versions used :

  • arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
  • #define _NEWLIB_VERSION "3.1.0"
  • FreeRTOS Kernel V10.3.0
  • SDK 2.8, using hard ABI

At first, POWER_EnterPowerDown seems to work well. However, sometimes, the CPU gets stuck in the function without effectively going to power down (we know this because the CPU current alone is about 4mA).

 

 

  1. Given we don't have access to the source code, what can cause this function to crash, or to loop?
  2. Moreover, the debugger gets lost when this error happens, and we can find the following comment The HARD FAULT handler should execute from SRAM. (The Hard fault handler should initiate a full chip
    reset) reset). When using the managed linker, in what section should we put the Hardfault handler? What is exactly the attribute we should add above the function declaration/definition?
  3. I suppose any pending interrupt before calling the function will be problematic, is that right?

Thanks in advance for your answers,

Victor

ラベル(1)
0 件の賞賛
1 返信

595件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Victor,

Pls refer to the following remarks. I suppose that the pending interrupt leads to the issue that you can not enter the power down mode sometimes not often.

so before you can the power down function, you can clear all the pending interrupt.

Hope it can help you

BR

XiangJun Rong

 

xiangjun_rong_0-1604557736464.png

 

0 件の賞賛