firehopper
Well-known member
I wonder how he finds time to sleep or eat in all this!
is there a good summary of the form factor and pinout/s of the version 4 Teensy linkable somewhere?
SD DAT1, x=340, y=527.17
SD DAT0, x=340, y=483.86
SD GND, x=340, y=440.55
SD CLK, x=340, y=394.24
SD 3.3V, x=340, y=353.94
SD CMD, x=340, y=310.63
SD DAT3, x=340, y=267.32
SD DAT2, x=340, y=224.02
/* LED Blink, Teensyduino Tutorial #1
http://www.pjrc.com/teensy/tutorial.html
This example code is in the public domain.
*/
// Teensy 2.0 has the LED on pin 11
// Teensy++ 2.0 has the LED on pin 6
// Teensy 3.x / Teensy LC have the LED on pin 13
const int ledPin = 13;
// the setup() method runs once, when the sketch starts
void setup() {
// initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
Serial.begin(115200);
delay(5000);
Serial.println(FLEXCAN3_ERFCR,BIN); [COLOR="#FF0000"] //#define FLEXCAN3_ERFCR (IMXRT_FLEXCAN3_EXT.offset10C)[/COLOR]
}
// the loop() methor runs over and over again,
// as long as the board has power
void loop() {
digitalWrite(ledPin, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(1000); // wait for a second
}
Fault irq 3
stacked_r0 :: 20000CAC
stacked_r1 :: 00000124
stacked_r2 :: 401D8B00 [COLOR="#FF0000"] //#define IMXRT_FLEXCAN3_EXT (*(IMXRT_REGISTER32_t *)0x401D8B00)[/COLOR]
stacked_r3 :: 00000000
stacked_r12 :: BD439166
stacked_lr :: 09600000
stacked_pc :: 00000096
stacked_psr :: 61000000
_CFSR :: 00008200
(PRECISERR) Data bus error(address in BFAR)
(BFARVALID) Bus Fault Address Valid
_HFSR :: 40000000
(FORCED) Forced Hard Fault
_DFSR :: 00000000
_AFSR :: 00000000
_BFAR :: 401D8C0C
_MMAR :: 401D8C0C
need to switch to alternate clock during reconfigure of ARM PLL
USB PLL is running, so we can use 120 MHz
Freq: 12 MHz * 75 / 3 / 1
ARM PLL=80002064
//clock settings for flexcan
CCM_CSCMR2 = (CCM_CSCMR2 & 0xFFFFFC03) | CCM_CSCMR2_CAN_CLK_SEL(2) |CCM_CSCMR2_CAN_CLK_PODF(3);
//CCM_CSCMR2 = (CCM_CSCMR2 & 0xFFFFFC03) | CCM_CSCMR2_CAN_CLK_SEL(0) | CCM_CSCMR2_CAN_CLK_PODF(0);
Serial.print("CCM_CSCMR2: ");Serial.println(CCM_CSCMR2, HEX);
CCM_CCGR0 |= (0xF << 18);
CCM_CCGR7 |= CCM_CCGR7_CAN3(CCM_CCGR_ON);
CCM_CCGR7 |= CCM_CCGR7_CAN3_SERIAL(CCM_CCGR_ON);
stacked_r2 :: 000003E8
stacked_r3 :: 0000028D
stacked_r12 :: 04CA6673
stacked_lr :: 09600000
stacked_pc :: 00000C70
stacked_psr :: 610F0000
_CFSR :: 00008200
(PRECISERR) Data bus error(address in BFAR)
(BFARVALID) Bus Fault Address Valid
_HFSR :: 40000000
(FORCED) Forced Hard Fault
_DFSR :: 00000000
_AFSR :: 00000000
[COLOR="#FF0000"] _BFAR :: 401D8C0C[/COLOR] // address for FLEXCAN3_ERFCR
_MMAR :: 401D8C0C
FlexCAN3 (CANFD) base address: 401D_8000h
ERFCR Offset = C0Ch
#elif defined(__MK66FX1M0__) || defined(__MK64FX512__)
// Include k66/T3.6 headers
#include "platforms/arm/k66/led_sysdefs_arm_k66.h"
I just tried the beta 47, and the demo reel 100 for fastled doesnt compile it complains about invalid pin for 11 and 13 even though those are supposed to be spi pins for the 4b2 and 1, just thought I'd let you guys know, it does compile for 3.1/3.2 and 3.6
I did some experimenting with FastLED on T4 but there is work to be done see
https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=202885&viewfull=1#post202885
Also will be interesting to see how that flat flex cable works!