Paul, is the FlexSPI2 Flash still memory mapped? (Which Address?)
Does LittleFS have it's own caching system?
@Paul, could you please fork i2c_t3 by nox771?
His last activity on github was 2018. His (great) library needs errormessage if used on T4... there were several questions about it, in the last weeks/months
...
Does LittleFS have it's own caching system? How much memory is used for it?
Hello everyone,
I'm new to this forum and want to say Hello and thanks for the nice device (T 4.1).
I'm working on an application which is sending sensor data to Azure Storage Tables with TLS secured transmission which is now running fine but I had some issues to overcome.
1) To use TLS the NativeEthernet and FNET library had to be substituted by the latest versions of the master branch of the repositories:
-https://github.com/vjmuzik/NativeEthernet
-https://github.com/vjmuzik/FNET
2) Instead of using the TLS implementation of NativeEthernet library I used the the bear ssl implementation of:
https://github.com/khoih-prog/EthernetWebServer_SSL
which worked fine, but needed a little patch for the cores/teensy4/Stream.h file as explained here:
-https://github.com/khoih-prog/EthernetWebServer_SSL/tree/main/Packages_Patches/hardware/teensy/avr/cores/teensy4
It seems that these improvements are not yet included in beta7.
I would be happy if this could be done in the final version.
Kind regards
RoSchmi
Use a freshly formatted SD for best performance.
Type any character to start
chipSelect: 254
FreeStack: 255464
begin() failed
Do not reformat the SD.
No card, wrong chip select pin, or wiring error?
SdError: 0X1,0X0
The SD library works on my T3.5 but has a serious latency problem so I would like to try sdFAT. This hasn't really worked at all. I was advised to try Teensyduino 1.54 beta 7. This shows some improvement but still doesn't work.
For the moment I am trying to just get the Bench example working, then simply creating a file and writing to it. The Bench example will compile and run if the chipSelect is changed to BUILTIN_SDCARD and the following line is commented out:
// cout << F("Card size: ") << sd.card()->cardSize()*512E-9;
The resulting run, however, is unable to access the card with the following result:
...
@Defragster, the prefetches would be useful. I learned now, that there is no automatic prefetch, but I think it prefetches at least the rest of a cache-line.
Remember, accessing a memory location over SPI takes a really long time. Even more if the interface has to tell the chip the address first.
...To upgrade SD.h just use the same code as before with the newer TeensyDuino 1.54 Beta....
Arduino: 1.8.13 (Windows 10), TD: 1.54-beta7, Board: "Teensy 3.5, Serial, 120 MHz, Faster, US English"
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721\sketch\RX_Snoop_V2-1.ino.cpp.o: In function `File::whoami()':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/FS.h:84: undefined reference to `Serial'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721\sketch\RX_Snoop_V2-1.ino.cpp.o: In function `SDFile::whoami()':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD\src/SD.h:71: undefined reference to `Serial'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721\sketch\RX_Snoop_V2-1.ino.cpp.o: In function `loop':
C:\Users\Rick\Documents\Arduino\RX_Snoop_V2-1/RX_Snoop_V2-1.ino:301: undefined reference to `Serial'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721\sketch\RX_Snoop_V2-1.ino.cpp.o: In function `setup':
C:\Users\Rick\Documents\Arduino\RX_Snoop_V2-1/RX_Snoop_V2-1.ino:227: undefined reference to `Serial'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721\libraries\SdFat\SdCard\SdioTeensy.cpp.o: In function `SysCall::yield()':
c:\users\rick\documents\arduino\libraries\sdfat\src\common/syscall.h:90: undefined reference to `yield'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721/..\arduino_cache_248229\core\core_576b67285ecb01e18963173d351aed2d.a(analog.c.o): In function `analogRead':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/analog.c:484: undefined reference to `yield'
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/analog.c:515: undefined reference to `yield'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721/..\arduino_cache_248229\core\core_576b67285ecb01e18963173d351aed2d.a(pins_teensy.c.o): In function `delay':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/pins_teensy.c:1228: undefined reference to `yield'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721/..\arduino_cache_248229\core\core_576b67285ecb01e18963173d351aed2d.a(usb_serial.c.o): In function `usb_serial_write':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/usb_serial.c:218: undefined reference to `yield'
C:\Users\Rick\AppData\Local\Temp\arduino_build_365721/..\arduino_cache_248229\core\core_576b67285ecb01e18963173d351aed2d.a(main.cpp.o):C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/main.cpp:54: more undefined references to `yield' follow
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Multiple libraries were found for "SdFat.h"
Used: C:\Users\Rick\Documents\Arduino\libraries\SdFat
Not used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SdFat
Not used: C:\Users\Rick\Documents\Arduino\libraries\arduino_47876
Error compiling for board Teensy 3.5.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Thanks. I reinstalled IDE and Teensyduino 1.53 and things went back to where they were, the sketch works but with an occasional SD write latency problem....It may help to do a clean install of IDE 1.8.13 and then TeensyDuino 1.54 b7 if such odd errors aren;t resolved using the correct libraries.
#include "Arduino.h"
#include <string>
void setup()
{
std::string zahlString = std::to_string(42);
}
void loop()
{
}
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(string-inst.o):(.ARM.exidx.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERjj[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERjj]+0x4): relocation truncated to fit: R_ARM_PREL31 against `.ARM.extab.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERjj'
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_catch.o):(.ARM.extab.text.__cxa_begin_catch+0x0): relocation truncated to fit: R_ARM_PREL31 against symbol `__gxx_personality_v0' defined in .text.__gxx_personality_v0 section in c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_personality.o)
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_catch.o):(.ARM.exidx.text.__cxa_begin_catch+0x4): relocation truncated to fit: R_ARM_PREL31 against `.ARM.extab.text.__cxa_begin_catch'
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_personality.o):(.ARM.exidx.text._ZL21base_of_encoded_valuehP15_Unwind_Context+0x4): relocation truncated to fit: R_ARM_PREL31 against `.ARM.extab.text._ZL21base_of_encoded_valuehP15_Unwind_Context'
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_personality.o):(.ARM.extab.text.__gxx_personality_v0+0x0): relocation truncated to fit: R_ARM_PREL31 against symbol `__gxx_personality_v0' defined in .text.__gxx_personality_v0 section in c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_personality.o)
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_personality.o):(.ARM.exidx.text.__gxx_personality_v0+0x4): relocation truncated to fit: R_ARM_PREL31 against `.ARM.extab.text.__gxx_personality_v0'
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_terminate.o):(.ARM.extab.text._ZN10__cxxabiv111__terminateEPFvvE+0x0): relocation truncated to fit: R_ARM_PREL31 against symbol `__gxx_personality_v0' defined in .text.__gxx_personality_v0 section in c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_personality.o)
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_terminate.o):(.ARM.exidx.text._ZN10__cxxabiv111__terminateEPFvvE+0x4): relocation truncated to fit: R_ARM_PREL31 against `.ARM.extab.text._ZN10__cxxabiv111__terminateEPFvvE'
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_terminate.o):(.ARM.exidx.text._ZN10__cxxabiv112__unexpectedEPFvvE+0x4): relocation truncated to fit: R_ARM_PREL31 against `.ARM.extab.text._ZN10__cxxabiv112__unexpectedEPFvvE'
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(eh_terminate.o):(.ARM.exidx.text._ZSt10unexpectedv+0x4): relocation truncated to fit: R_ARM_PREL31 against `.ARM.extab.text._ZSt10unexpectedv'
c:/toolchain/gcc/gcc-arm-none-eabi-9_3-2020-q2/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libstdc++.a(vterminate.o):(.ARM.extab.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x0): additional relocation overflows omitted from the output
collect2.exe: error: ld returned 1 exit status