Have you tried Pauls sketch?
Type: Posts; User: Frank B
Have you tried Pauls sketch?
Directly, no.
But you may ask the friends in this thread: https://forum.pjrc.com/threads/43165-Over-the-Air-firmware-updates-changes-for-flashing-Teensy-3-5-amp-3-6?highlight=flashing
You can't write the bootloader.
You can write to the teensy-flash,( but not to the bootlader )
That works with a normal Teensy - no extra booloader chip needed.
I've patched the denom value,
and added a search for the divs - now, more frequencies are working (if not all - tests needed)
Edit: really amazing that the PLLs work with up to 1.3GHz - tell...
I've added it here, with a link to this thread.
Yes, thats the same what the Reference manual says - everything but the max 960000.
I'll update that value. Thanx :)
Thanks!
The reference manual says not any word about this. (only that it can be 29 (or was it 30?) Bits wide) - I'll test if it makes any difference. As said.. the program works .. so i wonder if...
Hi,
AudioProcessorUsage() does not take the time needed for the DMA ISRs into account.
Some need quite a time (like S/PDIF emulation on Teensy 3.x).
I'd suggest a function like update_all()...
You may have seen setup() and loop()
Forget that.. they are just functions.
its something like
void setup() { your code here }
void loop() { your code here }
First of all, you should think about what you actually mean by "memory management".
Since you obviously know C, you know that there is at most new/malloc/free - and there is the stack, variables...
I'd check your desired frequency with a scope or frequency counter.
You don't want 44100Hz... there is no divisor for it.
Try 44117,64706Hz (there is no audible difference)
As said above: It works. As it is :) I'm aware that it fires twice.
Ok, didn't see that you use the DACs.
Which Teensy are you using?
Teensy 3.x with Audio Board Rev A to C uses pin 22 for Audio you use it for the LED.
Teensy 4.x with Audio Board Rev D uses pin 20, and 21 for Audio.. which are DC...
Hmm... not an expert here... electronics noob, still :)... but... this this sounds a problem with the current?
Is it worth to try and add a buffer-capacitor?
Can't you strip it down to the important parts? But it should work, so we that we can copy&paste it and try ..
Is it the same with the line-out connection?
Can you post the whole program?
These snippets do not help much..
Sounds interesting!
No, my code works.
Maybe do a copy&paste.. or try the transmitter as a whole.
May I ask what you're tryong to archive? Must be something with frequency modulation, too...?
Hm,
no, for the SD it's always the same pinout (for clock)
SPI-Mode:
23822
Not sure what it could be.. it's not audible, at least for me...
@Pauls (from Netherlands): If you're reading...
Yes, use more relaible connections - plug the shield directly on the Teensy - , don't use these china wires ;)
As Pin 44 is the SD clock pin, SPI wouldn't help.. needs a clock, too.
Or try the SD...
Take a look here: https://github.com/FrankBoesing/TeensyFMTransmitter/blob/main/output_fm.cpp#L159
Similar to yours... uses the timer @ audio sampling rate and uses the triggered dma to write to...
Just store it on SD? The waveplayer can play wav-files.
Maybe together with MTP.
You can record them in RAW format too. Maybe to SD, also. Or to PSRAM, or... wherever.
If there is no ready to...
Yup, I tried, but could'nt get more usable data to print.
At least it prints that something bad happened and what kind of problem it was. With a bit digging, it is possible to find where it was,...
Done that too.
Had to use the "Edge" Browser .... I never use that :)
Thanks, MJS.
No offense, really! - but usually "no response" or "no statement" means that something is unlikely to be adopted :) So, I don't spend more time for this. The weather is good - I enjoy the sun.
In...
also, for flash, perhaps just add the numbers for "data" and "headers"... the information "headers" is not that useful, i think.
Also, "free for files" is not correct. is can be used for code and...
I think two blank lines and a little formatting would make it clearer.
"C:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom...
The Teensyduino installer is older than the new rules, that's all.
Havn't used it for years.. do we still support the eeprom-files?
If yes, they should be added.
Yes.. things like these are fun.
But for me, it's not that interesting. In addition, the VIC is very tricky. It has to be cycle-excact to be 100% compatible - I have it working in the emulaton,...
Well, it's a B-20
Serial.printf("Chip: Si47%d-%c%c%c\n", si4735.getFirmwarePN(), si4735.getFirmwareCHIPREV(), si4735.getFirmwareFWMAJOR(), si4735.getFirmwareFWMINOR());
Prints:
...not more.
I am quite disappointed and frustrated with this Si4735 stuff. This happens to me very very rarely.
After working wonderfully for a short time, it is now pretty much "dead". I2C...
It does not want 44.100 Hz :)
But this works (with the library mentioned above):
tone(0, 32000); // Output 32kHz on Pin 0 - connect Teensy Pin 0 with RCLK on Si4735
si4735.setup(RESET_PIN,...
Maybe there is nothing against simply using the 44.1kHz I2S Framesync for this as well. That would be a good opportunity!
I soldered the pins to my Si4735 board, and put it on a breadboard. I...
You can patch it to always use verbose mode!
Btw, the build of teensy size showed a minor warning with -Wall - not important.
Good night... zzzzzz
So, you're using the DAC for ultrasonic sounds?
Have you tried the PT8211? It's capable of 384khz (according to the datasheet) and cheap.
The bats will not notice that, I think........
Yup, and the pin-# has to be a constant expression in order to make it fast. Your #define is fine ;)
LoL, yes, but 5000 is a bit too much.
Thanks for the hint with Farnell. I think I'll order there.
The Audio Board has a 100 Ohm series resistor in the MCLK line.
Maybe this would help?
Excellent that we have that working, now.
I wrote a program that turns the Teensy into a FM Transmitter, Stereo + RDS - will be useful for testing :)
Yes, exactly this :)
In the mean time I read the datasheet - it does not have to be 32768Hz - it takes almost anything.... like 4MHz or so... you just have to tell it the frequency.
My Chip (yes,...
It prints that :
Der Sketch verwendet 0 Bytes (0%) des Programmspeicherplatzes. Das Maximum sind 8126464 Bytes.
Globale Variablen verwenden 0 Bytes (0%) des dynamischen Speichers, 524288 Bytes...
Great!!
Have to look how you did that...
That would have misleading information, too - it would print only one value for "RAM" :-(
That would be not much better than that we have now?!?
I'm not a hardware-guy, too. And I have not enough practice with creating PCBs.. maybe I do 3 different in a year.. and.. 70% of the first run have a mistake somewhere!
But from china, that's not a...
Ok, corrected the name to MCUME ;) added an I2C connector, and ordered 5pcs ...
Thanks. I'll stop polluting this thread now ;)
Thanks for the warning - Too late for me...