LPC55S69: enable SRAM clocks

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

LPC55S69: enable SRAM clocks

1,429件の閲覧回数
EugeneHiihtaja
Senior Contributor I

Hi !

For worj with USB SRAM I should enable clock kCLOCK_UsbRam1 explictly in my code e.g. CLOCK_EnableClock(kCLOCK_UsbRam1). ConfigTool is also not generate this line in any mode.

But what about other SRAM /flash section and Flash ?

There are mentioned in clock_ip_t enumeration

kCLOCK_Sram1 = CLK_GATE_DEFINE(AHB_CLK_CTRL0, 3),
kCLOCK_Sram2 = CLK_GATE_DEFINE(AHB_CLK_CTRL0, 4),
kCLOCK_Sram3 = CLK_GATE_DEFINE(AHB_CLK_CTRL0, 5),
kCLOCK_Sram4 = CLK_GATE_DEFINE(AHB_CLK_CTRL0, 6),
kCLOCK_Flash = CLK_GATE_DEFINE(AHB_CLK_CTRL0, 7),

Are the enabled by default ? Or BootROM enable those.

Or the managed by some PowerLib API or ROM api.

How to undestand ?

Regards,

Eugene

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

1,296件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi Eugene!

I am working on your question.

Please, provide me additional time to check

Regards,

Diego.

0 件の賞賛
返信

1,296件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi Eugene!

Thank you for your patience,

On  the beginning of your application their controllers are already enabled by default, as we can see

on the following screenshot

pastedImage_3.png

Regards,

Diego

1,296件の閲覧回数
EugeneHiihtaja
Senior Contributor I

Hi diego.charles‌ !

I can see in UM, default value for AHBCLKCTRL0 register is specified. It means SRAMn clocks enabled somewhere in bootrom. In this case is difficult to  trust if clocks always will be enabled there ( or disabled/enabled again ) and SRAM retain over reboot in next versions of bootrom if any.

By the way, I haven't found any clock enable for SRAM X area. Is this type of SRAM  always ON or it is just in other registers ?

But I think it is good idea to have clear spec. in what states registers remains after bootrom.

Regards,

Eugene

0 件の賞賛
返信

1,296件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi Eugene,

You should not worry about the SRAM X areas, they are enabled by default.

As you know, you could control their retention state during low power modes using the sram_retention_ctrl register.

Regards,

Diego

0 件の賞賛
返信