Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

GPIO(HPS) Output how to start?

Hello!

I want to start HPS GPIO (HPS_GPIO53) as output.

What i do:

  1. Clear reset from GPIO module(write to 0xFFD05014 value 0x31FFFFFF) the module start and i can read form gpio_ver_id_code form 0xFF70906C

  2. Set gpio_swporta_ddr to to 0x0FFFFFFF

  3. Set gpio_swporta_dr to 0x0FFFFFFF

If i doit this from debbuger then uboot start then allright my led is ON.

But if i doit before preloader(remove SD Card). LED if off and not changing.

I think that i need to configuring pinmux but i cant undestand that i need doing for right configuring pinmux.

Anybody can write step by step what i need doing to start HPS_GPIO53 as output without preloader.
No RepliesBe the first to reply