Not sure you need he SPI changes because it will run with SPI.setMOSI(#) just as well. But you will probably need his core files for the additional pins.
Not sure Kurt broke Audio with his spi changes .
Initializing SD card...initialization failed. Things to check:
...
So far I found that imxrt.h does not include some of the definitions...
Still have more to go as some of the DMAMUX_SOURCE_... are not defined either.
Will change CAN3 to 154 and add FLEXIO3 ?
I've tried to add them all with this commit.
https://github.com/PaulStoffregen/cores/commit/14bf9b817cb3500899e9a06a6b590f8f873b9b8c
Let me know if there's any more I missed?
That was my conclusion as well. Looks like no DMA for FlexIO3... FlexIO1/2 are already interesting in that they each have 2 DMA sources each for two different things...I just looked through the huge table on pages 52-60 of the 1060 manual. Don't see FLEXIO3 listed at all.
@defragster - Not sure what to tell you on this... Not sure what would impact the Audio stuff here.
I redid my changes to IO pins that built onto what Paul did. So my main changes was to add pins 53-59. Also do to the changes to pins 5-8 and 30... I updated Serial2 as it is now on pins 7 and 8 instead of 6 and 7
In Particular, most of which covered by Paul's changes:
Beta 1 Beta 2
5 33
6 7
7 8
8 6
33 5
30 ----------------Different
31 ----------------Different
(33-39) added the IO pins for SDCard pins
My changes were the 33-39 and a few fixes I noticed.
So again updated Serial2 because of Pin change
Also removed Serial 8 as pins 30, 31 are now different physical pins which no longer have UART capabilities.
I believe in Paul's changes he updates some of the PWM changes.
My SPI library update was to change was mainly to add SPI1 and SPI2 to B2 version of board.
Could have also added to B1 board but punted as I don't have any way to test either
Again to support SPI1 and SPi2 found that some of the pins were not the default pins for the Input Select
for those pins, so added references to the registers for the pins into the SPI hardware structure.....
Note: You might need the updated SPI library as well.
As for SD Card initialization failed, I am not sure are you using the SDCard on the Audio board or the SDCard that is part of the breakout board?
Maybe needs updates SD... library?
Soldring pogo-pins for SD is a really a pain Paul - can you offer (=sell) some help for it.. like some stacked boards with the holes on the right place?
Not sure wether mine align properly or not..
I've uploaded 1.47-beta1 with (hopefully) all the recent changes rolled up.
As usual, download links are on msg #2.
This version uses the 1062's fast GPIO registers. This almost certainly breaks attachInterrupt. Will fix soon....
your posted sketch shows ~1.55V on the pins - except GND and 3.3V.
That's what you're supposed to see, if you've got your multimeter in DC voltage mode. That test is meant to be done with frequency measurement, so you can check that all 6 pins have a *different* frequency. They're supposed to be powers of 2, from ~156 Hz to ~5000 Hz.
#if defined([B][U]XX[/U][/B][COLOR="#FF0000"]__IMXRT1062__[/COLOR])
// Use fast GPIO6, GPIO7, GPIO8, GPIO9
IOMUXC_GPR_GPR26 = 0xFFFFFFFF;
IOMUXC_GPR_GPR27 = 0xFFFFFFFF;
IOMUXC_GPR_GPR28 = 0xFFFFFFFF;
IOMUXC_GPR_GPR29 = 0xFFFFFFFF;
#endif
600010d4: 484e ldr r0, [pc, #312] ; (60001210 <ResetHandler+0x1dc>)
// UARTs run from 24 MHz clock (works if PLL3 off or bypassed)
CCM_CSCDR1 = (CCM_CSCDR1 & ~CCM_CSCDR1_UART_CLK_PODF(0x3F)) | CCM_CSCDR1_UART_CLK_SEL;
[B][U]#if defined(__IMXRT1062__)
// Use fast GPIO6, GPIO7, GPIO8, GPIO9
IOMUXC_GPR_GPR26 = 0xFFFFFFFF;[/U][/B]
600010d6: f04f 31ff mov.w r1, #4294967295
// Create 6 different frequencies on the SD card pins
// for easy testing whether all 6 signals are connected.
void setup()
{
GPIO8_GDIR |= (0x3F << 12);
}
uint32_t n=0;
void loop()
{
n++;
GPIO8_DR = (GPIO8_DR & ~(0x3F << 12)) | ((n & 0x3F) << 12);
delayMicroseconds(100);
}
Right now still looking at FlexIO... As far as I can tell there is no DMA access for FlexIO3 object.
The NXP 1062 SDK has FLEXIO3_IRQn = 156
But the big question is DMA mux, not IRQ. Or whether DMA is even possible with FlexIO3...
Nice! That exposes that for correction. They engineered a lot of details and differences in that silicon … I suppose that is why I lost Audio output before 1.47b1 was done as I had one half of a similar change but not the other?
I'm still lost on getting an SDIO sketch to run on the breakoutboard? mjs513 gave me the right SPI(2) pin# and function - but as posted p#2422 in CardInfo it didn't ever see a device or contents.
…..
const int chipSelect = BUILTIN_SDCARD;
void setup()
{
//UNCOMMENT THESE TWO LINES FOR TEENSY AUDIO BOARD:
SPI.setMOSI(35); // Audio shield has MOSI on pin 7
SPI.setSCK(37); // Audio shield has SCK on pin 14
SPI.setMISO(34);
Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT32
Volume size (Kbytes): 62360064
Volume size (Mbytes): 60898
Files found on the card (name, date and size in bytes):
SYSTEM~1/ 2019-02-04 18:09:00
INDEXE~1 2019-02-04 20:14:44 76
WPSETT~1.DAT 2019-02-05 21:06:12 12
Won't be able to check audio - afraid going to ruin board if I attempt the mod with smd resistor - my soldering just aint that good - getting better though.Windows Installed 1.47b1 - All Good! AUDIO SOUNDS WORKS!
I don't think it has to be a SMD part - a through-hole resistor, soldered to the pins should do it, too? I'd cut the trace on both ends, it this case.Won't be able to check audio - afraid going to ruin board if I attempt the mod with smd resistor - my soldering just aint that good - getting better though.
Won't be able to check audio - afraid going to ruin board if I attempt the mod with smd resistor - my soldering just aint that good - getting better though.