Actually search engines have a very specific set of syntax for advanced searches that return MUCH better results ... but nobody knows or uses them.
C is simple the bestest most awesomest language ever is why Arduino...
Use of loop() is optional, but including it is required because 'Arduino' rules say so - it will be called and as empty do nothing - except return and then be called again ... some Millions of times per second on a...
In this case the "const int x;" was a problem as noted in the compiler output - it is an unchanging constant value with no initial value.
It shows twice perhaps because the line has two assignments to a const value -...
@mjs513 re : "That was first question here "
I meant that was my first question on seeing post#101 ... thought there might be something useful of import ... all that occurred to me was the 'unique blink on power only...
Looking here : pjrc.com/teensy/td_timing_IntervalTimer.html
The called function takes no parameters: myTimer.begin(blinkLED, 150000); // blinkLED to run every 0.15 seconds
to call :: void blinkLED() {
That is...
Not finding a 'Single RP2040' purchase item.
But I do see the REAL cost of buying bulk PI ZERO's - versus the buy one only loss leader purchase of $5 or $10:
@mjs513 That was first question here ... seems so as there was to have been a RED LED indication powered with or without USB Connect when charge only cable is present. I could never trigger it as expected from Beta...
What fun ... or work. Two virgin parts means one test per board where MCU and the FLASH both get altered to limit re-use. Fuses not locked and not write protecting the upper FLASH could allow re-test - extra work and...
Encrypted boot is a follow on evolution after new bootloader work on this thread :: Bootloader-Chip-For-Teensy-4-0
>> Reading through that thread Paul has posted on the current bootloader work and how it might...
Wow - that is tedious grief to work through! Such subtle issues WE never see ... even on Beta test units you've gotten over all those issues ... well except the 'white wire' one which was easy to work around until...
The thing is indeed underpowered - but .vs. a 48 MHz T_LC it has much more RAM and FLASH and plus two usable cores at 133 MHz.
This RP2040 is way better than any AVR used for Teensy - how does that float math compare...
It takes some measurable time to make the change in clock speed. Checked it once some time back - but forget the numbers. It does have embedded while( wait for CPU makes change ); that are not finite and depend...
Thought I saw that noted ... so writing to RAM2 first would allow it to show on warm restart - but going to power down OFF losing RAM2? Maybe 'abuse' those RTC RAM bytes in case they are preserved?
And another FREE PDF MAG :: raspberrypi.org/articles/programming-raspberry-pi-pico-with-python-and-micropython {nothing PICO in this issue - Opps or the blog}
Raspberry Pi Pico is programmed using either C/C++ or...
Indeed - when it gets PANIC hot it goes too fast and off without notice as I saw. Seemed some print was noted as added - maybe a hook of the WARN temp could add a log entry? But hooking and handling that is invasive...
"That's" a bit vague? Is the point that starting support ASAP make Teensy the natural alternative?
There is already at least one book published on the PICO - changing those things would be counter productive to a...
Indeed it could be a chip that works well up to SPEC speed but has some temp/speed sensitive anomaly going OC.
Adding a tempMon() print might show something.
Putting a FAN on it will drop temp and would be an easy...
The 'download' link in p#5 notes which versions of the IDE are supported. For supported versions the installer maintains the needed java files to complete a working install on those known versions.
Current TD 1.53...
Is this on Windows or other?
See this page for OS specific details in any case : pjrc.com/teensy/td_download.html
If Windows was it a ZIP or Installer from the Arduino site? Windows Store version does not work...
... crossposted as I was unzipping and confirming for post #13.
TeensyDuino only works when and because it modifies the JAVA code installed with the indicated installs - that excludes the Windows App as it installs...
Not sure if this relates or helps? Just did a fresh UNZIP to :: Directory of T:\arduino_1.8.13_td154Port\
Created :: Directory of T:\arduino_1.8.13_td154Port\portable
Opened the IDE and The Portable gets these...
SparkFun has it and three Pre-Order variations: $10 Micro, $12 MMOD, $16 Thing+ using the RP2040 MCU.
Interesting speed but M0+, and "264 kB of embedded SRAM in 6 banks"
Shared code style might be nice - but their...
Thought so - but had to ask if is was near done and might line up with TD 1.54 now it is incorporated for awesome improvement - those write rates in P#33 are better than the old SD read rates.
I've had the SdFat Beta...
Great news Paul - big difference supporting a known system with (fixed) BOM for in house builds - versus supporting a generic range of items like FLASH chips.
@Bill Greiman - is there a feel for the coincidence of the 2.0.5 b1 timeline being weeks away from release that might coincide with TD 1.54 for use as SD.h ? ... both of course being unknown? Or is the new sdFat beta...
Snippets are usually a distraction - better to have the whole code posted if it can't be cut down to a smaller sketch that effectively shows the problem - that's why this :: Forum Rule: Always post complete source code...
Not indicated how many RGB LED's are in use? A photo showing the connections might help.
Quick guess based on something observed here : that GND wire may be feeding large return current through Teensy to host USB...
Good luck, if you get a working example posting it may help others and show how to use this feature.
Had hope that AN would show the 'enable' KurtE mentions, even if for wrong processor - if it does it is not as...
My EE buddy did that for a high school science project in 1980. Put his TRS-80 on a wheeled robot platform he built - focused light on an open top chip and navigated based on the chip's view of the world.
First glance it should be easier on the 1062 with external flash? As long as all needed code for the Flash writes is RAM resident - which user code is by default. But again that is not how the Teensy bootloader or the...
As noted in p#6 - Frank personally wrote such a 'code from SD' - so that was based on experience doing that and a great understanding of the Teensy programming process, not a coin toss - or anything that should be taken...
Not seen this come up before - but did find this app note for a different freescale/NXP processor : nxp.com/docs/en/application-note/AN5245.pdf
If the 1062 can support it as desired those notes may help - or suggest...
not crushed, i.e. discarded without reason - just noting a few hurdles making it non-trivial. One of which is the bootloader has one function and limited connectivity only to processor and none to SD card - it can "on...
Tested to work - Using a T_4.0 with loglow/TallDog T_4.0 board PCB to present SDIO pins to an SD socket.
That does not have PSRAM - but with reduced BUFFER it will use processor memory instead when EXTRAM is...
Indeed - even if that were a supported way to upload - where today it only via USB upload - it would take some orchestration overhead to ONLY do it once and not reProgram every time if the SD card were not removed.
...
Indeed that change makes this work in setup():
while(runTest(1));
So this need changed and also the :: "#if defined(ARDUINO_TEENSY41) "
Should also include :: #if defined(ARDUINO_TEENSY40)
It won't have...
That is in the spot of code noted in p#14.
Those "#if defined(ARDUINO_TEENSY41) " in "static void enableGPIO(bool enable) {" would preclude that from working on Teensy 4.0 with SDIO soldered on - but should use...
Closest is the below in : ...\hardware\teensy\avr\libraries\SdFat\src\SdCard\SdioTeensy.cpp
#elif defined(__IMXRT1062__)
//------------------------------------------------------------------------------
static void...
Edited the code to work with TD 1.54 b5:
#include <SD.h>
#include <SPI.h>
// https://forum.pjrc.com/threads/65851-Problem-reading-from-SD-card-directly-into-PSRAM?p=266951&viewfull=1#post266951
#define BUFSIZE...
Also note - there have been posts like "tried Paul's PSRAM test and it passed" - but then other usage fails until solder joints are reflowed or cleaned.
Noted as: "large file named TESTFILE.BIN" - but not how large? ...
Have not seen this noted as done or tried or done it here.
The TeensyDuino 1.54 Beta 5 has integrated a release version ( not Beta ) of the Greiman SdFat to replace the standard SD library.
Not sure that will...
The T_4.1 uses 480 Mbps USB. As presented (if I read right) by @KD5RXT-mark there is less disturbance and rerouting of the USB 'D' signal lines where it seems they are uninterrupted from the original cable. Not soldered...
That's great. When the version to release is assembled I'll look to get back and test it out when the code to be included is known and in one place.
Having the 1062 bootloader chip ready for the test pass will be...
Anything that provides simple info logging would be cool. As noted your On_Restart T_4 display is an awesome extension for HardFaults.
That's where I got bogged down - tying to add generic debug stuff to HardFault...
Things like that seem like a good addition to take the mystery out of a Teensy that 'just stops' - it doesn't generally happen - but when such things do happen it is an opaque puzzle.
And future more complex Teensy...
Forum search on "SCB_AIRCR" will find it liberally noted back to T_3.0 days IIRC - one might have comforting details - again IIRC from reading it is the common ARM way to do it.
For an advanced view of 1062's DMA and GPIO see : (arduino)\hardware\teensy\avr\libraries\OctoWS2811\OctoWS2811_imxrt.cpp
There are some other comments - but this is the biggest one:
// Ordinary RGB data is...
Updated Post #1 -
PJRC/Paul has indicated it is NOT planning to produce a public WIKI.
There is a GROWING USER WIKI :: TeensyUser/doc/wiki
> please look and participate there.
@Paul - possible to add a note for NativeEthernet on the T_4.1 hardware page? The hardware is discussed - but no link to the library to use for support ... recent user post made note of that ...
That need to send the 'address array' is where the Teensy's MAC will be written when the code shown above is executed. 'just supply' means allocate the needed 6 byte variable and pass to the function shown in p#2 and...
There is overhead with the tests and I/O write/read, mask shift and test - I should have looked more at the code before guessing speed. Also it isn't using FAST versions ( given the pin isn't CONST ) of digitalWrite...
I had not seen that before - interesting - it might clock near or above 60 MHz for each byte?
Did not look at the data sheet either to see how fast it can cycle - or the daisy chain setup - without sending a 'start'...
That code is 2013 and looks like it refers to bit banging the exchange in the second code snippet? If it can work manually and not using the SPI engine for the transfer then the bit bang code is in charge of the pins...
Okay, I had just glanced at the comments on the pin #'s (and saw i2s comments) before posting - then the 'red notes' on the FLEXIO mux set. So potential issue is not because the are mux'able to FLEXIO - but if the code...
Just to make sure at a glance what that is showing - the issue is using those pins 35,36,37 is in conflict because they have FLEXIO2 conflict with QSPI usage?
TD 1.54 Beta 6 will be out in some days and will have some stable version of LittleFS included - maybe by the time the chip arrives. That will have all the setup and operation commands needed to read and write that 64...
No, PSRAM is not needed to add FLASH. They are independent and either or both can be used.
Hopefully the comments in this code snippet point to a chip that has been tested and used that can be acquired?
Some of...
That looks to be the needed change in what looks to be the correct file.
Unless there are multiple copies of TeensyDuino installed and the edit was not made in the location used? Or for some reason the file change...
There is this library that allows working with the On/Off :: github.com/FrankBoesing/T4_PowerButton
The examples show usage - it was recently updated to catch and show FAULTS as well.
Good work @mjs513 - I typed on github asking about that ... but never hit post I saw today ... too many distractions ...
Wish I had known about the 2Gb NAND digikey had with last order so I don't have one of any sort...
Indeed maybe not ... I think you'd have to hook the warn callback and make a note of that in the static RAM. Then if it went OVERTEMP and restarted - not sure if that is a reported FAULT? If it is reported then it is...
Pretty sure Panel mount for the ethernet was not considered. It was just a desktop test proof of concept/function that works in that situation.
No those boards don't offer any good mounting options - just a minimal...
As long as there is a clean and easy way to include or enable it it sells itself - having a lib in the CORES would be awesome to just add #include 'something'. As noted I started working on it in T_3.6 beta I think -...
As noted in p#23 - if I'm reading the 'picture' right and the notes about no active components: I don't see that as an option - to use the ribbon without a magjack - or cabling punchdown wires direct to Teensy?
Interesting - well it is an otherwise empty function - may it gets optimized away :) ???
Could do a normal non-debug build and add a static var and use a stack var to get it and change it in some way it doesn't just...
Interesting that is failing to trigger on code over filling the stack? It is a 32 Byte(?) region? Maybe the recursive code isn't reading|writing to it to trigger but just stepping over it?
Have not gotten to test...
@KurtE - just came back here to read the posting below - wonder if this is what is bugging the T_4.x remote memory PCB? The solder is there but 'iffy'?
Odd the icon hover 'text' says "Thumbs Up" - but seeing the...
<edit>: I agree this should be provided in the core with a way to activate it for display on boot. Working on this in prior Beta's (with debug_tt) it seemed like it would be useful - but there were so few reports of...
Based on only the included image - that looks like just a way to panel mount a connector to take signals to a punch down block - or like a wall socket fixture - an alternative to in wall wiring - just a breakout...
Quite welcome. The comments in bold are not in the code - added for help with clarification - easier to read than 700 preceding posts as it all developed.
Look at the LFSintegrity sketch - it has #ifdef for all the known MEDIA types:
//#define TEST_RAM // can be PSRAM or smaller in processor RAM1 or RAM2
//#define TEST_SPI // this is Propshield or other SPI based...
Internal temp can rise and fall quick at times esp with OC - but stable runs can take some time to heat the whole PCB metal sandwich - and anything soldered or attached.
Wondering about junction temp and temp measure...
Paul's github has benchmark repository for T_4.0 test does as posted on the product page at 600 MHz - ( they may e linked there as well? ) - you could download the sketches and run them - coremark and another encrytion...
Use "wfi" with testing care - unlike the T_3.x's - there are no regular waking interrupts - so it can sleep until one comes along. The normal systick interrupt doesn't trigger to WAKE like on the 3.x's
Monitoring...