GithubHelp home page GithubHelp logo

inpyjama / c-ninja-listings Goto Github PK

View Code? Open in Web Editor NEW
78.0 78.0 345.0 3.25 MB

Lower level assembly and C baremetal programming on RISC-V CPUs. Source code listings from the C-Ninja, in Pyjama! book.

Home Page: https://inpyjama.com

Dockerfile 24.60% Shell 14.90% Makefile 37.46% Assembly 5.41% Batchfile 13.49% C 4.15%
assembly-language baremetal c linker-script makefile risc-v riscv32

c-ninja-listings's People

Contributors

dtom7 avatar piyushthange avatar streetdogg avatar therustyengineer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

c-ninja-listings's Issues

vs code error

This is what i am getting in vs code . Kindly help
Screenshot 2024-06-17 003143

signed vs unsigned char

if Char is used for representing ASCII symbols, what is the significance of having a signed and unsigned 'char'?. does a signed and unsigned char point to a different symbol or the same symbol?. if they both represent the same symbol why the extra keyword usage?

riscv x0

posting it here for better reach and getting the basics right.

image

pasword

please give the pasword of the c-ninja

Issue in make debug

issue_exit_debug

may be I failed to exit debug or don't understand what happend not able to make debug now.

bash setup.sh fails to complete

Hello,
While trying to execute bash setup.sh i encounter the following problem:

` => ERROR [6/9] RUN apt-get install --no-install-recommends -y ca-certificates sudo gdb-multiarch gcc-riscv64-unknown-elf binutils-common make curl 4.2s

[6/9] RUN apt-get install --no-install-recommends -y ca-certificates sudo gdb-multiarch gcc-riscv64-unknown-elf binutils-common make curl git-core wget nano ssh tree less build-essential python3 python3-dev binutils make binutils-riscv64-linux-gnu qemu-system-riscv32 zsh xxd strace man:
0.809 Reading package lists...
3.514 Building dependency tree...
3.883 Reading state information...
4.093 E: Unable to locate package gcc-riscv64-unknown-elf
4.093 E: Unable to locate package qemu-system-riscv32`

It looks like it can not locate gcc-riscv64-unknown-elf and qemu-system-riscv32.
I am running on Ubuntu 18.04.
Do you have any idea what could be the problem here, might it be the Ubuntu version, the fact that i didn't install the Docker Desktop (i don't think the these should pose any problem by the way) or is it something else of which i am not aware?

Thank you

Permission Denied Error when Running 'make' in '/Document/test' directory

I'm encountering an issue when trying to run 'make' in the /Document/test directory while following the YouTube video(C-Language: C Ninja, in Pyjama! - #0. Lab Setup!) at 12:44

c-ninja@c-ninja-linux ~/Documents/test
% make
riscv64-unknown-elf-gcc -O0 -ggdb -nostdlib -march=rv32i -mabi=ilp32 -Wl,-Tmain.ld main.s -o main.elf
/usr/lib/riscv64-unknown-elf/bin/ld: cannot open output file main.elf: Permission denied
collect2: error: ld returned 1 exit status

I have also attached the screen of my terminal.
Screenshot from 2023-09-17 12-21-06

Here are the details when I run uname -a in my terminal.
Screenshot from 2023-09-17 12-26-32

I am using ubuntu.
image

trouble with dev container

when i the open remote explorer and try to launch c-ninja-listing in dev containers iget this error[pic attached below]
Screenshot (399)

Understanding cores in microprocessor

Hello,
I have a doubt
Cortex M4 has 4 cores in one processor
Infeion AURIX controller has 4 cores which they call 4 different processor

could you please explain how 4 cores in a processor and 4 different processor in one microcontroller is different?

Issue in make debug terminal

I am able to successfully close the make gdb terminal
but when I am trying to close make debug terminal with ctrl+a followed by x, nothing is happening
Screenshot from 2023-10-26 10-11-17

Error when I enter the docker command

image

I have tried entering the command you mentioned and it does not work should I be doing any kind of setting on the docker side??

I see that c-ninja is running on Docker
image

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.