At91sam9rl 没有操作系统的arm hello world

发布于 2024-09-18 15:34:52 字数 180 浏览 4 评论 0原文

我想运行一个简单的hello world,用c 编写,app。 在我的 at91sam9rl-ek 上。

没有操作系统可以吗?

(如果是的话)我该如何编译它? - 现在我尝试使用 g++ lite 创建arm代码

(一般来说,哪些程序可以在没有操作系统的情况下启动板, 汇编程序、arm 代码?)

I want to run a simple hello world, written in c, app.
on my at91sam9rl-ek.

Is it possible without an os?

And (if it is) how do I have to compile it?
-right now I try using g++ lite for creating arm code

(In general which programms can the board start without OS,
assembler, arm code?)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娜些时光,永不杰束 2024-09-25 15:34:52

当然,在没有操作系统的情况下运行没有问题,我每天都会做这样的事情...

http://sam7stuff.blogspot 。

​工具。也没有浮点数。添加一些数字,做一些移位,让一些 LED 闪烁。

codesourcery lite 可能是最快的入门方式,我相信 gnueabi 就是您想要的。

这个 winarm 网站有一个编译器和大量非操作系统项目,似乎适用于每个基于 ARM 的微控制器。
http://www.siwawi.arubi.uni-kl.de/avr_projects /arm_projects/

Atmel 非常擅长提供信息,毫无疑问他们有示例程序,您也可以在评估板上尝试。

emdebian 是另一个交叉编译器,它是最新的并且具有二进制文件。从头开始构建一个 gcc 来进行交叉编译一点也不坏。不过,C 库是另一回事,甚至 gcc 库也是如此。我发现没有任何一个库都更容易做到。

让 C 库工作并运行多种程序是可能的。取决于您想做什么。啊,看看规格,这是一个非常严肃的评估板,如果您选择运行一个操作系统,它就有足够的功能。您当然可以运行使用显示屏作为用户界面的程序。读/写 SD 卡、USB,基本上板上的所有东西,如果您选择的话,无需操作系统。

Sure, no problem running without an operating system, I do that kind of thing daily...

http://sam7stuff.blogspot.com/

You programs are, at least at first, not going to resemble desktop applications, I would avoid any libraries C libraries, no printfs or strcmps or things like that until you get the feel for it and find the right tools. No floating point as well. add some numbers do some shifting blink some leds.

codesourcery lite is probably the fastest way to get started, the gnueabi one I believe is the one you want.

This winarm site has a compiler and tons of non-os projects for seems like every arm based microcontroller.
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/

Atmel is very very good about information, no doubt they have example programs you can try as well on the eval board.

emdebian is another cross compiler that is somewhat up to date and has binaries. building a gcc from scratch for cross compiling is not bad at all. The C library is another story though, and even the gcc library for that matter. I find it easier to do without either library.

It is possible get a C library working and run a great many kinds of programs. Depends on what you are looking to do. Ahh, just looked at the specs, that is a pretty serious eval board, plenty of power for an operating system should you choose to run one. You can certainly run programs that use the display as a user interface. read/write sd cards, usb, basically everything on the board, without an os, if you choose.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文