which seems to indicate, that opening files fails.
I'm on travel for a week and have no Teensy with me, so I cannot check the program.
Type: Posts; User: WMXZ
which seems to indicate, that opening files fails.
I'm on travel for a week and have no Teensy with me, so I cannot check the program.
generated separated files
I tested with T4.0 and T3.6
hibernate.h
#ifndef _HIBERNATE_H_
#define _HIBERNATE_H_
void rtc_clearAlarm();
void setWakeupCallandSleep(uint32_t nsec);
lets try again:
actually post #14 says
#if SDFAT_BETA == 0
SdFatSdio sd;
File file;
#else
SdFs sd;
FsFile file;
#endif
What I not understand is the following:
I tell SNVS to wake-up the processor, say in 1 minute.
I expect that alarm ISR is called after 1 minute, but MCU is not running, therefore alarm ISR can not...
Anyhow,
here is a stripped down version
#include "core_pins.h"
#include "TimeLib.h"
/******************* Seting Alarm ***************/
#define SNVS_LPCR_LPTA_EN_MASK (0x2U)
void...
You should at least solder the T3.1 to header. Otherwise, there are no good contacts and lot of electric noise.
Sorry, that is my fault.
I'm using the latest (beta) version of SdFat.
You could change code to become
#if SDFAT_BETA == 0
SdFatSdio sd;
File file;
#else
SdFs sd;
@defragster,
Sure you can minimize code.
The original version was done during T4-beta. There was work by someone else before, but I only used T4 RefMan.
how did you connect sdcard to T3.1?
can you provide picture of wiring?
what code did you use?
schematics of ADC buffer?
what is your expected data rate?
The following code may be a start
//
#define SDFAT_BETA 0
#if SDFAT_BETA == 0
#include <SdFat.h>
#else
#include <SdFat-beta.h> // latest SdFat needed...
if(!count)
{
//open file
sprintf(filename,"Data%03d.csv",ifl); ifl++;
if (!file.open(filename, O_RDWR | O_CREAT)) sd.errorHalt("open failed");
// write header to file
...
Simply use
if(!count)
{
//open file
sprintf(filename,"Data%03d.csv",ifl); ifl++;
if (!file.open(filename, O_RDWR | O_CREAT)) sd.errorHalt("open failed");
count=1;
...
I completely missed that.
For me that is the reason, why I never liked '{' at the end of the line. I prefer that in line with '}'.
So, if the ADC gives SNR of 96 dB, it is integrated over the whole bandwidth (A-weighted) and 15, 16th bit are very likely noisy.
BUT if you go into spectral analysis (say >1024 point FFT) then you...
next thing I would try is to move the print to serial adjacent to prints to file move from loop into doLogging
for(int ii=0; ii<nb; ii++)
{ file.print(',');
file.print(data1[ii]);
...
It is not a question of Teensy, but the library you are using
Suggest to use Bill-Greimans SdFat-beta https://github.com/greiman/SdFat-beta which supports all Teensies and also exFAT
For normal...
I ask as I run T4 +AudioCard-uSD (spi) + sdfat-beta at 24 MHz CPU clock without problems (I think)
so issue may be with SDIO clock generation
I would first apply the following change
//open file
sprintf(filename,"Data%03d.csv",ifl); ifl++;
than can you tell us what the serial monitor is printing
do you mean CPU clock at 150MHz?
Not sure anymore.
Put T4 on powered USB hub, and new confusing issue.
Also used progmem to keep rtc_reset, rtc_stopAlarm, rtc_isr, so their code does not disappear when shutting down (I hope)
...
inserting as first call into setup()
void rtc_resetAlarm()
{
SNVS_LPCR &= ~SNVS_LPCR_LPTA_EN_MASK;
while (SNVS_LPCR & SNVS_LPCR_LPTA_EN_MASK);
}
this means very soon (within a week)?
Not sure (I did not had time to assemble the latest Breakout board). I will check this evening.
I did my tests with a recent T4 purchase (from PJRC).
For my latest test, I physically connected...
So, I changed running phase to 20 blinks, and after start I connected permanently on/off to GND
after first 5 seconds program power cycled, but then grounded power on/off had NO effect anymore...
This is what one would could easily implement also in an embedded system, bring out both lines (program and power on/off lines)
Now, I found another "feature":
RTC coin cell connected, program...
here is a test Code
#include "core_pins.h"
#include "TimeLib.h"
/******************* Seting Alarm ***************/
#define SNVS_LPSR_PGD_MASK (0x8U)
#define...
This was a recorder program, but will try is I could generate a minimal program and post, using my hibernate program during T4beta test
yes, on/off (reset) line works (nearly) as expected
T4 running: long (>5s) on/off line to GND switches T4 off , BUT T4 comes on again immediately (I was still grounding on-off line)
T4 off: short...
I have the following scenario
T4 with coin cell for RTC connected to PC-USB. (T4 is soldered to revD audioboard, no external power)
SW shuts down Teensy (turns off power). (SNVS_LPCR |=(1<<6) ; )...
Let us be realistic.
T3.6 had all pins available for SWD, and it needed only a "simple" modification in the bootloader chip to allow easy use of SWD. (lets ignore the HW solution discussed in the...
All Teensies generate 0 to 3.3V digital data.
If you are measuring 13.1 Vpp then your measurements are not correct.
Should express form not be backward compatible, and therefore standard form would suffice, as long as MCU does not support express?
AFAIK, there should be NO DMA that directly accesses audio-block data. If there are few objects that do that, maybe they should be rewritten. Could you give some examples, where audioblocks are used...
to change AUDIO_BLOCK_SAMPLES you have to change it in the cores/Teensy3/AudioStreams.h file and recompile the whole system (changing some entry in Tools of Arduino IDE)
Chip,
The original version of he MTP has serial and not seremu
https://github.com/yoonghm/MTP/blob/master/usb_desc.h
Not clear why Paul has chosen to use seremu.
Also not clear (forgot) if and...
I'm using regularly 4 D cells for a Teensy 3.6. Should be similar for T3.2.
On T4, I would suggest to add a 3V coin cell and not to rely on Vin for keeping RTC.
E.g. T4 can switch off internal 3.3V and then you lost RTC.
Coin cell will last sufficiently long to avoid...
There are multiple threads that use Teensy4 as is and make the carrier PCB with castellated connection to teensy. Through-holes are also easy connected.
I plan t do similar for my boards.
Note, you...
Thanks for doing it.
especially of interest to me, what is the procedure for continues DMA (say in case of I2S input DMA)? Does ISR needs to address caching (as done in Output_I2S) or not (as done...
I have not looked into playing back on CS42448, but will do soon.
Correction: Jetson Nano is a 4core ARM and 128GPU system.
but you are right, AI is (again) very trendy.
I would like to see some effort to use the GPU on the T4 for processing, if it can be...
@jpaudio
I updated /modified the https://github.com/WMXZ-EU/microSoundRecorder/tree/microSoundRecorder_dev branch of the microSoundRecorder to use and initialize CS42448
(no playback yet)
I...
As you are concerned with time-wasting and have all equipment for production in house, maybe you could consider designing your own Teensy PCB (getting the bootloader chip from PJRC).
Schematics and...
where in the top did you declare waveform1? you only declare wavetable1
disconnect all devices
open device manager
activate show hidden devices
uninstall COM6
connect 3D printer
connect Teensy
It cannot be easier than with Teensy.exe. only two buttons to click, and one file to select.
(are you really saying, that you let someone update a MCU with a new firmware, who is not capable of...
@jpaudio,
As I do not have a CS42448 Audio board, I will try to look into the code only, and you have to do the testing for me.
From your description, it means that there is some initialization...
There is a misunderstanding, the "microSoundRecorder" does not allow playback. it only records to uSD.
You only need to distribute teensy.exe to upload hex file.
No Arduino or Teensyduino required
Typically a FET is used to transform impedance from high to low.