Hi,
I'm wondering how to go about creating a Teensy project that has a boot loader (to read data from an SDCard) that can be used to update code on the Teensy once in the field, as a lot of...
Type: Posts; User: Paula
Hi,
I'm wondering how to go about creating a Teensy project that has a boot loader (to read data from an SDCard) that can be used to update code on the Teensy once in the field, as a lot of...
My bad, complete noob error on my part... going to rest my eyes as this was a truly stupid mistake.
Thanks for doing this, I'm using this for my adventures with DMA and SPI.
I have a question, I can get SPI0 or SPI1 to work, fab.
But I can't get DMA for both, I assume I'm doing something wrong,...
ok, I eventually figured it out, at least for SPI0 so I thought I'd share.
There's an extra line needed "ActiveChipLowSelect"
And there's some extra paramters that need passing to the transfer.
...
Thanks for the quick response. The only other code is setting a few variable names and of course the setup and loop, I'm using platformio (as the arduino editor was driving me nuts).
as you say,...
I'm attempting to move from block SPI transfers to DMA based, and I'm having some success, but seem to be struggling with the DMA SPI speed
I'm trying to run two separate SPI busses SPI0 and SPI2,...
Oh, thanks, that was min numbingly easy :)
Forgive the potential daft question, but I'm trying to use two different SPI ports on a Teensy 4.0
I have done some searching but can't see how to do this.
I've got SPI0 working (default SPI port,...
Thanks defragster for pointing at Pauls work... I'd not found that and once I got my head around it the solution came quickly (ok, well a few hours)
So, finally cracked it.
Couple of notes;
GPIO pins mapped like this -
/*
* GPIO1.IO[12..24]
* 12 = AD_B0_12 = PIN 24
* 13 = AD_B0_13 = PIN 25
Well, sadly still nothing.. made a mistake with the ! and | in the previous code, so Ran this (based on Paul's code linked above)
void setup()
{
GPIO1_GDIR |= (0xFCF3 << 12);
// GPIO1_GDIR...
damn, couple of mistakes in there... Going to try this -
void setup()
{
GPIO1_GDIR != 0x0FCF3000; // 1111 1100 1111 0011 0000 0000 0000
// should...
I'm going to try this....
void setup()
{
GPIO1_GDIR != 0x03CFF000; // should be 11110011111111000000000000
// should give us bits 25->22 and 19->12 as...
ok, think I've got a handle on it, here's what I've worked out so far;
/*
* GPIO1.IO[12..24]
* 12 = AD_B0_12 = PIN 24
* 13 = AD_B0_13 = PIN 25
* 14 = AD_B0_14 = PIN 26
* 15 =...
Thanks defragster, but I don't understand what you've written :)
I mostly do electronics and tinker with code. Have to admit I'm amazed there isn't a library with a parallel out function :(
Hi all, I'm playing with the teensy 4.0 which is fab (thank you Paul).
I'm trying to write a 12 bit value to pins 0 to 11.
I've done some reading and the only way I can figure out how to do it is...
I've captured the data running from the MKL02Z32 to the MK66FX (below)
14274
You can see the point at which I press the program button.
I'm really surprised to see PTA6 staying high and PTB1...
For a variety of reasons I've had to locate the MKL02Z32 a distance away from the MK66FX1 on my board (connected via flex cable on another PCB), Should this be a problem?
When the chip was right...
Ahhh, ok, thank you :)
Paula
One final question, the MKL chip isn't needed once the main CPU is flashed?
Is that correct?
Thanks, I assumed the code was held in the MKL02 rather than the MK66, my bad.
But still she's alive :)
ok, so, I tried (for the hell of it), uploading blink to my board and... bingo, LED blinking..
So I guess, the bootloaders don't come with blink on :)
So, just for a giggle, I connected the USB to my PC and got "Kentis Bootloader ready for use".
So, I assume that for some reason the device isn't booting from the MKL02.
Or is there another step...
Hi,
I'm working on a project that I wish to use the teensy 3.6 for, but as the board space is a bit tight, I'm rolling my own PCB.
I've made the PCB (4 layers) and used the QFP MK66FX1M0 rather...
Thanks, modifying the adafruit .h and .cpp files did it, I thought I'd tried this but clearly I hadn't. it's now compiling and seems to be working.
I'll add in the second I2C line tomorrow :)
Hi everyone,
I'm new to Teensy and Arduino and so far I'm really impressed.
I'm an electronics engineer and used to writing assembly and C, but I've ot myself a teensy 3.6 to have a play with...