Community
cancel
Showing results for 
Search instead for 
Did you mean: 
APaci1
Novice
2,071 Views

I'm in trouble managing by the fpga section some pins connected to the hps section.

I have two input pin as buttons connected to hps and their status are the input to a component in fpga, they work correctly.

 

The others 3 output pins, connected to hps as leds, are controlled by a component of the fpga managed by a NIOS routine, they doesn't work.

 

I manage the leds by a custom component programmed by Avalon Memory Mapped Interface, 

its output is the status of single led ( off, on, slow blinking, fast blinking and so on)

 

They stay permanently in ON state, independently to the the status programmed by software.

 

 

in the attach,  I have extracted the vhdl code of relative to the connection of the leds (not work) and the keys (working).

0 Kudos
6 Replies
Ahmed_H_Intel1
Employee
68 Views

Hi,

What device you are using? CV, A10, etc

Are you using a development-kit or custom board?

I am a bit confused, is the issue how to get the correct pin planning?

Regards.

APaci1
Novice
68 Views

​Hi,

 

Thankyou for the reply.

 

I'm using a CV 5CSEBA4U23 on a custom board.

 

This issue is to help me to understand how drive a led connected to an hps pin by a fpga's routine.

On Pheripheral_Pin/MuxTable I have set as LOANIO the pins connected to the leds on the hw board.

They are LOANIO40, LOANIO44 and LOANIO53 mapped respectively to PIN_H13, PIN_B12 and PIN_A20.

 

I should like to know the error of the configuration of the loanIO pin related to the led section.

Thanks in advance

 

Giordano

 

Ahmed_H_Intel1
Employee
68 Views

How fast is the LED blinking frequency (Controlled by NIOS delay), normally people see the LED on because it is blinking very fast. As long as nothing else is blinking the lED and you see it is always ON, we suspect the Code in NIOS II. How long is the delay?

APaci1
Novice
68 Views

Hi,

I believe that led management has created a bit of confusion.

To avoid management problems with the software, I have directly driven the LEDs with a fixed value, some at 1 and the others at 0.

In my code I wrote:

hps_0_h2f_loan_io_out(53) <= '1' ; -- Red

hps_0_h2f_loan_io_out(40) <= '0' ; -- Yellow

hps_0_h2f_loan_io_out(44) <= '1' ; -- Green

Also in this way all the LEDs are on.

 

I want to know if I can use pins connected to the HPS section both as input and output in LOAN mode.

In my project the pins connected in HPS and used as input in LOAN mode work correctly,

the HPS pins used as output in LOAN mode do not work.

 

Can you check my code attached?

Is my code for the HPS pin section in LOAN mode written correctly or does it wrong for output pins?

 

Thankyou in advance, i looking forward your news.

 

Giordano

APaci1
Novice
68 Views

​Hello,

have you any suggestion?

I haven't solve the problem yet!

I should like to know the correct way to use the loan pin of hps section in output mode.

Which is the right code to configure them in output mode?

I looking forward your news!

Best regards

 

Giordano

AeCTech

APaci1
Novice
68 Views

Hello to everyone, Forgive me if I insist on soliciting your suggestion, but I need to find a solution. Looking in the forum about this topic, I've found similar problems where getting the status of a hps pin from fpga works well (input mode), while there are problems driving a hps pin from fpga (output mode). I summarize the operations I have performed: *) In the top level entity section I listed the signals used as loanIO in hps *) In platform design I set the mux table of hps as LoanIO the selected pins *) I exported as conduit the h2f_loan_io group *) In vhdl code I set to 1 the output pins in the h2f_loan_oe bus. *) I assigned the desidered value to output bus h2f_loan_in bus That’s all, but it doesn’t work correctly. Do I forget something? Best regards Giordano Silvestri AeCTech Da: Intel Forums <supportreplies@intel.com> Inviato: mercoledì 16 gennaio 2019 06:48 A: randd@aectech.it Oggetto: Embedded_guy answered you: I'm in trouble managing by the fpga section some pins connected to the hps section. How fast is the LED blinking frequency (Controlled by NIOS delay), normally people see the LED on because it is blinking very fast. As long as nothing else is blinking the lED and you see it is always ON, we suspect the Code in NIOS II. How long is the delay? <https://forums.intel.com/0050P000008IeFV?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> Embedded_guy <https://forums.intel.com/0050P000008IeFV?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> (Intel) How fast is the LED blinking frequency (Controlled by NIOS delay), normally people see the LED on because it is blinking very fast. As long as nothing else is blinking the lED and you see it is always ON, we suspect the Code in NIOS II. How long is the delay? or reply to this email Replying to <https://forums.intel.com/0050P000008Jh7M?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> APaci1 <https://forums.intel.com/0050P000008Jh7M?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> (Customer) asked a question. <https://forums.intel.com/0D50P00004BM1S2?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> Thursday, 10 January 2019 15.47 I'm in trouble managing by the fpga section some pins connected to the hps section. I have two input pin as buttons connected to hps and their status are the input to a component in fpga, they work correctly. The others 3 output pins, connected to hps as leds, are controlled by a component of the fpga managed by a NIOS routine, they doesn't work. I manage the leds by a custom component programmed by Avalon Memory Mapped Interface, its output is the status of single led ( off, on, slow blinking, fast blinking and so on) They stay permanently in ON state, independently to the the status programmed by software. in the attach, I have extracted the vhdl code of relative to the connection of the leds (not work) and the keys (working). <https://forums.intel.com/sfc/images/docicons/doctype_txt_48.png?v=210&fromEmail=1> <https://forums.intel.com/0680P000005jn5i?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> MyCode.txt <https://forums.intel.com/sfc/servlet.shepherd/version/download/0680P000005jn5i?asPdf=false&operation...> Download (txt) <https://forums.intel.com/0050P000008IeFV?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> Embedded_guy <https://forums.intel.com/0050P000008IeFV?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> (Intel) How fast is the LED blinking frequency (Controlled by NIOS delay), normally people see the LED on because it is blinking very fast. As long as nothing else is blinking the lED and you see it is always ON, we suspect the Code in NIOS II. How long is the delay? <https://forums.intel.com/0D70P000006BWqp?fromEmail=1&s1oid=00DU0000000YT3c&s1nid=0DB0P000000U1Hq&s1u...> Wednesday, 16 January 2019 5.47 You're receiving emails when someone "Comments on my posts." To change or turn off Forums email, log in <https://forums.intel.com/_ui/core/feeds/notification/ChatterEmailSettings?setupid=CollaborationEmail...> as 300001930847@intel.com.isvc <mailto:300001930847@intel.com.isvc> . Are notifications about this post getting annoying? Reply to this email with the word " mute ". For Privacy and Legal notices, please visit these links: http://www.intel.com/privacy, https://www.intel.com/content/www/us/en/legal/terms-of-use.html. <https://forums.intel.com/servlet/servlet.ImageServer?id=0150P000006Fyt5&oid=00DU0000000YT3c&fromEmai...> <https://forums.intel.com/servlet/eMMetric?fromEmail=1&emoid=00DU0000000YT3c&emnid=0DB0P000000U1Hq&em...>
Reply