Hello,
After update to teensyduino 1.54-beta7 I have some problem and I cant find the cause of the problem.
After simple save redraw loop frozen. Audio continues plays.
Saving and redrawing are serial actions in single thread.
If I do not any save program works for a long time without freezing.
If I save simple test file then the file appears, but the next redraw method hangs.
part of initialize code
the part of the code where the freezing occurs
Does anyone have any ideas? Thank you.
After update to teensyduino 1.54-beta7 I have some problem and I cant find the cause of the problem.
After simple save redraw loop frozen. Audio continues plays.
Saving and redrawing are serial actions in single thread.
If I do not any save program works for a long time without freezing.
If I save simple test file then the file appears, but the next redraw method hangs.
part of initialize code
Code:
#define TFT_SDO 12 //t4 12 // * (MISO), connected to T_DO on the screen
#define TFT_LED 5 // 100 Ohm resistor
#define TFT_SCK 13 //t4 13
#define TFT_MOSI 11 //t4 11
#define TFT_RST 255 // RESET: +3.3V, connected on the screen
#define TFT_CS 9
#define TFT_DC 10
ILI9341_t3 tft = ILI9341_t3(TFT_CS, TFT_DC, TFT_RST, TFT_MOSI, TFT_SCK, TFT_SDO);
tft.begin();
tft.setRotation(1);
tft.fillScreen(ILI9341_BLACK);
tft.setScroll(0);
SPI.setMOSI(7); // Audio shield has MOSI on pin 7
SPI.setSCK(14); // Audio shield has SCK on pin 14
//SPI.setMISO(12);
if (SD.begin(BUILTIN_SDCARD))
{
Serial.println("SD initialized successful");
delay(300);
}
the part of the code where the freezing occurs
Code:
File file = SD.open("TEST", FILE_WRITE_BEGIN);
file.write("TEST");
file.close();
Serial.println("success save");
tft.fillScreen(ILI9341_BLACK);
Does anyone have any ideas? Thank you.
Code:
teensy_size*: Memory Usage on Teensy 4.1
teensy_size*: FLASH: code:162332, data:722928, headers:7212 free for files:7233992
teensy_size*: RAM1: code:163840, variables:234176 free for local variables:126272
teensy_size*: RAM2: variables:304608 free for malloc\new:219680
Uploading 'firmware' to 'Teensy 4.1' using 'usb:0/140000/0/2'
The upload process has finished.
Last edited: