8

Is there a way to use the Raspberry Pi like an Arduino? That is, without an operating system?

Just connect it to the USB of your computer and download code onto it, and the next time the Raspberry Pi boots, it runs that program (infinitely). Just as an Arduino would.

When I googled how to use the Raspberry Pi like an Arduino, all I get is using the Raspberry Pi's GPIO and not something what I'am looking for.

What I finally want to do is develop my own bootloader and a bare bones OS using assembly language, C and ARMGCC. So I need a way of burning the code onto my board.

How can I do this?

Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
deepak
  • 571
  • 1
  • 6
  • 8

2 Answers2

8

Look at the lesson Baking Pi – Operating Systems Development. It's an ARM-only lesson, but it uses pieces of C for the USB driver.

Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
chriga
  • 96
  • 1
4

Raspberry Pi ARM based bare metal examples is another good reference. First you'll need to learn how the Raspberry Pi operates, how it boots, what's needed to get your code running without an existing operating system and so on - the README gives you a lot of information.

Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
nos
  • 1,106
  • 2
  • 10
  • 14