The code in the link above :: pjrc.com/threads/48450-uNav-AHRS?p=168449&viewfull=1#post168449
Puts the : attachInterrupt(digitalPinToInterrupt(GPS_SRX), GPS_serialrx_isr, RISING); - Directly on...
Type: Posts; User: defragster
The code in the link above :: pjrc.com/threads/48450-uNav-AHRS?p=168449&viewfull=1#post168449
Puts the : attachInterrupt(digitalPinToInterrupt(GPS_SRX), GPS_serialrx_isr, RISING); - Directly on...
Setting up the 'Rx' as a watch pin served the desired purpose of seeing the Start of data bits in that case, so no need for low level UART operation was needed in that code. And with only 5 or 10...
That is more than a simple blink ... so added details might be helpful. Also interesting if the same process using the standard IDE install with known TeensyDuino can reproduce - it may be T4 or...
Paul - minor update ... Interedted to hear if you try this sketch and see similar or different behavior.
I finally stopped the tSerMon - running fine - [ except no send after the first few seconds...
Cool. Seeing signs of good throughput as noted above - but requires the indicated delay()'s in some fashion to have my Win10 PC keep running.
Right now with the last posted 7000/700 I have two...
Modified the output to show a run time time measure in minutes:
Moved the two delay times to #define at the top - printed for ref in setup():
#define LONG_DELAY_SEC 7000 // in...
What sketch is running - does it do this with Simple Blink - or is this a full speed write to Serial sketch for SerMon message viewing?
What version of the IDE and TeensyDuino are in use?
Make this call in setup() and see if it completes any faster: analogReadAveraging(1);
IIRC by default the internal hardware averaging does 4 reads per returned sample.
Paul - revisiting : PaulStoffregen/USB-Serial-Print-Speed-Test
When you get back to USB testing - maybe PJRC's IDE SerMon will work better for you than on my Win10 box. In any case this is...
Looking at Post #14 code - it looks like nothing gets pasted - but the line
#define SDFAT_BETA 0 is removed
I've posted code that puts an interrupt on the Rx pin that triggers when the STOP bit goes to START - the interrupt records the time, and turns itself off so data bit transitions are not trapped. ...
This should be #ifdef ?_1062_? since it is MCU specific?
Also we know restart times under 2 are suspect or fail - it would be good perhaps to add:
if ( delay_secs <2 ) delay_secs=2;
...
No, that as .a doesn't work as I tried it.
Normal code as :: sketchbook\libraries\reboot holding the reboot.h and .cpp instead of .a does work with this sketch:
#include "reboot.h"
void...
+Not: Thread titles are set in stone as they are the root of any link I suppose … Sorry the 'o' stays :(
I wasn't sure about the _isr() - it fires immediately on/at EXIT? Maybe that is the MCU...
When I turned on the _isr() "Alarm" I was seeing it with prior code - but timing may have changed and USB may get lost on exit?
Good to see it pared down some and working - I wasn't sure how much...
Looking across the forum these notes came up in T4 Beta thread:
Paul - used Serial.peek() for the first time and it works.
No, to get SerMon to send it typically pushes what was typed follwed by "ASCII code 10 = LF ( Line feed )". So a single character...
@WMXZ - above I noted this { post #12 } with a 2 second turnaround could be a way to RESET/Restart the T4 - which I've not seen yet?
There is a thread pjrc.com/threads/29607-Over-the-air-updates...
The manual is a headache at best. That code was from @WMXZ and whatever it does works - the only oddity in that thread was that Power button shares the Low Power restart segment of the RTC - and...
Just triggered the overtemp detection and it seems to just halt. Other than this RTC restart that does an automated Power Off and Restart not recalling anything else worked.
It'll work for now if...
Good to know nothing 'tweaked' your T4 in the process! I usually have my speakers off too - especially when it sits there beeping over and over 4 times a minute :) - there are those times that...
Paul: Just notice triggering a 15 sec Restore on T4. Press button - Red LED dark - Red BLIPS at 15 seconds. I held it some time after that expecting it to bypass the RESTORE and when released it...
Yeah - it just needed a cast to stop the warning - it was working so was ignoring that :: setSyncProvider((getExternalTime) Teensy3Clock.get);
Odd the USB isn't good and right? That should...
Is that in ref to post #48 code? Came working from IDE 1.8.10 install with TD 1.49b1. Yes there is 'THAT' warning about a type I didn't clean up - but it runs to T4 - that is a warning and the...
Guessing the disconnect from interweb was a special/specific request so that the test package would run in ANY case as properly signed and approved. When it can see the interweb it will have a...
Opened the sample for that RTC_Sleep code, here is where I left it in loop() there is a normal 20 second cycle and sleep 10 secs. If during the 20 secs push over Serial 'Enter' it does a RESET and...
Round about way to Reset : issue-to-reporogram-T4-0
That code works to SLEEP the T4 with a timer to wake. When it wakes it enters setup() after fresh load from flash in ResetHandler(). Not seen...
this post 11/21 speaks to the issue:
Those tests are generic showing suspicious behavior, pins to check or evaluate. They may be influenced by soldering itself or what it may be soldered to.
Ideally a fresh Teensy would not find any...
Check this post / Thread : Problem-with-Teensy-3-2-Serial1-and-HC-06
Legit quality HC05's seem to work - not sure of the source of ones in use.
void setup()
{
pinMode (outputA, INPUT_PULLUP);
pinMode (outputB, INPUT_PULLUP);
Serial.begin(9600);
while( !Serial ); // Add this when seeing output is needed // or to wait 2 seconds...
Does the coding account for the amplitude limits on adding multiple sounds at once?
If total signal combined hits over 1 you'll hear distortion. Seems there are notes in the Audio tool - or the...
There is a sketch here to test for shorts: Possible-new-shields
and this one that sets pins HIGH or LOW and then using a wire to PULL LOW or HIGH it will show the changes to Serial Monitor:...
Installed 1.49b1 over github cores on 1.8.10 : All seems good and well.
Improved USB Serial Receive code working fine.
RAM report looks different and about right - showing cross ref of...
I was wondering about readBytes - (and any other class parts?) - especially when the .available() didn't match the while(read) count.
Seeing 600 makes me wonder about running at least this...
Paul - he did that before I posted the same about 'private lib' - from this thread he is using the newest by @mjs513 in post #7 ::...
That looks pretty much wonderful/good - using the now current updated github\cores - at least to above sketch - updated below. So the change updates the count on each 512 packet - which moves above...
I wonder if my setting is wrong? since so many people using both encoder libray without such problem, how can I check?[/QUOTE]
See post #1 :: "NOTE: you will need to incorporate the Update imxrt.h...
It is MUCH better in the right direction.
Assumed it was a WIP - if it was that easy you would have it done already. Saw the github update and wanted to see if the sketch was a decent test ......
Paul - I saw github Update - it passes the above post #16 code test it seems?
Just room for TWO large buffers so far?
Though it doesn't seem to like it if the send is a large 2800 bytes?...
Paul Noted on other fixed thread about 'this' thread:
With that other issue fixed based on post #12 by Paul
I'll write something much better this weekend. Will need as much help as possible...
That looks Very Cool! Useful extension of touch and well played on the drum line/stick/bar ...
What is in the drum bar for sensors?
Keeping code formatted helps - doing it manually of course is suspect to seeing things like that. In the IDE a Ctrl+T will do formatting the their uniform standard.
That is an easy way to find...
512 bytes Also WORKING - with yesterday's github USB update: Multiple of the 64 byte line in a single Send up to and including 512 works as a single read group.
Did CODE mod to show read count and...
Perhaps the "Github runs post #1 code " wasn't seen as CONFIRMATION that Github runs post #1 code - without problem or issue.
And this is 10,020 - the count goes on … fun to offer @wwatson help - especially when it helps get good stuff done.
As far as Dev tools for Windows when the IDE gets tiresome using the...
Everything is so in paranoid mode {justifiably} - download an office DOC and it can't run/edit/print without APPROVE.
I opened the imxtr-size github VS SLN file - and had to APPROVE it to open to...
@KurtE : VS2019 installed - not built - but github debug imxrt-size.exe works now! And back in Sublimetext to compile and build.
FlexRAM section ITCM+DTCM = 512 KB
Config : aaaaaaab
...
Nice that worked as expected. The code wouldn't be hard to change - just some #ifdef stuff in the way and then testing the cases …
It might even make sense to stop the timer anytime the queue...
Updated code from Github runs post #1 code with post #2 FAIL string :: "1234567890123456789012345678901234567890123456789 01234567890abc"