Giter Site home page Giter Site logo

Comments (5)

gmartin102 avatar gmartin102 commented on June 18, 2024

Assuming you are running on the FPGA emulation platform nexys? Did you remap and rebuild to move the IO's to connect to the nexys Switches and LEDs? otherwise the pins you are controlling are not connected as you expect.

from core-v-mcu-cli-test.

WazaAbdulkadir avatar WazaAbdulkadir commented on June 18, 2024

from core-v-mcu-cli-test.

WazaAbdulkadir avatar WazaAbdulkadir commented on June 18, 2024

I also tried with using hal_read_gpio_status() still input value is always 1.
Code is below:

 ```
 hal_setpinmux(21,2);
 hal_set_gpio_mode(14,1);

 // SET SWITCHES AS INPUT

  hal_setpinmux(29,2);
  gpio_hal_typedef switch1;
  switch1.number = 22;
  switch1.mode   = 0 ;


  hal_write_gpio(14,0);
  while(1){

	  hal_read_gpio_status(&switch1);

	 if (switch1.in_val = 1) {
		 hal_write_gpio(14,1);
	 }
	 else {
		 hal_write_gpio(14,0);
	}

from core-v-mcu-cli-test.

MikeOpenHWGroup avatar MikeOpenHWGroup commented on June 18, 2024

Hi @WazaAbdulkadir. this issue seems to be a duplicate of core-v-mcu #304. It would be most helpful if you could attempt to determine whether the issue is in the MCU itself or CLI-Test.

from core-v-mcu-cli-test.

WazaAbdulkadir avatar WazaAbdulkadir commented on June 18, 2024

This issue will be discussed here

from core-v-mcu-cli-test.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.