Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: defragster

Page 1 of 10 1 2 3 4

Search: Search took 0.09 seconds.

  1. I have not updated CORES for normal Serial. As...

    I have not updated CORES for normal Serial.

    As noted MakeFiles.INO was running as Serial and added #ifdef to ideally allow selective use of MTP.

    For some reason it won't run as Serial now -...
  2. Replies
    12
    Views
    164

    You can post issues on the github to the author...

    You can post issues on the github to the author is something could be clarified.

    As noted, the posting was two hours delayed - walked away with it written on an 'interrupting task' :)

    As noted...
  3. Wire.h is the base i2c supplied and supported by...

    Wire.h is the base i2c supplied and supported by PJRC. It covers all WIRE#'s on various Teensy models: See {local install}\hardware\teensy\avr\libraries\Wire\WireKinetis.h

    i2c_t3.h is an...
  4. Replies
    12
    Views
    164

    Once Threads are enabled - everything is 'a...

    Once Threads are enabled - everything is 'a thread' - including loop, as only one thing can run at a time on the single CPU core.

    AFAIK by default all threads are given the same value for...
  5. Replies
    3
    Views
    70

    Allow source or stand alone executable is...

    Allow source or stand alone executable is available for : Teensy-Qt

    It has a GUI - always in use here - (except Iploader for use on the LOCKABLE variants of the T_4.x 1062's) - as SerMon and...
  6. Replies
    12
    Views
    164

    If both "A" and "loop" have 10ms timeslices - as...

    If both "A" and "loop" have 10ms timeslices - as noted in p#4 - it will return in 10ms.

    So every 20ms both threads will run once. And in 1 sec, 1000 ms, both will execute 50 times.
  7. Thread: Teensy Qt

    by defragster
    Replies
    456
    Views
    188,165

    Great work, and Thank you @koromix!

    Great work, and Thank you @koromix!
  8. Replies
    12
    Views
    164

    The ReadMe does - the sentence after the...

    The ReadMe does - the sentence after the indicated text above:


    Notes on implementation
    Threads take turns on the CPU and are switched by the context_switch() function, written in assembly. This...
  9. Replies
    11
    Views
    235

    SDIO not working? Seems like the SDIO adapter may...

    SDIO not working? Seems like the SDIO adapter may have wiring issue.

    See this post and following to confirm proper wiring: T4-SDIO-SD-Card-quot-initialization-failed

    Paul made a simple sketch...
  10. No MakeFiles.ino Update, except a few minutes...

    No MakeFiles.ino Update, except a few minutes progress getting bearings in the file. A few minutes to complete left for after next daylight fades.



    FILE .++zDDd....
  11. Replies
    12
    Views
    164

    The readme might have some answers:...

    The readme might have some answers: github.com/ftrias/TeensyThreads



    Notes on implementation
    Threads take turns on the CPU and are switched by the context_switch() function, written in...
  12. Replies
    12
    Views
    164

    More info on the Threading tool in use would...

    More info on the Threading tool in use would help. TeensyThreads or other?

    With a one second test in loop() the differ in the thread Counter++ could be measured.

    But with delay(1000) in both...
  13. Did a double byte clone of MakeNames() in...

    Did a double byte clone of MakeNames() in MakeFiles.ino:


    dbMakeN File:россиянин/��.txt=32
    dbMakeN File:россиянин/��.txt=32
    dbMakeN File:россиянин/α.txt=32
    dbMakeN File:россиянин/β.txt=32
    ...
  14. Here with current MakeFiles.ino indeed, Serial...

    Here with current MakeFiles.ino indeed, Serial connect to SerMon with SereMu at : Serial online : 5010

    As Kurt notes - faster normal Serial would be better.

    If yield() / eventResponder code...
  15. In MakeFiles is an ASCII test MakeNames() -...

    In MakeFiles is an ASCII test MakeNames() - perhaps that could easily be edited/cloned to make UTF8 names in some fashion. That was done when wwatson found some naming issue before it was understood....
  16. Replies
    3
    Views
    137

    Paul can answer the BUS question ... RAM2 diff...

    Paul can answer the BUS question ... RAM2 diff somewhat from RAM1 that is why it is good for DMA
    Quick other notes AFAIK:
    - RAM1 runs at CPU speed
    - RAM2 is clocked at CPU/4 as noted
    - there is...
  17. Updated MakeFiles...

    Updated MakeFiles

    It now scans ALL DIRS! And checks any file with fileSize as start of name to match reported length.

    Byte check of file blocks not started.

    Other tidbits added - KB/sec on...
  18. Quick search shows it isn't used often "lfs.h" -...

    Quick search shows it isn't used often "lfs.h" - just one copy in "info struct" for each file:


    // Maximum name size in bytes, may be redefined to reduce the size of the
    // info struct. Limited...
  19. Replies
    8
    Views
    138

    Respect is always appreciated. When not enough...

    Respect is always appreciated. When not enough info is given to see a path to the answer seeing the code can be essential.

    Never used but this shows up: github.com/PaulStoffregen/X-Plane_Plugin
    ...
  20. Thanks for the RAM Stream code link - saw it in...

    Thanks for the RAM Stream code link - saw it in passing ... and a lot has been passing by.

    Yes, if ( !MTP.loop() ), or anything like that bool or other 'status' value as helpful could be useful....
  21. Some good questions. Could MTP.loop() have a...

    Some good questions. Could MTP.loop() have a return value indicating status? It is always called and state of it could be tracked easily.

    Would be nice to know when Serial is really .available()....
  22. Yes, byte by byte compare after the fact - with...

    Yes, byte by byte compare after the fact - with human readable index# blocks to allow one to easily see where pieces went missing or where they came from as early failures were files holding data...
  23. Indeed, for 256MB media thousands of files...

    Indeed, for 256MB media thousands of files doesn't make sense.

    Numbers in p#1011 for Flash seem reasonable for usable space and number of files if it gives more timely responsive system.

    I...
  24. With existing LFS disk params: Edited...

    With existing LFS disk params:

    Edited MakeFiles here to make files on the 2Gb flash:

    Total 127 files of Size 7766016 Bytes
    Bytes Used: 17301504, Bytes Total:265289728

    That is 6 4KB files...
  25. That is a Huuge difference ... space (50% free...

    That is a Huuge difference ... space (50% free versus over 700% short!) utilization and speed!

    BTW: I bugged koromix for 1062 uploads timing out ( long erase times or MTP online ) - he upped the...
  26. Cool ... I'm in the yard - truck loaded twice...

    Cool ... I'm in the yard - truck loaded twice more so far ... and two new computers to unbox today and update and recover old ... and seems somebody else needs a new printer
  27. Replies
    7
    Views
    140

    Thanks @joepasquariello was hoping somebody with...

    Thanks @joepasquariello was hoping somebody with a clue might see the added messages ...
  28. Replies
    7
    Views
    140

    All sources are installed by TeensyDuino...

    All sources are installed by TeensyDuino installer in the chosen Arduino install folder.

    Going to that install folder this should be the source for the 1062 AnalogWrite:...
  29. So Current - beyond TD 1.56 - is : ...

    So Current - beyond TD 1.56 - is :
    github.com/PaulStoffregen/LittleFS.git : updates including SPI clock change and flash strings
    KurtE/MTP_Teensy/tree/cache_storage_records : cache speed up trial...
  30. Replies
    7
    Views
    140

    Pending knowing useful reply ... It seems this...

    Pending knowing useful reply ...

    It seems this question was once answered ... maybe Bing or g00gle can find it?

    bing.com/search?q=site:forum.pjrc.com%20pwm+synchronization << With proper key...
  31. Cool - nice when I provoke a wealth of info with...

    Cool - nice when I provoke a wealth of info with an off key note :)

    I was not in SPI mindset ... Still thinking of turbo QSPI speeds ... that was a good wakeup!
  32. Glad that is pinpointed - though odd and not...

    Glad that is pinpointed - though odd and not ideal.

    I wonder if Paul could put those two 2Gbit chips onto TWO PCB's? And on at least one not put pins on? Then you could cut custom wires to...
  33. Oppps - was editing old post without refresh :...

    Oppps - was editing old post without refresh : THIS WORKS



    //#define SPICONFIG_NAND SPISettings(55000000, MSBFIRST, SPI_MODE0)
    #define SPICONFIG_NAND SPISettings(45000000, MSBFIRST,...
  34. Mike/All: I put 4XSPI on PJRC_MM - with SPI.ino...

    Mike/All: I put 4XSPI on PJRC_MM - with SPI.ino and it came up:
    <EDIT>: Sanity check unzipped 1.8.16 and installed TD 1.56 to fresh folder - Get the SAME behavior on that 2Gbit SPI chip on...
  35. Sorry, code not included - those are with defines...

    Sorry, code not included - those are with defines outside the func() - cannot use PROGMEM within a func()

    New var char szSZ2 in one case conflicted with independent szSZ, The second szSZ...
  36. Some variations are causing errors like: ...

    Some variations are causing errors like:


    error: section attribute cannot be specified for local variables

    error: known_chips causes a section type conflict with SzSZ

    Odd not that they...
  37. Extended the last two strings beyond 4 characters...

    Extended the last two strings beyond 4 characters and both still sit sequentially in ITCM:


    0x200008ac - abcd
    0x200008c0 - efgh
    0x200008dc - ijkl
    0x200008c8 - efghIJKLMN
    0x200008d4 -...
  38. Good tool - Good work Mike! I don't even have...

    Good tool - Good work Mike! I don't even have the right 4X board in place I see :(

    Found PJRC board and SPI.ino is WORKING ... will T_MM test next.


    Here is edited 27206

    Did a quick EDIT...
  39. Using the Integrity SPI.INO - I cannot get...

    Using the Integrity SPI.INO - I cannot get TEST_SPI or TEST_SPI_NAND chips to show anything but "Error starting SPI_?????" for CS of 3,4,5,, or 6 with the PJRC 4X SPI breakout and T_4.1 ???

    Was...
  40. Replies
    2
    Views
    147

    Never heard of that before ... Can code be added...

    Never heard of that before ... Can code be added to the emulator?

    You could always use this code: {local install}\hardware\teensy\avr\cores\teensy4\debugprintf.c
    with edits to have a Teensy...
  41. Bummer the work didn't seem to have good payoff -...

    Bummer the work didn't seem to have good payoff - I only got a quick glance at some git updates and never enough to follow.

    Better luck with the next effort. Hopefully I'll get to look into it.
    ...
  42. ... Morning full of chores into afternoon - and...

    ... Morning full of chores into afternoon - and another ahead - woodstove not even started yet ...

    Will look to test on T_MM on return.

    Test: Current main T_MTP, T_MM or T_4.1 with PJRC 2GB...
  43. There is a 32KB processor cache on the PSRAM...

    There is a 32KB processor cache on the PSRAM dataspace as well, so speed for localized access can be fast.

    Also IIRC tested in Beta and there is no problem/limit or problem on word boundary...
  44. That's very odd Mike! So that is just T_4.1...

    That's very odd Mike!

    So that is just T_4.1 .vs. the PJRC MMod breakout for SPI access - not using any SFun carrier boards wired to that 4X SPI flash MemBoard?

    Wondering if there is some other...
  45. Verify has moved along and is updated:...

    Verify has moved along and is updated: Defragster/T4LockBeta/tree/main/MakeFiles

    Moved along but not working fully - it skips dirs as written so far

    > Does not yet verify file content
    > All...
  46. Question: How is Windows informed of new...

    Question: How is Windows informed of new files/folders to update the MTP view?
    >> MakeFiles for instance is busy making files when it starts as MTP, added delay for USB to be online, but it takes...
  47. USB Serial question with MTP: > current is...

    USB Serial question with MTP:
    > current is Seremu? Not standard USB Serial?
    > Serial can work - but still slow to start IIRC?
    > Wondering if DUAL_Serial could be used and that might allow a...
  48. Mike - sorry this should have pointed to: void...

    Mike - sorry this should have pointed to: void MakeDeepDirs( char* szRoot, int numDirs, int numFiles, uint32_t startSize, uint32_t growSize, int compoundGrow ) {

    LIKE: MakeDeepDirs( szStart[ 0...
  49. Indeed, reading bottom up and 15 minutes late as...

    Indeed, reading bottom up and 15 minutes late as it was ... - just wanted to confirm there wasn't something uncaught in MakeFiles.ino.

    Good you are set up to test that stuff as it will need it....
  50. Replies
    10
    Views
    428

    That was in response to this note: It should...

    That was in response to this note:


    It should safely work as needed withtou extra work that may save in the long run. If doing Analog readings from a 5V max that would be an issue. And while...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4