Using a different MCU with the Teensyduino stuff

Status
Not open for further replies.

blark

Member
Hey folks,

I have a bunch of Teensy 3.1 boards that I am using across various projects and I love them.

I am now at the stage with a few projects where I want to design a custom board, and rather than embed the teensy I'd like to just use the same (or very similar) MCU. I found this one MKE02Z64VLC4 at digikey that looks pretty attractive (has 3 UARTS, 2 SPI, 1 I2C, 40Mhz, RTC.. etc and is 32pin pretty easy to hand solder). I know that I would need to program it differently, perhaps using some sort of serial method to upload.

I am wondering if it's possible to use the teensyduino stuff (e.g. write and compile using arduino tools/libraries) to compile apps for a chip like that, and if so would it be difficult (many changes needed?)

Thanks so much for your help.
 
that's an ARM M0. Just 4KB RAM. Yikes.
Too limited, I'd say.
Definitely quite different. So you'd be going in to a bare metal world.
 
Some of the Teensyduino code might be useful, like I2C stuff. But most of the peripherals are quite different, as you can easily see by comparing the reference manuals.
 
Yeah my application is pretty basic. I think it's using less than 4k of ram now and I'm using the Arduino stuff. Just doing some SPI basically, and serial comms.

Any advice on the best "blink a led" tutorial for working with these things bare-metal? From setting up the dev environment to programming the chip?

Also, lol because I've extensively used the Attiny85 which has like 512bytes of ram and it's still a very awesome and useful uC.

Thanks
 
Last edited:
If your needs are very basic, maybe a Teensy 2 is the way to go?
If you go bare metal on that too, you'll have a long row to hoe!
 
Any advice on the best "blink a led" tutorial for working with these things bare-metal? From setting up the dev environment to programming the chip?

There are many such tutorials on several websites. Google should help you find them. But there aren't so many out there to allow you a lot of choice in the particular chip. Writing such a tutorial, or even bringing everything up on a "bare metal" approach, takes a lot of work, so there aren't such tutorial for all possible chips. Many of them are for chips 5 to 10 years old.

Very new chips tend to not have such tutorial written, partly because they simply haven't been on the market long enough for people who write those tutorial to acquire and use them, but also partly because very new chips have a lot of new features and quirks that are unfamiliar. The same was true for 8 bit AVR in the late 1990s... very few people had any experience with it back then.
 
Status
Not open for further replies.
Back
Top