Search found 99 matches

by JetForMe
Fri Oct 10, 2014 8:14 pm
Forum: AT91SAM7x Support
Topic: Toolchain and abi
Replies: 9
Views: 4133

Re: Toolchain and abi

This has some ramifications for using clang/LLVM, too, which doesn't support "naked" functions with anything other than asm code in them.
by JetForMe
Fri Oct 10, 2014 7:19 pm
Forum: General Support
Topic: System lockup when using chvprintf()
Replies: 12
Views: 3541

Re: System lockup when using chvprintf()

Well, I don't want to split hairs about exactly what's causing execution to stop; that was mere speculation. The point is, it does, and now, with the priorities I've assigned, it seems to run non-stop (it ran all night without the watchdog kicking in). What you say about the removal of preemptive sc...
by JetForMe
Fri Oct 10, 2014 5:40 pm
Forum: General Support
Topic: System lockup when using chvprintf()
Replies: 12
Views: 3541

Re: System lockup when using chvprintf()

No idea. As I said, I have no way to debug this. It just stops execution. All threads stop.
by JetForMe
Fri Oct 10, 2014 10:25 am
Forum: General Support
Topic: System lockup when using chvprintf()
Replies: 12
Views: 3541

Re: System lockup with synchronous message passing

So, I determined that chvprintf() was not the culprit. The lockup was rare enough that I just set up the watchdog timer to restart the system when it occurred. Then I made a change that seemed to make the crash more frequent, every 10 to 20 seconds of execution time (I did a lot more work in my Appl...
by JetForMe
Fri Oct 10, 2014 8:42 am
Forum: AT91SAM7x Support
Topic: Multiple ADC Samples in one call?
Replies: 2
Views: 2294

Re: Multiple ADC Samples in one call?

AT91SAM7
by JetForMe
Fri Oct 10, 2014 12:59 am
Forum: AT91SAM7x Support
Topic: Multiple ADC Samples in one call?
Replies: 2
Views: 2294

Multiple ADC Samples in one call?

I'm trying to grab multiple samples from two channels at a specified frequency. I've got this code. But I only get one sample (of each channel), and then nothing but zero. I tried adding the timer trigger flag and setting the frequency to 1000, but that didn't work, either. Can I even do what I'm tr...
by JetForMe
Mon Oct 06, 2014 9:43 am
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 22
Views: 5185

Re: Clang/LLVM

http://ellcc.org just made OS X binaries available (they had Linux ones already). The project contains everything you need (clang/LLVM in the form of "ecc"), binutils, and a C library. I tried building my SAM7X (arm7tdmi) project with it. I had to change a couple of assembler files to use...
by JetForMe
Mon Sep 29, 2014 10:31 pm
Forum: General Support
Topic: System lockup when using chvprintf()
Replies: 12
Views: 3541

Re: System lockup when using chvprintf()

Yes, eclipse isn't necessary. There are a bunch of websites which describe setting up the complete solution but also provide a lot of detail of setting up OpenOCD with the olimex debugger ( http://salvatoremenendez.blogspot.com/2011/08/mac-os-eclipse-openocd-stm32-arm-cortex.html ); OpenOCD has som...
by JetForMe
Mon Sep 29, 2014 10:04 pm
Forum: General Support
Topic: System lockup when using chvprintf()
Replies: 12
Views: 3541

Re: System lockup when using chvprintf()

I've been using Eclipse + OpenOCD + https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ along with https://launchpad.net/gcc-arm-embedded toolchain on OS X. Can I use that without eclipse (i.e., command-line gdb)? Where is the USB driver for it? I have some other OpenOCD dongle, but I've never...
by JetForMe
Mon Sep 29, 2014 8:32 pm
Forum: General Support
Topic: System lockup when using chvprintf()
Replies: 12
Views: 3541

Re: System lockup when using chvprintf()

You should enable the debug options, especially the state checker, and see what triggers it. You need a debugger however. Oh yeah, I forgot about the debug options; that might help. A debugger, for this project especially, is impossible. In general, I've found it hard to use a debugger, too, becaus...

Go to advanced search