We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this questionI'm familiar with X86[-64] architecture & assembly. I want to start develop for an ARM processor. But unlike desktop processors, I don't have an actual ARM processor. I think I need an ARM simulator.
http://www.armtutorial.com/ say
An ARM assembly compiler will be required, the most accessible is the ARMulator.
I thought of downloading Armulator but found from http://forums.arm.com/index.php?showtopic=13744 that
Its not sold seperately. But you can download an eval of RVDS - which includes RVISS/ARMulator
I've downloaded & installed RVDS but It looks very complex. I'm unable to figure out what do I need to do to write ARM assembly & run it.
- I want to write in assembly not in C/C++. I don't have an ARM processor. What is a good simulator?
- Can any one please mention in short. How to write assembly & assemble & simulate using RVDS. Please be clear?
- Are there any other alternative ways. I can't afford buying any kind of boards.
I always 开发者_JAVA百科learn from books rather than tutorials. I'm following these two books:
- ARM System Developer's Guide: Designing and Optimizing System Software (The Morgan Kaufmann Series in Computer Architecture and Design)
- ARM System-on-Chip Architecture (2nd Edition)
Do you have any better suggestions?
Options for environments
- Install Linux in the QEMU system emulator. It can emulate a variety of ARM-based chipsets.
- Get an emulator for a specific ARM-chipset like a game handheld. Gameboy Advance is fun to play with. NoCash GBA and VisualBoy Advance are two great GBA emulators.
Toolchains
You will need a toolchain. A toolchain is a collection of low-level tools like an assembler, a linker, a compiler, an archiver and a bunch of other usefull stuff. Even more, you want a cross-toolchain, which means that the toolchain runs on one system, but builds executables for another architecture. This way you can build applications that run on ARM-devices, but on your x86-based PC. It's faster and more convenient.
If you run Windows, DevkitPro is a fairly good choice. For Unix/Linux/BSD variants, you have CodeSourcery's free toolchains, and the GCC toolchain from gnuarm.com. There are several others, but you don't need more options.
Documentation
Get the specification for your ARM CPU of choice at infocenter.arm.com. One reference you need no matter the CPU is the ARM Architecture Reference Manual (Often abbreviated ARMARM). I'm hosting an older version, which covers the ARM architecture and instruction set version up to ARMv4T, here, but you will find the current and later versions on infocenter.arm.com as well. If you go for GBA, notice that the CPU is an ARM7TDMI, with the instruction set version ARMv4T.
The ARMARM contains tips and examples for usual nitty-gritty system coding, tips on how to proceed on certain design issues, as well as a reference of both the ARM instruction set, Thumb instruction set and co-processors like MMUs, MPUs, DSPs and FPUs.
If you stick with QEMU, that's pretty much all you need, since the Linux kernel handles everything. QEMU also has user-mode emulation (with a C-library stub). If you go for one of the GBA emulators, here's a nice reference over the GBA hardware and hardware registers: CowBiteSpec. Also make sure to check out http://www.gbadev.org/.
Nintendo DS is probably an option as well, but I don't know of any decent emulators for that handheld yet. Good luck to you :-)
EDIT: Here's a trivial example of some GBA code I wrote years ago: GBA Color fill 240x160 16-bit example
A few comments, not competing for a complete answer to the posters question.
The beagleboard is cool, $150 but it takes another $150 in usb stuff to make it useful. The embest beagleboard is cheaper overall due to the lack of stuff you have to buy to go with it. But now there is the hawkboard, also an omap based board, costs under $100 and so far seems very well done. I am liking it more than the beagleboard at the moment, far less painful.
The open-rd board offers far more than the beagleboard for that price range, something to look into if/when you have a toy budget. both the open board and the enclosed for another $100 have a full sata connector so you can put a laptop drive on it and not have to use painfully slow flash devices or usb.
The poster doesnt have the resources to buy these toys. I would argue that if you continue to pursue this and get good at embedded ARM you will have the will and find the way. Which is why I mention Sparkfun and others have $30-$50 boards that work out of the box. Post a question to stackoverflow before you buy though asking which is better. I have many and there are a number of them I found unusable or too painful to bother with, I wouldnt want you to spend all your toy budget on something that is not worth having.
I have some qemu arm integrator example code laying around here, let me package it up and provide a working example. I have lots of other arm and gba code laying around, maybe I will post that as well.
The ARM architecture started out and last time I worked with their people/tools using an emulator called the armulator (google/wikipedia it). So emulating arm in particular is not uncommon.
Writing your own emulator would/could be a fun project or taking an existing one and adding your own peripherals. qemu and mame are too bulky to play with as-is, you might be able to extract the arm from mame without too much trouble.
You could get yourself something like a BeagleBoard to play with - they only cost around $200. You can install Ubuntu and the ARM toolchain on it.
Go get one RPi3 for you. You can check https://www.element14.com/community/community/raspberry-pi.
This is really cheap and very simple to use. And you well get great community support as well. Check https://www.raspberrypi.org/products/raspberry-pi-3-model-b/ for more information.
精彩评论