Does it reproduce? In any other situation, i.e. alternate sketch?
Does it work properly with the ';' in its place?
If a missing ';' is really there, it should throw a build error - note it and not attempt to upload.
I usually do my initial circuit design using ICircuit, which can have a programmable Arduino as part of the circuit. It’s not a teensy so lacks the peripherals and performance, but allows good prototyping before...
I just used the latest one from the nina-fw repo which is 1.7.4. I suspect 1.2.2 is very old, as it's not listed in their nina-fw releases which date back to 2019, so updating is a good idea!
IDK, there's around another 1 GB in there, so this mystery daemon needs to shake a tail feather if it's of a mind to break everything.
I am guessing that the IDE creates the directories and invokes the Teensy loader...
First these screen shots say a lot:
I deliberately erased a semicolon in the source file, but instead of a compiler error message I got that message.
From the windows explorer screenshot, you can see the directory...
Sidenote: anything allocated with new should be cleaned up with delete, not plain delete. You might get away with it for ints but not for class objects.
Sorry, I don't use these methods and code much at all.
So for example avail HEAP I don't know what it is doing or not doing. That is what is avail mean.
That is, some of the simple functions, simply find out how...
thanks for answering @KurtE
well, I was wrong but is because I am getting some weird results, looks like it does not always show the correct value
#include <Arduino.h>
#include "memory.h"
void setup()
{
...
I had a suspicion that might be the case. Thanks, this at least points me more in the direction of FlexIO as my next line of enquiry. Will go over it with a fresh set of eyes come Monday morning.
Rob
I know that the example sketch uncannyEyes_async_st7789_240x240 of st7735_t3 has code in it to detect memory info
There are functions DumpMemoryInfo and EstimateStackUsage.
What do you mean by available free...
Here is my attempt using your new rtc_set_secs_and_frac() subroutine. I included all my code, but I call your function twice, once in setup() where I try and clear the rtc (maybe that's not needed but I did it for my...
I just realized that I’m probably explaining PR 682 wrong and wanted to add this for posterity:
PR 682 doesn’t fix an LTO bug. It fixes a non-LTO problem that the original LTO fix attempt introduced.
NTPv3 and below use 32-bit seconds and 32-bit fractional seconds. NTPv4 use 64-bit seconds and 64-bit fractional seconds. The Teensy 4 RTC has a 64-bit counter incremented 32768 times a second. If you take the...
Can you give us a link to the NXP conversation? Just curious to see what their people say.
Not sure if it will help, but here is the earliest low-level code from before NativeEthernet and QNEthernet.
...
No, I didn't write any notes. When we start 1.59 beta, I will put the LTO options back in the Arduino menu, so it's easier to test what's working and what's in need of fixing to work with LTO.
You might or might not want to update the following line in https://www.pjrc.com/teensy/td_download.html:
Teensyduino 1.57 supports Arduino versions 1.8.5 and 1.8.9 and 1.8.13 and 1.8.15 and 1.8.16 and 1.8.19.
Hi all,
I asked this on the NXP community forums and received no reply, and since I'm prototyping on (and might even do small production run with) a Teensy 4.1 I thought to ask here in case someone has some idea.
...
@defragster Thank you for the explanation about comparing two reads of the registers before returning the 64-bit time value.
@dundakitty Your last post was extremely helpful. Thank you for your patience and taking...
I tried to get the audioguestbook code (https://github.com/playfultechnology/audio-guestbook) work, but it stops with an error called "unable to acess SD card"
i have a teensy 4.0 with a teensy audio shield revD2 for...
Installed on Ubuntu 22.04 - Note: yesterday I was forced to reinstall Ubuntu on that machine... But I guess this time I can not blame Ubuntu as the hard disk failed ;)
Booting off of USB stick and running the...
You make a good observation. The ATOMIC_BLOCK code (that I'm seeing for the first time so take this with a grain of salt and subject to further study) seems like a good solution, though it's a strict boolean...
I am trying to get it to update.
I tried it by saying remove Teensy and then reinstall... First pass it said something about removing a corrupt file for avr...
Did it again: I went through, but now getting this...
Install went fine - no issues.
Did rerun a couple of tests using the Quad Encoder basic sketch on a MM and @luni's EncoderSim on a T4.1, which worked no issues.
Second quick test I ran was the resolution of the...
1.58 has been released.
Please update your File > Prefs to put the URL back to https://www.pjrc.com/teensy/package_teensy_index.json (without "td_158" in the middle)
The SNVS_HPRTCMR and SNVS_HPRTCLR registers together form a 64-bit counter incrementing 32768 times a second, asynchronously from the CPU clock. The lower 15 bits are returned in the readRTCfrac() call, which will...
This thread may be worth a look. There should be links to various repositories which update the USB core code to more channels and higher data rates, plus additional Audio objects which can make use of that.
There...
Thank you all for the help, I added a few conditions to make sure that I don't overflow the uint8_t value in the EEPROM.write() function (which is a bit weird for me), but it seems to have helped a lot... I need to test...
Because the mean and variance should be floating point. For example, say you template with an `int` and update with values 2 and 3. The mean is 2.5, not expressible as an `int`. The min and max functions return type T...
The teensy 4.1 will work with multiple dacs as discussed. However, USB audio support is only stereo at the moment (2 in/2 out). Many users have goals to add more channels. I think one might have gotten 4/4 working but...
Since you templated the class, I'm wondering why you don't use "T" as type of the mean/m2 and the return type of your value functions? Am I missing something?
Teensyduino 1.58 has been released << Release change notes here
pjrc.com/teensy/td_download.html
Quick summary: 1.58 adds USB host support for disk drives, audio input by analog input pin, fixes a MacOS crash with...
Teensyduino 1.58 has been released
https://www.pjrc.com/teensy/td_download.html
Quick summary: Updates ARM toolchain, adds support for MacOS Ventura, and brings many bug fixes and small improvements.
Support...
Hi, I'm new to embedded development so please correct me if I'm wrong here.
Currently AudioStream.cpp uses allocate() and release() functions to allocate memory to audio blocks. These functions call __disable_irq()...
Turns out SD was broken on Teensy 2.0. Committed this fix.
https://github.com/PaulStoffregen/SD/commit/a87776904e6b0aa47cc296b96fdbc96c90ecff1c
Just rebuilt everything and starting the tests all over again....
Said it updated - maintained the old list of versions
Closed Coremark sketch window and re-opened and then Board Mgr list was updated, except it doesn't show 1.58.0 since it is already installed.
... safe to skip...
I've updated the test package index.
https://www.pjrc.com/teensy/td_158/package_teensy_index.json
If you previously used this URL in Arduino 2.0.x, press Ctrl-Shift-P and click "Arduino: Update Package Index". ...
Cool! I implemented something similar in the past, also using Welford:
https://github.com/bolderflight/statistics
Does single pass and moving window stats.
Thanks, Paul! I’m trying to make my own eurorack modules with a teensy at the heart of each- different things like fx processors or more esoteric nonsense, maybe three or four modules. For those that would benefit by...
Are you asking about connecting the hardware mentioned in msg #3?
I don't know much about that hardware. A quick Google search turned up this page? Is this the right thing?
...
Super quick question for Paul: can someone use several of these for multiple I/o channels and teensy 4.2? Or is there a better solution for, say, 4 in/4 out or beyond?
Looks like I neglected to put the AVR compiler for Teensy 2.0 into the new toolchain package for Arduino 2.0.x. Teensy 2.0 works with Arduino 1.8.19, but can't compile with Arduino 2.0.4. Adding it now....
using a different usb cabled fixed my problem
Typo in Title, I have a Teensy 4.0 with the octoboard
New install, Auduino version is current 2.0.4 and installed teensy per instructions on pjrc site. Teensy 1.57.2....
I figured it out. I was missing a cache flush before the work was scheduled. Now things seem to work. Unless I'm not understanding the reference code (which is probably the case), I'm not sure why it doesn't do a cache...
The RTC unit uses its own crystal - not sure if more accurate - but it will have unique count of time reference from the microseconds running on the core clock.
Did time ref against GPS Satellite PPS once per second...
I ran using your code. I'm curious why rdFrac and the microseconds don't correlate in some way. Should I ignore rdFrac results? Also, again out of curiosity, in rtc_get_64() why do you read the registers twice and...
I am trying to understand the algorithm used in to generate Band Limited Square Waves.
Can someone point me to an article/url/forum post, or anything that would provide some explanation for this Audio Library...
Added above URL to open IDE 2 and it found it not - after indicating is updated.
Accidentally closed the open sketch.
Opened RECENT and then after the open delay BOARD MGR showed the 1.58.0 to install, did not...
Hi, I am a newbie to using Teensy 4.0. I wanted to interface the teensy 4.0 module with a uSD card Module, I am using Arduino IDE and Teensy Loader.
Following are my system specification
uSD module -...
So anyway, while I wait for the new one, is there anything I can do to salvage something from my fancy new brick? I don't have an oscilloscope, just a multimeter, so all I can tell you is 3.3V is totally shorted to...
I am seeing that the max output current of a digital pin on a 4.1 is 4mA. So to drive a typical TH red LED requires a transistor in order to get enough current?
Back to original sketch now from playfultechnology per the DDWH disclaimer (whose changes were really good ideas). It's running with my mic gain set to 37 dB. The greeting.wav is pretty loud/distorted so I need to...
That's right :)
You're quite right. I've corrected my fork, which also updates the pull request that's been pending since 3rd February...
Yes. I think a lot of his changes are very useful, so the "do not use" is...
The update req'd a dog walk:D. Just got back and opened 2.0.4 and the board list showed 1.58.0. Installed with no problems. Various issues with String and time_t appear fixed!
Awesome, thanks.
FYI, probably...
@PaulStoffregen
https://www.pjrc.com/teensy/package_teensy_index.json
worked for me for both 0.58.4 and 1.58.0 to allow these versions to show in the boards manager. It auto updated the index after I changed it....
Download the latest version of TeensyDuino. Version 1.58 will be available later today.
EDIT: Sorry you can download it from: https://github.com/KurtE/MTP_Teensy
I've found this class useful for collecting statistics for a stream of data in a single pass. Simply call `update()` with the new sample and it does single-pass calculation of the mean and variance. Note that I've used...
What tells you that I didn't do the last of the tweaks? (in #6 above)
Is it that I didn't use AudioPlaySdWavX ?
And as a side note, the README from playfultechnology states "DO NOT copy the play_wav_sd.cpp and .h...
I've put the tentative 1.58 release files on the server. If you want to give them a try with Arduino 2.0.4 or nightly, use this URL in File > Prefs
https://www.pjrc.com/teensy/td_158/package_teensy_index.json
So I loaded the code, then saved it to C:\users\tevalis\desktop\teensy progs\audio-guestbook.
It then saved as C:\Users\Tevalis\Desktop\Teensy progs\audio-guestbook\audio-guestbook\audio-guestbook.ino
When I try to...
Good Morning Paul (and all),
If you are following the MassStorage... thread, you probably have noticed a few comments about corruptions of lists. Yesterday I did find a very possible set of conditions that maybe...
I have a fully digital power bench working with the Teensy3.5 using its DAC for controlling the Output.
Is the MCP4922 an alternative for that purpose in case the Teensy3.5 is going down?
Alas, I get .18 on the 3.3. She's dead, Jim. I wish I knew what I did, Teenys are very robust. Maybe I have carelessly brushed a hot 5V wire somewhere.
First step to diagnose U4 overheating is measuring the 3.3V power.
If you see only millivolts, the short is probably metal. Often this sort of failure is fixable, if you can find and remove the stray metal.
But...
I cannot exclude that possibility.
Thank you very much for the screenshot; that really clears things up. I wasn't taking account of SAI1_CLK_PRED and SAI1_CLK_PODF. So, as far as I understand, the output frequency...
I’ll have to see what I can do around this. It’s a design that was originally for the 3.5 boards that I’m altering for 4.1, but I probably have a few options for lowering the impedance of these input circuits
Thanks...
I managed to copy the code out of digital.c in the cores area and customise it to work. Looks very similar to this, but I also added the before/after checks from pinMode() just to be safe. Thanks so much for pointing me...
Have you visually inspected the board under magnification to verify that the soldering looks good and no parts look cracked/burned? Read elsewhere where someone found a cracked cap (fortunately it was not critical) to...