Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21607 Discussions

GPIO(HPS) Output how to start?

Altera_Forum
Honored Contributor II
1,400 Views

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.
0 Kudos
0 Replies
Reply