Hi Michael,
i've fixed some bugs - could you please try the new version ?
I'd like to know wether it works better for you ..
Thank you !
-gnome-king-> ./teensytransfer-2016-10-11.exe -w WOLVES.MP3
..................................................................................teensytransfer: Communication error
Tim, no, but it defaults to U0 (chipselect pin 6)
Michael, thank you. I guess Arduino and TXQT were not running ? (They use rawhid ,too)
It seems to be a weird usb problem with linux, and I can not help much :-(
Frank: Soldered on the U1 Flash - is there a simple test sketch?
TeensyTransfer Or the examples from the SerialFlash libary. The SPI-Connections on the FlexiBoard are the same as on Pauls Audio-Shield - so simply edit the code to use the right ones. Make sure that the display-cs-pullups are all soldered to the board or remove the display !
I:\tCode\libraries\TeensyTransfer\extras\teensytransfer>tt -i
ID : FF FF FF
Serial: FF FF FF FF FF FF FF FF
Size : 0 Bytes
I:\tCode\libraries\TeensyTransfer\extras\teensytransfer>tt -l
teensytransfer: Communication error
I:\tCode\libraries\TeensyTransfer\extras\teensytransfer>tt -i
teensytransfer: Communication error
@MM - I use a wooden pencil body for my top header units with a board on top. Stick it between and roll/push until I find the button. Also TYQT can often get to bootloader or a reset.
Frank: If I put a flash chip on a FlexiBoard to test - will that work - and does it matter which I did?
-gnome-king-> ./teensytransfer-2016-10-12.exe teensy -i
Model : Teensy 3.6 (MK66FX1M0)
Serial: 2056430
MAC : 04:E9:E5:03:23:4B
EEPROM: 4096 Bytes
F_CPU : 96000000 Hz
F_PLL : 96000000 Hz
F_BUS : 48000000 Hz
F_MEM : 24000000 Hz
-gnome-king-> for x in HOWL.MP3 WOLVES.MP3 MMASH.MP3; do echo; echo $x; ./teensytransfer-2016-10-12.exe -w $x; done
HOWL.MP3
...........................................
WOLVES.MP3
..................................................................................
MMASH.MP3
.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
-gnome-king-> ./teensytransfer-2016-10-12.exe -l
177677 HOWL.MP3
339969 WOLVES.MP3
3213312 MMASH.MP3
/home/meissner/Arduino/libraries/TeensyTransfer/TeensyTransfer.cpp: In member function 'void TeensyTransfer::transfer()':
/home/meissner/Arduino/libraries/TeensyTransfer/TeensyTransfer.cpp:37:7: warning: unused variable 'n' [-Wunused-variable]
int n;
^
Sketch uses 30,184 bytes (2%) of program storage space. Maximum is 1,048,576 bytes.
Global variables use 4,156 bytes (1%) of dynamic memory, leaving 257,988 bytes for local variables. Maximum is 262,144 bytes.
#include <Audio.h>
#include <SerialFlash.h>
#include <play_sd_mp3.h>
//#include <play_sd_aac.h>
// GUItool: begin automatically generated code
//AudioPlaySdWav playSdWav1; //xy=154,422
AudioPlaySdMp3 playMp31; //xy=154,422
AudioMixer4 mixer1; //xy=327,432
AudioOutputAnalog dac1; //xy=502,412
AudioConnection patchCord1(playMp31, 0, mixer1, 0);
AudioConnection patchCord2(playMp31, 1, mixer1, 1);
AudioConnection patchCord3(mixer1, dac1);
// GUItool: end automatically generated code
#define PROP_AMP_ENABLE 5
#define FLASH_CHIP_SELECT 6
void setup() {
AudioMemory(8); //4
delay(2000);
// Start SerialFlash
if (!SerialFlash.begin(FLASH_CHIP_SELECT)) {
while (1)
{
Serial.println ("Cannot access SPI Flash chip");
delay (1000);
}
}
//Set Volume
mixer1.gain(0, 0.5);
mixer1.gain(1, 0.5);
//Start Amplifier
pinMode(PROP_AMP_ENABLE , OUTPUT);
digitalWrite(PROP_AMP_ENABLE , 1);
}
void playFile(const char *filename)
{
SerialFlashFile ff = SerialFlash.open(filename);
Serial.print("Playing file: ");
Serial.println(filename);
uint32_t sz = ff.size();
uint32_t pos = ff.getFlashAddress();
// Start playing the file. This sketch continues to
// run while the file plays.
playMp31.play(pos,sz);
// Simply wait for the file to finish playing.
while (playMp31.isPlaying()) {yield();}
}
void loop() {
//playFile("test.mp3");
playFile("MMASH.MP3");
delay(1000);
}
Hi Frank!
Got some problem here with teensytransfert:
like defraster, the cmd line tells me "Teensytrasfer: Communication error" but if i digit -i teensy then the program prints all the data related with the teensy.
I've Win10 running on my pc with latest version of all your stuff and arduino ide, as long as teensyduino.
Can you pls help me?
Thank you
Yes, try the pre-compiled hex-files or use a lower f_cpu like 72MHz
Model : Teensy 3.1/3.2 (MK20DX256)
Serial: 2685130
MAC : 04:E9:E5:04:18:E1
EEPROM: 2048 Bytes
F_CPU : 72000000 Hz
F_PLL : 72000000 Hz
F_BUS : 36000000 Hz
F_MEM : 24000000 Hz
teensytransfer -e