Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Peter Zotov <whitequark@whitequark.org>
To: <caml-list@inria.fr>
Subject: Re: [Caml-list] Ocaml on RaspberryPi bare-metal crashes
Date: Mon, 04 Nov 2013 17:41:48 +0400	[thread overview]
Message-ID: <393565311ce19d3358ed3799df56bcda@whitequark.org> (raw)
In-Reply-To: <20131104131015.GA27957@frosties>

Goswin von Brederlow писал 04.11.2013 17:10:
> Hi,
> 
> over the weekend I wrote some boot code and glue to make ocaml run
> bare-metal on a RaspberryPi. Here is what I did:
> ...
> I'm not sure why it crashes and I haven't setup exception handlers yet
> that would tell me what or where exactly it crashes. But the only new
> bits are the initialization of the printf module and the printf call
> itself. Must be one or the other.
> 
> Does anyone want to take a blind guess what could be wrong?

If I was you:

1) I'd try to set up an emulator as close to RPi as possible and 
reproduce.
    Qemu has an integrated gdbserver and with RPi's popularity, chances 
that
    someone customized it already.

2) If there's no luck with emulator, I'd link in a GDB stub for ARM
    communicating via a hardware serial port. This one seems to be easy 
enough
    to port: 
https://github.com/BurntBrunch/rockbox-fft/blob/master/gdb/arm-stub.c

(Incidentally, this demonstrates why you don't generally want to use 
hardware
without accessible JTAG. :)

-- 
   WBR, Peter Zotov.

  reply	other threads:[~2013-11-04 13:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-04 13:10 Goswin von Brederlow
2013-11-04 13:41 ` Peter Zotov [this message]
2013-11-04 20:38   ` Goswin von Brederlow
2013-11-04 22:38     ` David Scott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=393565311ce19d3358ed3799df56bcda@whitequark.org \
    --to=whitequark@whitequark.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox