Giter VIP home page Giter VIP logo

linuxvscppfpga's Introduction

linuxvscppfpga's People

Contributors

robseb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

anishe125

linuxvscppfpga's Issues

MSEL settings

In guide 1 on booting, there is an inconsistency between the text and the picture regarding the MSEL settings.
The picture shows 0b00100, while the text says 0b00101. I believe 0b00100 (picture) is correct.

ERROR: Writing the FPGA configuration failed

First off, I really appreciate all work in this repo.

I'm experiencing problem to read/write data on light-weight bridge with HPS while in SSH.

My hardware set-up is DE0 Atlas Nano version C (Cyclone V). My MSEL are set to:

image

The console output when trying to write the original FPGA binary file is as follows:
image

Some more info:
When executing a FPGA-readBridge, it times out and the watchdog timer in triggers a reboot of Linux.
image

Can anyone help me with providing some input on how I'll establish working FPGA-writeBrdge and FPGA-readBridge commands from the HPS.

GetStarted C++

This is more a question rather than an issue. I'm trying to compile GetStarted without Visual Studio. The example works perfectly well in remote-debugging mode of Visual Studio, but when I try to compile it manually on board, I get a segmentation fault in alt_gpio_init(). It might be due to command line flags that I am using.

The Makefile is:

TARGET = main

ALT_DEVICE_FAMILY ?= soc_cv_av
HWLIBS_ROOT = Linux_alt_lib/altera_hps/hwlib
#CROSS_COMPILE = arm-linux-gnueabihf-
CPPFLAGS = -g -Wall -D$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/ -I.. -Wformat=0 -std=c++11
CCFLAGS = -g -Wall -D$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/ -I.. -Wformat=0
LDFLAGS = -g -Wall -lpthread
CXX = $(CROSS_COMPILE)g++
CC = $(CROSS_COMPILE)gcc
ARCH= arm

CFILES = $(wildcard *.c)
OBJECTS = $(CFILES:.c=.o)

build: $(TARGET)
$(TARGET): main.o $(OBJECTS)
$(CXX) $(LDFLAGS) $^ -o $@
%.o : %.cc
$(CXX) $(CPPFLAGS) -c $< -o $@
%.o : %.c
$(CC) $(CCFLAGS) -c $< -o $@

.PHONY: clean
clean:
rm -f $(TARGET) *.a *.o *~

I compile main.cpp and alt_generalpurpose_io.c

FPGA-readBridge -hf 0 issue

First let me thank you for putting together this very nice solution for developing on DE10* platforms.

I have some issues that I'll split into separate github issues to keep track.

The first one is that on DE10-nano, FPGA-readBridge -hf 0 hangs, right after "Bridge: HPS-to-FPGA". The chip goes into a hard lock, then the watchdog reboots the device after a while. I experience no such issue on DE10-std, though.

Kind regards,
Rok

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.