Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: spacewrench

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,656

    I don't have one of those displays, so I don't...

    I don't have one of those displays, so I don't know how it works. But my guess is, once you send the string over with print() or println(), it keeps whatever information it needs (and you can throw...
  2. Replies
    4
    Views
    1,656

    From a general C perspective, I'd guess you're...

    From a general C perspective, I'd guess you're running out of memory by strdup()ing a lot, but not free()ing them. I'm not sure what Arduino does for memory management, but it can't magically be...
  3. Replies
    1,558
    Views
    522,107

    re: 192k/256k: my bad, I was looking at the wrong...

    re: 192k/256k: my bad, I was looking at the wrong device flavor in the manual. Not blinking (bare metal) yet, but I'll get there eventually...
  4. Replies
    1,558
    Views
    522,107

    2xTeensy-3.5 arrived today, booted & blinked, and...

    2xTeensy-3.5 arrived today, booted & blinked, and I was able to compile & upload sketches after installing the new Teensy Loader 1.31-boot-update and replacing boards.txt in the Arduino-1.6.9...
  5. Replies
    2
    Views
    1,075

    Can we add a "Bare Metal" Forum?

    There are a few people (myself included) who waste their time twiddling bits in the various Teensy CPUs, even though there are perfectly good libraries to do the same things. We figure stuff out...
  6. Replies
    9
    Views
    3,320

    Do you have a writeup anywhere, Paul? I've just...

    Do you have a writeup anywhere, Paul? I've just spent a couple of days with the Teensy-LC USB peripheral, and I've got the barest of bare minimum control going. But there's still some fragile stuff...
  7. Replies
    13
    Views
    3,998

    ...and there it is: you have to turn on...

    ...and there it is: you have to turn on MCGIRCLK...MCG_C1 |= MCG_C1_IRCLKEN(1).

    Incidentally, it looks like you can clear the LPTMR F flag by writing 1 to it, as the documentation states. At...
  8. Replies
    13
    Views
    3,998

    I just put in a poor-man's breakpoint ("while (1)...

    I just put in a poor-man's breakpoint ("while (1) GPIOC->PTOR = (1 << 5);") in the ISR, and it never gets there. There's not even one interrupt happening.
  9. Replies
    13
    Views
    3,998

    LPTMR0 on Teensy-LC

    Does LPTMR not work with the PLL clock (48MHz, Teensy-LC)? I have this code:



    volatile uint32_t countdown;

    void
    delay_ms( uint32_t ms )
    {
    SIM_SCGC5 |= SIM_SCGC5_LPTMR(1);
  10. Got it...the "Start 0->1" calls for a REstart...

    Got it...the "Start 0->1" calls for a REstart between the two halves of the command. SCK is low between successive 9-bit interactions, so you have to raise it, then pull SDA low as a restart bit,...
  11. The thrill of victory, followed swiftly by the agony of defeat!

    I got bit-bang SMBus running on my Power Playground board: the Teensy read the monitoring chip and got a reasonable voltage reading back out. The board was designed to work up to about 30V, so I...
  12. Thanks...I soldered in some pullups and made a...

    Thanks...I soldered in some pullups and made a little progress with bitbanging code. I can apparently write to the slave registers, but my read code doesn't trigger the slave to deliver data onto...
  13. I2C / SMBus on Teensy-3.1: External pullups needed?

    I'm trying to get a Teensy-3.1 talking to an SMBus chip on a board I designed & built myself. I don't have pullups on the SCK and SDA lines; I was planning to bitbang with GPIO and use the internal...
  14. Replies
    2
    Views
    2,734

    Rats, I figured this out a couple of years ago,...

    Rats, I figured this out a couple of years ago, but never wrote down the answer so I had to figure it out again just now. This time, though... ;-)

    I think I was confused by monitoring artifacts. ...
  15. Replies
    16
    Views
    8,953

    I like plain ol' GCC on Linux, but I'm old and...

    I like plain ol' GCC on Linux, but I'm old and use Emacs. I'd be a little leery of using a free version of a commercial tool. Maybe it's a reasonable choice for a Windows user, but if you're using...
  16. Replies
    4
    Views
    3,400

    Here's stuff to drop into FreeRTOS that...

    Here's stuff to drop into FreeRTOS that implements an interrupt-driven serial console, and you can add commands easily (right now, it knows "dump [addr [len]]").

    Happy New Year!
  17. Replies
    4
    Views
    3,400

    FreeRTOS on Teensy (GCC, Linux)

    Here are some files that can be unpacked into FreeRTOS-7.3.0 and compiled to work on Teensy3. There are two sample programs: blinky and uart. Blinky does what you'd expect, but in a preemptive...
  18. Replies
    2
    Views
    2,734

    Teensy-3 Clock Settings

    I'm trying to ensure that my clock settings are working as expected (I've stolen Paul's setup code and moved things around to fit nicely into the FreeRTOS framework). Things look good setting the...
  19. Bill- I just started looking at getting...

    Bill-

    I just started looking at getting FreeRTOS running on the Teensy-3. Your .zip file on Google Code appears to restructure FreeRTOS stuff to fit in the Arduino directory tree, but I don't use...
  20. It's possible to compile and run C++ code on a...

    It's possible to compile and run C++ code on a microcontroller like the Teensy3, but some C++ language features depend on fairly complex and heavyweight library support (for example, STL and...
  21. Replies
    3
    Views
    2,866

    I don't believe Paul has released the source code...

    I don't believe Paul has released the source code or binaries for his Half-Kay bootloader. However, I wrote a similar small USB bootloader a year or two ago and posted it at AVRFreaks.net. Paul's...
  22. Another handy WiFi/Ethernet/USB/Linux platform is...

    Another handy WiFi/Ethernet/USB/Linux platform is the Alfa AP121U. This is the hardware that's used for the WiFi Pineapple, and you can get the bare board from NewEgg for $35.

    (I don't work for...
  23. Replies
    2
    Views
    3,660

    True, there's several options (including cheap...

    True, there's several options (including cheap ones) but I have some Teensies! Anyway, it turns out that there's an OpenOCD driver for the BusPirate, which I suspect will happily talk to appropriate...
  24. Replies
    2
    Views
    3,660

    JTAG with (not of) Teensy

    I have an old Olimex parallel-port Wiggler clone JTAG, but no easy-to-use parallel port any more. So I need a new JTAG dongle.

    Looking at the OpenOCD docs, they have a bit-bang driver that...
  25. Replies
    7
    Views
    4,927

    Gotta Google for it...there's plenty of adapters...

    Gotta Google for it...there's plenty of adapters out there, but it's a little difficult to find a reasonable price on a wide selection (so you can buy a bunch of random adapters and only pay shipping...
  26. Replies
    21
    Views
    14,554

    Yeah, I found t-arm-elf in my adventures, and got...

    Yeah, I found t-arm-elf in my adventures, and got it working with +/- thumb-interwork, IIRC. The problem I've always had is building the multilibs for +/-FPU, which makes 3 options: soft-FP, hard-FP...
  27. Replies
    0
    Views
    1,454

    Freescale Header Files

    I was going to ask whether anyone knew of a set of Freescale header files, like the TI/Luminary Stellaris ones, that have mnemonic names for registers and bits...all I had was PJRC's mk20dx128.{c,h}...
  28. Replies
    21
    Views
    14,554

    GCC will tell you how it was configured (plus...

    GCC will tell you how it was configured (plus some other info) if you run gcc -v. From the ARM gcc in arduino-1.0.2:

    dhm@vanadium-crossdev:/usr/local/packages/arduino-1.0.2$...
  29. Man, I hate complicated init code (that I didn't...

    Man, I hate complicated init code (that I didn't write myself!) I ended up commenting out everything I didn't understand in ResetHandler, and I now have a blinking LED. Woo hoo. Not sure what was...
  30. > Do you maybe mean GPIOC_PDDR = 1

    > Do you maybe mean GPIOC_PDDR = 1 << 5;

    Yes, yes I do. (I made the exact same mistake years ago with a Philips ARM processor. Why, oh why, do they have a DDR and a DIR?)

    > Are you using the...
  31. Getting started with raw C: GPIO initialization?

    Does anybody know how to use the Teensy3 in raw C mode (not using the Arduino stuff)? I have my compiler set up, and I'm using the mk20dx128.{c,h,ld} from the Arduino Teensy directory, but with the...
Results 1 to 31 of 31