Questions tagged [assembly]
A low-level programming language providing symbolic representation of machine code.
1
vote
1answer
35 views
Read/Write GPIO
I wrote an assembly code for my Raspberry Pi to read an I/O with a button and switch an LED according to the state of the button. It seems that the I/O with the LED is toggling all the time and I don´...
2
votes
1answer
57 views
bootcode.bin RPi 3
I've been reading this document:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/bootflow.md
About the boot process of the Raspberry Pi. I want to make a simple "Hello, ...
3
votes
1answer
102 views
Why does adding a nop or constant break my code?
I am learning the ARM architecture via bare metal programming on the Raspberry Pi 3. I have a booting "kernel" that prints out some info. I have reached a point that I don't understand what is ...
0
votes
0answers
90 views
How could I draw a persistent overlay on the Official Touch Screen?
I have the Official 7" Screen connected to a Pi 3B V1.2. I want to create an overlay to be displayed on the screen at all times (regardless of whether I'm in a desktop environment like X, a CLI, etc.)....
2
votes
2answers
559 views
Is there a program to execute assembly code and check registers?
In our university we have a computer's technology subject in which we have to program in ARM's assembly language.
We have the chance to use a simulator but I was wondering if I was able to execute ...
0
votes
0answers
53 views
Raspberry Pi 3 not booting up after the following tutorial
I purchased a Raspberry Pi 3 kit from
https://www.amazon.com/Vilros-Raspberry-Basic-Starter-Kit/dp/B01D92SSX6/ref=sr_1_1?ie=UTF8&qid=1487976996&sr=8-1&keywords=raspberry+pi+vilros
When ...
3
votes
1answer
139 views
OS-less raspberry pi 2 debugging of Assembly language
I have a Raspberry Pi 2 without an OS installed. I have an assignment where I have to create and display some code in assembly language for the Pi 2.
The lab that we have set up at school has ...
0
votes
1answer
146 views
unable to set GPIO 17 as an output by assembly program
I am trying to st GPIO 17 as an output. I am using Pi 2 model B. By searching for the base address of peripherals, I found that it is 0x3F000000. I want to write a code in assembly language, Following ...
0
votes
0answers
132 views
Controlling the act-led
Hello everyone
I am trying to control the act-led of my raspberrypi 2 running jessie.
By following steps provide by this link
*my main.s code is
.section .init
.globl _start
_start:
ldr r0,=...
3
votes
1answer
225 views
Regarding assembly language programming in Raspberry Pi
I am learning assembly language programming in Raspberry Pi 2 model B. I know about Code::Blocks and gdb. Using assembly language the processor's register can be controlled, but I want to control the ...
1
vote
0answers
198 views
RPi2 bare metal blinker
This is my first assembly program. I have a FAT32 formatted SD card with latest bootcode.bin, start.elf, and a flat binary named kernel7.img converted from the following dumped ELF file:
build/kernal....
2
votes
2answers
977 views
On-board LED connection to GPIO
I stumbled on this tutorial: http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/ok01.html
Unfortunately this is only made for the B rev2 board, whereas I got a B+ board and the board setup is ...
3
votes
1answer
390 views
Disassemble i386 in Raspbian?
I want to disassemble i386 machine instructions into human readable text in Raspbian.
I am a rookie Linux user and don't know the configuration of installed tools, but from what I understand I need ...
2
votes
1answer
844 views
Windows IoT Core GpioController - assembly 'Windows' causes a cycle
I am trying my new Raspberry Pi with Windows 10 IoT Core.
I have fallowed the steps of the installations and cofigurations, and every thing was fine until I've got to Blanky tutorial
http://ms-iot....
0
votes
1answer
62 views
Baking Pi OK05 - Why “ldr” twice to make the pattern work?
I'm carefully following Baking Pi with my model B, making sure I fully understand everything going on. I am now at lesson 5, to flash the SOS Morse code. It works fine, but I am curious why it needs ...
1
vote
2answers
2k views
Pi 2 CPU Documentation
I'm interested in processor architecture, and assembly programming, but I can't seem to find any documentation, or even the datasheet on the CPU of the Pi 2 (BCM2836). The document I'm looking for ...
3
votes
1answer
773 views
Baking Pi Lesson 02 does not work on B+
I would like to comprehend lesson 2 of Baking Pi, but I am not able to get the LED blinking.
I am using Windows and have installed Cygwin and the ARM tool chain. As explained in the requirements, I ...
3
votes
1answer
586 views
ASM - how do I write graphics straight to the screen
I have some old RISC OS assembly programmes I wrote a few years back and I want to port them to Raspberry Pi.
I ran Mode 28 and wrote output directly to the screen using the memory address where v-...
2
votes
0answers
2k views
Assembly - set gpio as input
I have 2 leds and one button.
both green and yellow led off when booting from card.
When the button is pressed, i want to turn green led off and yellow led on.
However, I have to write assembly. I ...
1
vote
0answers
102 views
Memory addresses
I am writing an assembly program, assembling it and replacing the kernel.img file on a SD card with raspbian installed on it.
Will the memory address of the first instruction be zero? Either because ...
1
vote
2answers
2k views
Assembly code on Raspberry Pi
What's the file extension for assembly code? Can it even be written by a text editor?
My plan was to use nano to write the program (for syntax highlighting), so would that work? If not, what do I ...
2
votes
1answer
658 views
Run program on Baking Pi ARM ASM OS
I am following the Baking Pi Raspberry Pi ASM OS tutorial here, and I thought that it would be cool if I could create a compiler/runner for like, BASIC or a language I create. I don't have the skill ...
0
votes
2answers
1k views
Kernel module assembly output
I compiled the kernel modules written in C directly on my Raspberry Pi using this Makefile:
obj-m := HelloWorld.o
all:
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
...
17
votes
5answers
20k views
Write an OS for Raspberry Pi in C
I already found the Baking Pi tutorials, but they only use assembly language. I followed the first lessons, but I am already wondering how to use C instead. I mean, there is a reason they invented ...
2
votes
1answer
417 views
Assembling Thumb on Rasparian
Has anyone been successful in assembling, compiling and running thumb or thumb-2 on Rasparian. Here is an example of my assembly code:
.text
.global main
.code 16
main:
MOV r3,#1
finish:
...