-
Older Activity
-
Today, 07:20 AM
good to find a non .ld solution.
Edits to that .ld are non-trivial and have systemic ties
5 replies | 108 view(s)
-
07-02-2022, 11:11 PM
Suspect that concern was resolved with the attachInterrupt() code in that file as it has been in use for some long time now without issue ... the problem with comments ... ???
> no comment, no clue beyond what the...
4 replies | 143 view(s)
-
07-02-2022, 10:36 PM
This thread pjrc.com/threads/69185-FLASHMEM-for-all-functions-in-a-file
Has tips on .LD file edits that keep ALL code in FLASH - and notes on pulling select code to RAM.
5 replies | 108 view(s)
-
07-02-2022, 10:17 PM
yield() is the one 'runtime' feature that goes with Arduino.
When called directly, and called with calls to delay() and on each exit of loop() before it is called again.
What yield does is check an existing...
342 replies | 56376 view(s)
-
07-02-2022, 07:00 PM
Yes, that should be the case - with the exception of some conditional and instruction time.
While in FAST I/O mode all pins route through a single common interrupt routine given the 1062 MCU design.
There is then...
4 replies | 143 view(s)
-
07-02-2022, 10:38 AM
Putting "FLASHMEM" as a prefix to the function prototype will have it reside in FLASH.
This example from PJRC's Startup.c for example:
FLASHMEM void configure_external_ram()
{
...
}
Start with any one time...
5 replies | 108 view(s)
-
06-30-2022, 07:07 PM
Seems details on the hardware controllers, motors and connections may be needed for related answers.
Wondering: If Master, Slave, DC unpowered::
> Plug in DC motor power: results?
> Then power Slave Teensy:...
2 replies | 88 view(s)
-
06-29-2022, 07:24 PM
Detail dithering catches me at times too - I did take a minute to find the 'quote from code' ...
millis() and micros() are used for each of the respective 'elapsed' types.
Indeed T_4.x uses a slower timer for...
22 replies | 265 view(s)
-
06-29-2022, 06:50 PM
It does not rely on any timers, but "class elapsedMillis" uses millis() for time reference:
...
elapsedMillis(void) { ms = millis(); }
...
22 replies | 265 view(s)
-
06-29-2022, 06:22 PM
Mike, are these (other) p#1299 edits in place for SD code: pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC?p=308206&viewfull=1#post308206
... I got Win_github to sync - but not...
1313 replies | 62394 view(s)
-
06-27-2022, 08:05 PM
@kurtE - Nice - will look at the usage and see if it helps MakeFiles - except that one wanted to pick a single 'DISK' for testing.
1313 replies | 62394 view(s)
-
06-26-2022, 06:42 PM
Does the SD card work right on a computer? Or is it really damaged?
Some T_4.1's with many card swaps here in testing and no such issues yet as far as the SD Socket failing - though I have an sd card or two in...
13 replies | 511 view(s)
-
06-25-2022, 12:50 AM
Yes, that part of p#2was correct: "will provide generous Serial output of any events as they happen"
With that enabled, remove the HUB and try a device individually and that should then show since the device connects...
12 replies | 193 view(s)
-
06-25-2022, 12:46 AM
Below is the code that resolves micros() given the last milli second timer update, and the cycle count stored then.
If the math were bumped to all 64 bit and the scaling to nano adjusted from...
7 replies | 433 view(s)
-
06-24-2022, 09:02 PM
No, I use android - but not much for posting. Also not noticed a trend of that. At this point this old BBulletin forum is basically 'what it is' - ideally PJRC was looking to move to a new platform - but time/work...
11 replies | 184 view(s)
-
06-24-2022, 08:56 PM
Post restored ...
11 replies | 184 view(s)
-
06-24-2022, 08:52 PM
See this: github.com/TeensyUser/doc/wiki/Implementing-a-high-resolution-Teensy-clock
Teensy has a processor clock based count of cycles: ARM_DWT_CYCCNT
At 600 MHz it overflows 32 bits after 7+ seconds.
That...
7 replies | 433 view(s)
-
06-24-2022, 08:46 PM
Yes, sorry - indeed, in that .h file : ...\USBHost_t36\USBHost_t36.h
// Uncomment this line to see lots of debugging info!
//#define USBHOST_PRINT_DEBUG
12 replies | 193 view(s)
-
06-24-2022, 08:08 AM
That looks to be an unpowered hub?
With T_4.0 connection wires had to be soldered to the bottom Host D+ and D- pins, those lines have to be done well. Good sign both devices work individually.
The T_4.0 unlike the...
12 replies | 193 view(s)
-
06-23-2022, 08:01 PM
No complaint on the track width - one more PCB than I have done :) Was just noting so many traces that it didn't seem like many were unused, and not all were visible in images.
Good note on what is available from...
4 replies | 265 view(s)
-
06-23-2022, 04:25 PM
Very cool. Edited p#1 link to work.
What few pins are unused? Though PCB trace space looks tight to pull many out anywhere.
4 replies | 265 view(s)
-
06-23-2022, 08:42 AM
That's how I read it as AFAIK it would make sense in context to help with sorting FS coding issues.
15 replies | 222 view(s)
-
06-23-2022, 08:00 AM
@luni I started a reply like yours ... if not there then #else bring it in, but did a refresh and saw the @WMXZ note that the has_include doesn't seem to perform the desired test?
15 replies | 222 view(s)
-
06-23-2022, 04:46 AM
That is a good ref @WMXZ : gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005finclude.html#g_t_005f_005fhas_005finclude
@Kurt - hopefully this link goes there as used that is not portable when has_include isn't supported
...
15 replies | 222 view(s)
-
06-22-2022, 08:14 AM
Updated Defragster/T4LockBeta/tree/main/MakeFiles to include features and functions of SD_MTP_debug.ino
Edited 2nd SD to only ADD when this works: if (sdSPI.begin(CS_SD2))
All code from SD_MTP_debug.ino at bottom...
1313 replies | 62394 view(s)
-
06-22-2022, 12:27 AM
Found it: diff in SD versus LFS_Flash mkdir() UPDATED >> github.com/Defragster/T4LockBeta/tree/main/MakeFiles
When a folder in a folder is needed {and neither exists} the SD FS will create both "ManyF" and subfolder...
1313 replies | 62394 view(s)
-
06-21-2022, 10:22 PM
My Bad for not checking enough jumping between LFS Flash and SD ...
> just off a 2+ hour telecon and got my outside project moved along ...
There must be something unique in my 'string' presentation in that and...
1313 replies | 62394 view(s)
-
06-21-2022, 05:04 PM
There was a note way back about depth support on 'some media' : perhaps mis-remembered, or it changed ... in scanning it seemed others had depth, but not seen just then.
Though still the same 'creation' works on SD...
1313 replies | 62394 view(s)
-
06-21-2022, 05:32 AM
@KurtE: would having an 'Unmount/Safe Remove' option allow closing disk files and then pulling the MTP drive and doing MTP.reset be a cleaner or good option?
Cool there was an answer!
The Off by 1: maybe the...
1313 replies | 62394 view(s)
-
06-21-2022, 01:38 AM
This is with 'b'ig create - not designed to work on LFS as written.
Updated with added process debug notes noting fail to create DIR. Detected fail to create DIR and exited without streaming cascading failures....
1313 replies | 62394 view(s)
-
06-20-2022, 08:58 PM
This isn't right - in moving path define this one got mismanaged:
Works - wrong on SD - should be making unique files in a folder - not re-using file name:
================================ Media...
1313 replies | 62394 view(s)
-
06-20-2022, 07:59 PM
Problem was using LFS FLASH that was too small. With command 'b'ig?
> except testing here used size is only 9MB of 64MB ????
Back on 64MB LFS Flash I see those errors - that do NOT repro on SD using the same 'b'...
1313 replies | 62394 view(s)
-
06-20-2022, 07:39 PM
@mjs513 : That was running on 16MB FLASH: Media Size=16,777,216
================================ Media Size=16777216 Used Size=16777216 us=112552 KB/sec=34706.18 Bytes written=4000000
It ran out of ROOM! ...
1313 replies | 62394 view(s)
-
06-20-2022, 07:16 PM
Mike, ...
Opps - seems it was fixed here and working - just not updated. :rolleyes:
github.com/Defragster/T4LockBeta/tree/main/MakeFiles
TESTING: 't', 'b', 's' cmds results in no create errors and no 'v'erify...
1313 replies | 62394 view(s)
-
06-20-2022, 07:06 PM
@KurtE - okay will got back to MAIN - misunderstood that code was edited since that last update and newest was that linked branch.
Darn .. I think I saw that the other day and torn with other tasks - I didn't get...
1313 replies | 62394 view(s)
-
06-20-2022, 06:49 PM
Need to go to other task ...
But glancing at github it looks like this is the updated branch with changes?: github.com/KurtE/MTP_Teensy/tree/try_auto_detect_sd_media
1313 replies | 62394 view(s)
-
06-20-2022, 05:52 PM
Odd not repro at all?
>> will hope to have time to reproduce with updated code.
The file set on SD card was 'probably': makefiles(2206): but unknown cmds :(
> should create and add to a "mfLog.txt" for tracking...
1313 replies | 62394 view(s)
-
06-20-2022, 05:34 PM
@luni got you to a solution!
But what the suggestion in post #2 was : replace ALL _isr code with just the indicated lines, not ADD the delay.
At 1 MHz there are less than 600 cycles available - and then adding in...
11 replies | 137 view(s)
-
06-20-2022, 09:38 AM
just to see ...Change:
volatile uint16_t writeIdx;
// ...
void loop() {
cli();
int16_t widx = (int16_t)writeIdx;
sei();
//...
11 replies | 137 view(s)
-
06-20-2022, 08:57 AM
The USB connector on T_4.1 is the Device connector to HOST for programming, etc.
If using the inboard USB_Host pins the the Teensy 4.1 (like the T_3.6) is the Host.
Using a HUB allows multiple devices to connect...
4 replies | 143 view(s)
-
06-20-2022, 08:27 AM
Ran with the updated MTP__MAIN code and SD_MTP_DEBUG.INO
1: First without debug=2, pulled copy MTP to HDD, did 'c' and 'p' - no debug output of course
2: Built SD_MTP_DEBUG.INO with debug=2, pulled another copy MTP...
1313 replies | 62394 view(s)
-
06-20-2022, 05:20 AM
Thanks Kurt - meant to get that page linked ... shows 14% error on clock math @1200 baud for T_3.6 ???
9 replies | 178 view(s)
-
06-20-2022, 04:26 AM
May be a clock setting problem not tested to an external device at that rate?
Can you cross Serial2 Rx/Tx to another port on the {same or other} T_3.6 and set them both up at 1200 baud and try send and receive on...
9 replies | 178 view(s)
-
06-20-2022, 04:18 AM
Sounds good Kurt ... will sync and run some.
1313 replies | 62394 view(s)
-
06-18-2022, 09:58 PM
Yes, if held low and released in the measured 13-17 second window, the PGM pin is wired in common with the Button, it would have the same effect.
6 replies | 152 view(s)
-
06-18-2022, 06:33 PM
IDE 2.0 often and regularly asks to save an unchanged file, even one the IDE presented on opening and never altered. KurtE noted this and has made an issue.
Indeed that Defragster's install of Teensy package...
256 replies | 30996 view(s)
-
06-18-2022, 04:08 AM
Back to this laptop - opened IDE 2
In board Mgr selected The Teensy 1.56.1 marked installed
Clicked INSTALL and it proceeded to reinstall:
...
Upgrading platform teensy:avr@1.56.53 with teensy:avr@1.56.1...
13 replies | 1716 view(s)
-
06-17-2022, 06:31 PM
Thanks Kurt, it works - yes 27MB zip to download was fairly large!
Nice to have it recognized and work seamlessly with TyComm again!
1313 replies | 62394 view(s)
-
06-17-2022, 05:02 PM
Thanks Kurt.
It was late and I ran the sdmtpDebug and saw that and until I found the code it was too late to discover the logic behind it.
And my head hurt after seeing 'skiped' on one screen and re-trying to find...
1313 replies | 62394 view(s)
-
06-17-2022, 08:44 AM
@KurtE
> did @koromix publish an updated TyComm for PID_VID::MTP+Serial? I missed it is so ... if not can you point to one?
- got the updated code.
Inserted SD card running the sd_mtp_debug not sure what this is...
1313 replies | 62394 view(s)
-
06-16-2022, 05:18 PM
Very cool Kurt, will see about updating makefiles to allow it - and the debug.
Maybe add a #define in MTP_storage.h to ID when that version of the lib is present ... so it can do the right thing when present or not...
1313 replies | 62394 view(s)
-
06-16-2022, 07:07 AM
Pushed Update to github.com/Defragster/T4LockBeta/tree/main/MakeFiles
Added LFS options for:
F - Format Disk Low Level
S - SAFE Unused block Format
The main write loop of the Verifiable data will exit on...
1313 replies | 62394 view(s)
-
06-16-2022, 06:48 AM
This is exactly what .formatUnused() does. It does take 'user code' "during Down Time ... or before Active Time" when write speed needs to be optimal.
Usage was included in the integrity test code for LFS and I just...
21 replies | 317 view(s)
-
06-15-2022, 09:19 PM
That is puzzling that whole files got missed. That was showing before on SD card, but it went away. All recent SD copies had at worst a missing packet or so, but all files were present after MTP read from T_4.1.
>...
21 replies | 317 view(s)
-
06-15-2022, 06:40 PM
Odd they did not copy ... Assume makefiles: 'l'ist shows them so they are properly findable and the "C"opy would put them on SD. Also 'v'erify.
Done minimal testing on Flash - SD no fun transferring the card all the...
21 replies | 317 view(s)
-
06-15-2022, 05:33 PM
Should that be: " 1 directory of 5 files did NOT copy when I did the transfer from the flash to the PC"
> CodeCompare looks to show them missing
Don't forget the fun - but, perhaps useless here - given the files...
21 replies | 317 view(s)
-
06-15-2022, 02:05 AM
MTP Explorer in Win 11 select All Files copied from last MakeFiles.ino create copied to the PC from the SD card: 14.2 MB in 1540 files and 40 folders
SD card starts empty and freshly ExFat formatted by official SD...
1313 replies | 62394 view(s)
-
06-14-2022, 10:58 PM
SD card corruption follow up. <EDIT>: This SD card is formatted ExFAT
Emptied drive with "W"ipe
> PC found no errors but added the 'Sys Vol Info" folder back
SD into MakeFiles.ino
> 'r', 't', 'b'
SD returned to...
1313 replies | 62394 view(s)
-
06-14-2022, 10:18 PM
QUESTION: With recent code there was a better way to RESTART MTP to catch Teensy side changes?
Currently MakeFiles offers this:
case 'U': // USB Reset
#if defined(USB_MTPDISK) || defined(USB_MTPDISK_SERIAL)...
1313 replies | 62394 view(s)
-
06-14-2022, 09:23 PM
Playing with MakeFiles.ino ROOT files count 490 - wondering if their size of 48 was too small - bumped to 992 and renamed so they would trigger content size during Verify.
To see it work ( Files that Verify are NOT...
1313 replies | 62394 view(s)
-
06-14-2022, 08:40 PM
Here using KurtE's Debug demo above and the Example_3_Simple...
BOTH work properly - with the set of 490 files on the root.
Check the end of the Console Build output - make sure there isn't an local old library in...
14 replies | 231 view(s)
-
06-14-2022, 06:49 PM
UPDATE - based on sleep and post in the 'fail to enumerate thread':
Repeated test without LFS Program disk for mtpindex.dat storage and the old DIR and data confusion seems to be improved?
>> This looks like...
1313 replies | 62394 view(s)
-
06-14-2022, 06:37 PM
@KurtE - hi - you're welcome.
Indeed, using TD 1.57b3 or newer is important.
Reading Kurt's post#7 suggested the LFS Prog disk isn't needed - which I didn't try at 4 AM ...
Just rebuilt with: //#define...
14 replies | 231 view(s)
-
06-14-2022, 10:47 AM
TeensyDuino 1.57 Beta 3 just released.
In this post above code was incorporated (mostly) as posted: pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC?p=307790&viewfull=1#post307790
...
21 replies | 317 view(s)
-
06-14-2022, 10:41 AM
Post #1 not updated: TD 1.57 b3(+) and MAIN BRANCH >> github.com/KurtE/MTP_Teensy
This 'user post' having an issue not repro when test case added to MakeFiles, suggested use of LFS PROGRAM for storage of mtpindex.dat...
1313 replies | 62394 view(s)
-
06-14-2022, 10:00 AM
Just did a mod to ongoing test sketch on above thread - not yet posted there or updated.
Using IDE 1.8.19 with TeensyDuino 1.57 Beta 3 on a T_4.1 with 128MB SD card
Writing 490 files on SD card root "Mrt_###.txt",...
14 replies | 231 view(s)
-
06-14-2022, 07:57 AM
If read correctly ... the 490+ root files pre-exist and have been collected over time?
And when presented or viewed not all are presented. Looking at Repro in test code for thread where DEV work is in progress:...
14 replies | 231 view(s)
-
06-14-2022, 01:36 AM
Good luck @clinker8. Losing TyComm is a pain - having it take your whole machine offline is disaster.
Wonder if the build or lib tools @koromix uses are causing the trouble after some change. Not sure where he is...
16 replies | 196 view(s)
-
06-14-2022, 12:18 AM
Will give EaseUS P.M. a look. Have the Pro edition and just running it now to move a HDD to a SSD.
Not planning to jump on Ext4 right away given I have no linux boxes active.
1313 replies | 62394 view(s)
-
06-13-2022, 09:09 PM
Thanks, grabbed a copy - those disk* tools do suggest they'd work!
1313 replies | 62394 view(s)
-
06-13-2022, 10:04 AM
Are encoder interrupts going to be over 7 seconds apart?
If not using the cycles64() is wasted effort, if neither triggers in that ~7.15 second windows - then the cycles64() will not update correctly.
Having...
2 replies | 179 view(s)
-
06-13-2022, 09:34 AM
Strange indeed ... Win 11 Desktop and Win 10 laptop both downloaded that .tar. and extracted tools folder.
Indeed that teensy_secure.exe is present on both, and is executable as extracted. So nothing seems to be...
13 replies | 1716 view(s)
-
06-13-2022, 06:18 AM
win10 laptop unzipped ide 2.0.rc7, added board mgr link p#1
Installed the Teensy boards
Opened example BlinkWithoutDelay and selected board T_4.1 and did Verify with no Teensy connected, maybe missed error popup...
13 replies | 1716 view(s)
-
06-12-2022, 08:14 PM
Yes, that was the reason behind the second line in my crosspost.
@KurtE - has there ever been cases of the RED blink after running started?
p#1 says: "executes the code for around a second and then it stops...
5 replies | 153 view(s)
-
06-12-2022, 07:49 PM
Odd Windows doesn't seem to have a way to R/W ext4.
Search shows some tools to read only or one to converts ext4 partition to Fat32 or NTFS
So funny that Teensy can do ext4 I/O ... ???
1313 replies | 62394 view(s)
-
06-12-2022, 07:45 PM
Once enabled the ARM_DWT_CYCCNT ticks on each clock cycle of the MCU without pause.
In doing the micros() based offset to millis() code - or other testing - I did something like.
uint32_t anArray
then in some...
18 replies | 627 view(s)
-
06-12-2022, 06:24 PM
Awesome indeed!
6 replies | 368 view(s)
-
06-12-2022, 06:01 PM
Indeed, using/adding libraries is way too common {even for the newest of 'noobs' the IDE was meant to support} and not having a clear path to using the 'desired one' is a showstopper.
The PJRC console output for...
256 replies | 30996 view(s)
-
06-12-2022, 05:49 PM
Crashing into T_4.0 bootloader is an odd sign, in fact first report?
> is there a pattern/count with a pause in the RED bootloader LED blinking?
Generally the first easy thing would be to look into 'CrashReport'....
5 replies | 153 view(s)
-
06-12-2022, 05:24 PM
Glad to point it out. It is of course the MCU's cycle clock counter and at 600 MHz has 600 times more resolution than micros() - and on T_4.x it is used to resolve micros() between millis().
It is generally very...
18 replies | 627 view(s)
-
06-12-2022, 06:15 AM
@markkimball: using uint32_t time0;
and ARM_DWT_CYCCNT for timing should have even less error than micros():
// Benchmark for modifying GPIO6_DR
time0 = ARM_DWT_CYCCNT;
for(i = 0; i < 100000;...
18 replies | 627 view(s)
-
06-11-2022, 05:29 PM
The UNO is running at 5V?
Is the Display producing 5V? Or switched to 3.3V where it can work?
The Teensy 4 is not 5V tolerant and 5V will destroy it.
38 replies | 856 view(s)
-
06-11-2022, 04:59 AM
Dynamic allocation is with sm_alloc() given external QSPI RAM
Some info here: forum.pjrc.com/threads/63695-malloc-free-for-EXTMEM-and-DTCM?highlight=sm_malloc
It has some smarts about maintaining the memory pool...
6 replies | 368 view(s)
-
06-11-2022, 01:55 AM
@KurtE - Cool - indeed, that does seem to match your post #196:
Missed reading that as such, but had seen the sketchbook issue recently when a private lib took precedence.
Wow - this is a complex process...
256 replies | 30996 view(s)
-
06-11-2022, 01:11 AM
Not seeling files at groups.io/g/SoftwareControlledHamRadio ... is membership required to view?
2 replies | 165 view(s)
-
06-11-2022, 12:36 AM
@mjs513 - open a known SD sketch and build - then check console to see if it is using the right SD library for Teensy?
If IDE 1.8.19 for instance links to a lib from 'sketchbook\libraries' it won't show examples for...
256 replies | 30996 view(s)
-
06-10-2022, 09:41 PM
In github.com/moononournation/Arduino_GFX/blob/master/src/Arduino_GFX_Library.h
I see this 'hardcoded' at: github.com/moononournation/Arduino_GFX/blob/master/src/Arduino_GFX_Library.h#L117
#elif...
38 replies | 856 view(s)
-
06-10-2022, 09:13 PM
Found US: amazon.com/gp/product/B08V5538C6
Title notes : SPI Interface Embedded GC9A01 Driver
Led to: github.com/carlfriess/GC9A01_demo
That link for STC12C5A driver led to this:...
38 replies | 856 view(s)
-
06-10-2022, 06:18 AM
Good note on the #ifdef - both use the 'same' 1062 MCU. Some rare cases distinguish the two as noted.
If no T_4.0 bottom pins are used, there should be no concerns. The two work interchangeably on the primary edge...
4 replies | 237 view(s)
-
06-10-2022, 05:47 AM
Yes.
The first top edge pins of the T_4.1 inherit from the T_4.0.
If used, those on the bottom of T_4.0 are mapped to the extended portion of the T_4.1.
RAM is the same size and configuration, FLASH bumps from 4 to...
4 replies | 237 view(s)