Serial flash is - compared to other memory - incredible slow.
I don't think there is a way to make it much faster.
Type: Posts; User: Frank B
Serial flash is - compared to other memory - incredible slow.
I don't think there is a way to make it much faster.
I would say the Pico would be more than busy with the sound emulation alone. The sound chip is very complex, and was the best of its time. The code for the sound emulation is quite complex, too.......
The ILI9341_T3 lib sets it to 119Hz. I did this some years ago by adding it to the init data.
Yes :-)
In the meantime I have now learned that __aeabi_uldivmod is used here for 64 bit data types.
So, everything is OK.
See this Forum, "Announcements".
All your files will be deleted when you upload a new sketch.
As far as I know it is planned to change that. May take some months.
Glad that it works now.
Yes, please!
Teensy 4, see title.
Do we have a bug with printf? Perhaps include a wrong library?
T4 shouldn't need integer divisions in software...
The added code is a) slow and b) very large... and not...
Teensy 4.1 builtin SD does not use pin 10. The Audio Board uses pin10 if you use its SD.
I think it should be natural to look at everything carefully before connecting anything, and I can't see an...
I'd double-check if you really need more than 400kHz instead. Humans tend to overestimate some things..
The audio shields uses Pin 15 - it's for the optional potentiometer and has a capacitor to smooth its readings..
It's always a good idea to take a look at the used pins before connecting something :)
Hi,
I never tried that.
The code uses the SD from an interrupt, so I'd expect problems.
You can try to surround your code by AudioNoInterrupts() [..] AudioInterrupts()n and make sure it computes...
How should the board connect to your instrument? Which interface? Or is it usb?
You can use the godbolt link I gave you, and modify the foo() function on the left to see the influence of different ways to write code. Even if you don't know assembler, you get an idea of what is...
Whenever you call set_arm_clock.. Or try to copy the lines form set_arm_clock (regarding the IPG) to your program.
The other things..and "assembler".
Note, it is not really assembler.
a)
This...
No I said the other chip just does not blink. The blink codes are not needed for boards sold by PJRC, because they are all tested.
The blink still indicates a problem that should be fixed, and you...
Yes these chips use a different firmware - for the normal 4.0/4.1 the blink codes are just not needed :)
Remember the pins are in swapped order.
https://github.com/PaulStoffregen/cores/blob/a2368ad57e9470608a234d942c55a2278c6cd72b/teensy4/clockspeed.c#L148
You could try to change the both "4" to 3 or even 2.. (600 / 3 = 200MHz or 600 / 2=...
I think we have to wait for Paul, and that he tests that board.
Hm that looks correct...
it's possible to overclock that IPG - in the past when I tried it, it was not 100% stable in every case. But it leads to pretty amazing speedup..
I tried it with godbolt: https://godbolt.org/z/dbbefx5K7
Looks like the compiler does translate the code above optimal (with -O2):
foo():
ldr r0, .L2
ldr r1, .L2+4
ldr...
Great .... :o)
You can try something like
{
uint32_t gpt1=GPT1_CR | GPT_CR_EN;
uint32_t gpt2=GPT2_CR | GPT_CR_EN;
asm("":::"memory");
GPT1_CR = gpt1;
GPT2_CR = gpt2;
asm("dsb":::"memory");
}
..and what is the format of the wave file? It needs to be 44kHz, 16 Bit, Stereo. Everything else does not work..
You are using
AudioOutputPT8211_2 pt8211_2_1; //xy=557,951
Are you sure you are using the correct pins? Can you show your a photo of your hardware, please`?
And did you try one of the...
If the ADAU is I2S compatible, the timing is not an issue.
a) did you close the jumper R15?
b) How did you sample it? It works with 1.8V levels.
24374
Add some Audio memory..
void setup() {
AudioMemory(20);
Hi Chichiwoof,
yes, you'll need the latest Teensyduino beta.
Most likely the problem are all the out of bound accesses to the array (Post #6) - there may be more than the String strings[5] array.
ist has 5 elements. the first is [0] - the last element is [4]...
AH...
Not sure if this is the case here... but it almost looks like!
Sounds it reasonable when I say the freeze is about 1.6 .. 1.7 seconds?
If yes, please try to update Teensyduino to 1.54 Beta...
String strings[5];//
An array with 5 entries.
Pretty fascinating that this works on AVR..
for (int i = 0; i <=5 ; i++)
{
strings[i]= myString.substring(0,myString.indexOf("|"));
all the code in this style
void thirteen()
{
digitalWrite(demux0,LOW);
digitalWrite(demux1,HIGH);
digitalWrite(demux2,HIGH);
digitalWrite(demux3,LOW);
digitalWrite(0,LOW);
...
Normally, a freeze is a hardfault.
Unfortunatley, Teensyduino jumps to a endless loop, then, instead of showing them ;)
I'd look for array / buffer overflows, nullpointers, etc.
Note, there is a newer revision (Rev.4 10/2019) of the Hardware Development Guide on the NXP website than the one mentioned here: https://www.pjrc.com/store/ic_mkl02_t4.html (which is Rev 0).
Needs...
Can you post a photo of the hardware you built? (i.e. the connections of the board and display should be clearly visible)
Oh... the comments are not very enthusiastic.
again, you use pins that are used by the audio board.
Perhaps we should review the PAD settings for I2C and use very conserative settings.
From my experients they work well, even for higher I2C speeds and may cause less problems.
edit: Perhaps the...
happens :)
Been there..
Glad that it works now :)
As said, the unused-pins things does not help much and is the last useful thing. But you can view the waveform of I2c with the scope and perhaps use the PAD settings and add small caps until the...
Take a look at the clock tree in the reference manual.
On Clock change, only PLL1 changes its frequency. Besides the ARM-Core-clock, IGP ist connected to this clock. Everything else is not...
..and from my experience, the Elektor board is not very good, but sufficient for the fist experiments. Just don't expect great results.
Some general rules:
Don't use a low quality breadboard, no low quality china cables. If cables, they should be a short as possible (really).
Minimum - for audio - pins are 7, 8, 18, 19, 20, 21, 23,...
The library says the circle is at x=4 mm (90° turned), the edge of the board at 11mm. 11-4 = 7mm
Normally, dimensions are in mm and this is the case here, too. Some crooked value makes no sense,...
If I can trust Eagle and the Sparkfun library, it is 7mm to the center of the circle
Depends of what other pins you use - it might have an effect to play with the PAD settings.
For example, I use something like this
// https://www.nxp.com/docs/en/application-note/AN5078.pdf...
Unfortunately the RTOS is not enough, the main libraries need work too.
MISO1 is Pin39
Yup, off topic. Sry.
A delay blocks if the other core if both need to communicate and the 2nd waits for the answer, which is normally the case.
Sure, you can write nice code to do that and somehow...