21

私はX86[-64]のアーキテクチャとアセンブリに精通しています。ARMプロセッサの開発を始めたいと思います。しかし、デスクトッププロセッサとは異なり、私は実際のARMプロセッサを持っていません。ARMシミュレータが必要だと思います。

http://www.armtutorial.com/言う

ARMアセンブリコンパイラが必要になります。最もアクセスしやすいのはARMulatorです。

Armulatorをダウンロードすることを考えましたが、http: //forums.arm.com/index.php?showtopic=13744から

別売りではありません。ただし、RVISS/ARMulatorを含むRVDSの評価をダウンロードできます。

RVDSをダウンロードしてインストールしましたが、非常に複雑に見えます。ARMアセンブリを記述して実行するために何をする必要があるのか​​理解できません。

もっと良い提案はありますか?

4

4 に答える 4

23

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

于 2010-04-16T10:05:31.233 に答える
7

ポスターの質問に対する完全な回答を求めて競合していない、いくつかのコメント。

ビーグルボードは150ドルとかっこいいですが、便利にするためにさらに150ドルのUSBが必要です。embest beagleboardは、それに合わせて購入する必要のあるものが不足しているため、全体的に安価です。しかし、今ではホークボードもあります。これもomapベースのボードで、価格は100ドル未満で、これまでのところ非常によくできているようです。私は今のところビーグルボードよりもそれが好きで、はるかに痛みが少ないです。

open-rdボードは、その価格帯のビーグルボードよりもはるかに多くのものを提供します。おもちゃの予算がある場合は、何かを調べる必要があります。オープンボードと同封の別の100ドルの両方に、完全なsataコネクタが付いているので、ラップトップドライブをその上に置くことができ、痛々しいほど遅いフラッシュデバイスやUSBを使用する必要はありません。

ポスターには、これらのおもちゃを購入するためのリソースがありません。これを追求し続け、組み込みARMが上手になれば、意志があり、道を見つけることができると私は主張します。そのため、Sparkfunやその他のボードには、箱から出してすぐに使用できる30ドルから50ドルのボードがあります。どちらが良いかを尋ねますが、購入する前にstackoverflowに質問を投稿してください。私にはたくさんありますが、使い物にならない、または面倒くさいものがたくさんあります。おもちゃの予算をすべて、持つ価値のないものに費やしてほしくないのです。

ここにqemuarmintegratorのサンプルコードがいくつかあります。パッケージ化して、実際の例を示します。他にもたくさんのarmとgbaのコードがあります。多分それも投稿します。

ARMアーキテクチャが始まり、前回、armulator(google / wikipedia it)と呼ばれるエミュレータを使用して彼らの人々/ツールを操作しました。したがって、特に腕をエミュレートすることは珍しいことではありません。

独自のエミュレーターを作成することは、楽しいプロジェクトになるか、既存のエミュレーターを使用して独自の周辺機器を追加することになるでしょう。qemuとmameはかさばりすぎてそのままでは遊べないので、あまり問題なくmameから腕を抜くことができるかもしれません。

于 2010-04-18T00:36:54.240 に答える
4

BeagleBoardのようなものを試してみることができます。費用は約200ドルです。UbuntuとARMツールチェーンをインストールできます。

于 2010-04-16T06:37:21.720 に答える
-1

RPi3を1つ入手してください。https://www.element14.com/community/community/raspberry-piを確認できます。

これは本当に安くてとても使いやすいです。そして、あなたも素晴らしいコミュニティサポートを得ることができます。詳細については、 https://www.raspberrypi.org/products/raspberry-pi-3-model-b/を確認してください。

于 2017-06-03T10:43:15.557 に答える