arm:teensy3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arm:teensy3 [2014/04/16 21:18] – [RawHID] redox | arm:teensy3 [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | # Teensy 3 | ||
- | ## Overview | ||
- | {{ : | ||
- | I already had experience with the Teensy2, but I needed more power, better ADC, ... for a larger project (work, can't tell much more sorry)°. Before going for the Teensy3, I reviewed different ARM breakout boards, but I didn't need any special features or a large board. | ||
- | |||
- | ### Teensy3.1 | ||
- | {{ : | ||
- | |||
- | No more black PCB, but gold plated finish instead of tin plated. You can't have everything, right ?! It's basically a simple CPU upgrade, but you can find more details on [[http:// | ||
- | |||
- | ## Tools | ||
- | |||
- | ### Arduino vs C | ||
- | Well, the only thing that was not really cool (__for me__) with the Teensy3 was there was no toolchain, no libraries, no tutorial whatsoever for one to start coding. | ||
- | |||
- | Paul, from PJRC, has made a really great work to make the Teensy3 fully Arduino-compatible, | ||
- | |||
- | ### Toolchain | ||
- | |||
- | Just a quick note, it's really easy. I'm working with GNU/Linux environments, | ||
- | |||
- | sudo pacman -S arm-none-eabi-gcc arm-none-eabi-binutils | ||
- | |||
- | That's all folks, you're good to go ;) | ||
- | |||
- | On others distros, it should be something really close =) | ||
- | |||
- | ### Teensy Loader CLI | ||
- | |||
- | Once again, Paul made a great USB bootloader. It's even better than the one on the Teensy2, since it's harder to brick; actually, there' | ||
- | |||
- | You need the teensyloadercli software, but, obviously, updated for the Teensy3. It can be found in the [[http:// | ||
- | |||
- | * Start the application with the correct arguments. \\ Like ` ./ | ||
- | * Press the onboard button | ||
- | * Wait until completion | ||
- | * Done ! | ||
- | |||
- | ## LED Blink | ||
- | Or, as it's often called, the _Hello World_ for µC | ||
- | |||
- | Nothing fancy, it just blinks the onboard LED on the Teensy3. The source is here: {{: | ||
- | |||
- | Compile with `make` then program with `make program` (you need the teensyloadercli software in the source folder, I moved it system-wide later I think...). Press the button on your board, it should be flashed and then reboot. The LED blinks ! =D | ||
- | |||
- | ## USB | ||
- | ### HID Debug | ||
- | It should work with the __hid\_listen__ software from PRJC... | ||
- | |||
- | Well, blinking a LED is really cool (I _love_ LEDs)° but the Teensy3 is a bit too-much for doing just that. Moving on to USB, I really liked the hid_debug_only feature on the Teensy2, so I though I would do something like that for the Teensy3. | ||
- | |||
- | Digging through my sources, I found I didn't separate the HID Debug and the RawHID I had to develop for the project I was working on so... no separate source here (yet, I hope to fix that someday...). | ||
- | |||
- | ### RawHID | ||
- | |||
- | I needed some USB communication, | ||
- | |||
- | The code provides __usb\_debug__ (through the _hid\_listen_ tool) and __raw\_hid__ (tests with the _rawhid_ tool). It's currently available here: {{: | ||
- | |||
- | <note important> | ||
- | |||
- | ## I2C | ||
- | ### Master | ||
- | |||
- | ### Slave | ||
- | |||
- | |||
- | ## ADC | ||
- | |||
- | |||
- | ## PWM | ||
- | |||
- | |||
- | ## Links | ||
- | |||
- | * [[http:// |
/home/share/www/redox.ws/wiki/data/attic/arm/teensy3.1397683115.txt.gz · Last modified: 2023/11/24 21:55 (external edit)