Comments (5)
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.
from core-v-mcu-cli-test.
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.
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.
This issue will be discussed here
from core-v-mcu-cli-test.
Related Issues (11)
- Add Raj as contributor HOT 2
- CLI_TEST failures during testing HOT 1
- Find USB ports HOT 1
- Hardcoded path to gdb
- Errors while building cli-test in eclipse HOT 1
- Error: dtmcontrol is 0. Check JTAG connectivity/board power. HOT 15
- Is it possible with available header files and c souce codes to generate bare-metal application? HOT 1
- A2 bootloader stuck on booting from Flash HOT 2
- Read switch display on led
- Programming QSPI Flash HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core-v-mcu-cli-test.