Found doc on the use of the arduino-cli.exe ... https://arduino.github.io/arduino-cli/1.0/getting-started/
In the end it resolved to the standard FQBN ... not sure about all the steps up to there? Creating a config and environment? Just a scan -...
Same here. Been using IDE 1.x and 2.x - with 1.x used more often it seems.
Looking at linked thread - I found my account wiped after login with saved creds?
Not seeing overt usage - the TSET just used the IDE CMDLINE text and options.
I pushed up changes for this into my fork/branch: https://github.com/KurtE/cores/tree/variants_override
Fix T3.x SerialEventX when format is passed in.
Before there were two different begin Methods that were wrappers to the c begin and format...
Not when the Teensy is properly executing an uploaded program with active USB as it will respond to the bootloader request signal over USB.
However, if the Teensy ever fails to be in that active state - then Yes, access to the Button, or the...
@ACME Nice - Glad you got through it. Could have probably found a better example - but once I finally got to that 9 year old code - time was up.
Indeed, the Jitter dots seem to be a thing. Seems it may need a timed 'debounce' for subsequent...
Simple two wire - if nearby - would be GND and sending Teensy UART Tx connected to Rx on a UART with same baud rate settings.
2Mbaud should be reliable and give most of 200KB/sec or 200 bytes for each 1KHz sample? 2Mbaud should be reliable and...
Yes. Was fun to dig out a T_3.2 for something. :)
Knew it was in "there", but didn't have/take [ :( ] time to look, given it was a @KurtE effort in all this to speed up yield() processing that Previously put a big damper on loop()/sec rate.
This seems to work with a couple of caveats:
void setup()
{
Serial1.begin(115200);
delay(2000);
Serial1.printf ("Hello World from setup!!!!\n\r");
Serial1.printf ("Hello Teensy from setup!!!!\n\r");
}
void loop()
{
}
char inChar = 0...
You found it @mjs513 ! No more "DATA WAITING"
Hello USB World
Hello World
3301
6302
9303
// ...
Taking the 8N1 off the .begin() and it is working!
Something in the Teensy3 CORES distinguishes that added option PARAM as 'Not Using Serial1'...
Wow that is old: https://forum.pjrc.com/index.php?threads/ili9341_t3-touch-screen-trouble.39878/post-124210
If the rotation can change this handles it when called - if you just need one fixed direction, then as @KurtE noted the map() needs...
I THINK I've figured out what went wrong, and there are two possibilities, neither of which follows the theories above.
1) Sometimes, my application code is running but for some reason no USB devices enumerate. I can plug and replug, and no USB...
Makes sense - in Early days here it seemed like magic - but it is just called as noted outside each loop(), yield() and on delay() calls. Not interrupt 'Event' or other 'something for nothing' transfer. Having it in those places can assure 'busy...
Side note: Arduino has more or less ditched the SerialEvent concept. Or at least more or less all of their newer board cores, like UNO R4, GIGA, etc do not support it. And issues raised against them were closed out as won't fix (by design)
Or maybe it may have some effect? Maybe it will be a problem. It's been quite a while...
You might end up with both Arduino's simple size report and Teensy's special one. If you want only Arduino's way, you can find the special hook rule that...
Sorry my memory is a bit foggy on this. Hopefully @PaulStoffregen or @defragster or others may remember more.
I believe they were used to print out the size information at the end of builds, and potentially cause the build to abort if the...
As p#2-4 note the 1MB of Teensy RAM is unique and non-contiguous so it doesn't usefully map to the simple Arduino presentation. Only the FLASH size changes between T_4.0, T_4.1 and T_MM.
The source for Teensy_size.exe is available - it was easy...
Data cache is flushed by arm_dcache_flush(memory, 4) inside initWriteRegisterMemory().
For this simple example which only writes once, instruction cache doesn't need to be invalidated since the first usage to execute instructions will be a cache...
Could a minimum EXEC case be made? Just an entry point that does a return. Get the ASM bytes and write them to PSRAM and then call that entry address to see it work? Perhaps extending it to take a param and increment it and return the value...
Not seeing what to change in p#4 or p#6 {Remove local yield()} code to make it work?
It was 2AM - only tried on IDE 1.8.19 with T_3.2 - did not look at sources - knew it was due to yield() minimization excluding it for some reason.
Please run...
Indeed, there is a problem with the expected calling of serialEvent1() and it should be addressed in future release.
For now something like the p#4 code does and manually call the serialEvent1() code from loop().
There is nothing magic about...
There is a problem with T_3.2 and serialEvent1 processing ! IDE 1.8.19 and TD 1.59
Test NOTE: Jumper Pin 0 and Pin 1 on the test Teensy to see Tx return on same Serial1 UART Rx
Code below on a T_MM - working as expected with serialEvent1()...
@MichaelMeissner is a good voice to this and it seems on point.
Teensy startup moves code to run in RAM1 from FLASH: "// Initialize memory" - then there is some 'code init after that'? Not seeing an explicit call between early and middle '_hook's...
That looks like an even coating of flux or something on the board?
Not sure that could explain it bringing 3.3V to that pin alone but would be worth a clean and dry of the PCB to see if it restores function.
@mjs513 - was curious to try your raytrace sketch you posted on one of the other threads:
https://forum.pjrc.com/index.php?threads/ra8876-parallel-display-library-testing.75345/page-13#post-347610
And wondered if it would improve to have it...
I filled in most of the CrashReport page. Added examples for logging to SD card and LittleFS_Program. Can anything think of important CrashReport info I missed (besides addr2line...) ?
I've started a CrashReport documentation page.
https://www.pjrc.com/teensy/td_crashreport.html
Hopefully no surprises, but now we'll have an official permalink page for the CrashReport documentation.
As I mentioned I would KISS, maybe something like:
uint32_t *reboot_counter = (uint32_t *)0x2027FF00
if (strcmp((char *)0x2027FF04, "Mary Had A Little Lamb") != 0) {
// Cold boot.
strcpy((char *)0x2027FF04, "Mary Had A Little Lamb")...
Odd - thread refresh showed quoted @Schaeg reply but not this from @KurtE
PJRC's CrashReport usage of a cache line of 128 bytes is well tested - under Crash conditions for years. A clone/copy of that code just 128 bytes below that used address...
Forum search "0x400D4100" should find only known context. The old forum thread will show the 'Enable' was a mystery to locate for some time
NVRAM is a local variable pointer to the indicated fixed address. IIRC that area can be read, but not...
Yes, the Serial.begin() waits until millis reaches some 2.3 seconds from start - if no SerMon/Host connects it exits. Wrote code the other week - and posted - and saw the measured time - not recalled now. Would also be apparent in CORES source...
Perhaps that is why it was considered and the follow up questions as they were: Host connected, RED LED, any while (!Serial)
Lots of guesses needing more detail ...
That...
Post #3 asked about various things ... unanswered.
OP didn't mention 8 second restart - so not a crash?
Given answer to that then CrashReport would make sense ...
Not sure if connected to a Host? USB Active to SerMon - is there a while...
Nothing normal or included in Teensy to do that except a Crash.
If the code is crashing - in which case it would restart after 8 seconds.
Is there any flash or light from the RED LED by the USB connector?
The only other expected way to Halt the...
Thanks for that clue. At first glance, the “Host:” line should be there because HTTP 1.1 clients are supposed to send that. I’m just surprised that “Host:” line isn’t there for the 0.28.0 version. I wasn’t looking closely at the serial output...
Correct - see post #12 - parallel code using 128 bytes (one cache line) just under CrashReport that could be used in the same way. It demonstrates needed cache Flush (or the value won't be pushed out) and even a checksum that would assure less...
That cable splitter seems the opposite of what is desired
Power up to Two Micro USB Devices at Once from a Single Micro USB Port
Design seems to be one USB cable to power two devices, that is not like old external hard drives or CD drives where...
Good luck moving forward. Posted NTP example exposes the IP and so does the indicated SNTP ...
Opps - that didn't catch my eye - nice.
Starting...
MAC = 04:e9:e5:0e:cf:8d
Starting Ethernet with DHCP...
Local IP = 192.168.0.203
Subnet...
@defragster there’s already an SNTP example:
https://github.com/ssilverman/QNEthernet/blob/master/examples/SNTPClient/SNTPClient.ino
(I’m open to improvement suggestions.)