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

Search:

Type: Posts; User: KurtE

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    42

    What are you running on the RPI4? Raspian? ...

    What are you running on the RPI4? Raspian? Ubuntu? Version? 32 bit or 64 bit?

    So if the current download for 64 bit linux is: https://www.pjrc.com/teensy/td_152/TeensyduinoInstall.linux64
    I...
  2. Replies
    18
    Views
    6,282

    Yep I got that response on T4.1... void setup()...

    Yep I got that response on T4.1...
    void setup() {
    while (!Serial) ;
    pinMode(13, OUTPUT);
    Serial.begin(115200);
    delay(100);
    Serial.println(map(50, 1, 50, 50, 1), DEC);
    ...
  3. I could be wrong, but I don't think Teensyduino...

    I could be wrong, but I don't think Teensyduino installs SDFat library. It does install SD library.

    At least on my machine I only see the SD library installed in the Teensyduino area.
    I...
  4. Thanks @defragster Earlier I tried a few...

    Thanks @defragster

    Earlier I tried a few different approaches like that and many of them did not help much.

    Other approaches I have thought about, but have not tried include:

    Have each...
  5. Again sometimes it really helps to see a more...

    Again sometimes it really helps to see a more complete program to see if there are some obvious solutions.
    Like you mention that loop goes into blocking mode with delay...

    If it actually calls...
  6. @Mark_7 - Might work, but personally I would not...

    @Mark_7 - Might work, but personally I would not do it this way.

    void makeHigh(){
    GPIO1_DR |= b[26]; //GPIO_DR = 1 // DATA REGISTER
    //digitalWrite(20, HIGH);
    }
    You are directly...
  7. One thing that is making this harder to follow,...

    One thing that is making this harder to follow, as this logical thread has been winding through several threads, so unless you dig around you have no clue what the issues are.

    That is Nick would...
  8. Replies
    13
    Views
    164

    Did you select in the USB type either Dual or...

    Did you select in the USB type either Dual or Triple Serial?
  9. Sorry I am not sure what your setup is here as...

    Sorry I am not sure what your setup is here as you mention Visual Studio and Visual Micro... So are you building with Arduino or are you building within Visual Studio?
    Also which monitor program are...
  10. Hard to say if it is a bug or not? As I don't...

    Hard to say if it is a bug or not? As I don't see the rest of the program that is calling this. For example is SPI.begin() called?
    If not maybe the SPI subsystem is not enabled and causes it to...
  11. Replies
    783
    Views
    25,770

    @wwatson, did you solder it in to where the...

    @wwatson, did you solder it in to where the smaller pattern is on the back of the board? (around pads 31-32?)

    You might, retouch each solder joint with solder iron to make sure good contacts,...
  12. Replies
    3
    Views
    42

    Probably the first thing I would do, if I were...

    Probably the first thing I would do, if I were you, would be to update the udev rules.

    I would download the latest udev rules from: https://www.pjrc.com/teensy/td_download.html

    and then...
  13. Hi, and welcome! Might help if you maybe...

    Hi, and welcome!

    Might help if you maybe included the bitmap, so we can give it a try.

    Also might help if you included the Serial output, which may give some hints about what was read and...
  14. Replies
    783
    Views
    25,770

    Me too! - FYI - There are some on the forum who...

    Me too! - FYI - There are some on the forum who have been trying to collect stuff into an unofficial WIKI: https://github.com/TeensyUser/doc/wiki

    I have not looked in awhile to see if there is...
  15. Replies
    2
    Views
    54

    I have not tried their display, but you need to...

    I have not tried their display, but you need to tell their library to use Wire2 and not Wire.
    Looking at their header file I see:

    bool begin(uint8_t addressLeft = DEFAULT_ADDRESS,
    ...
  16. Replies
    783
    Views
    25,770

    Thanks @jwatte, Awhile ago, I started a thread...

    Thanks @jwatte,

    Awhile ago, I started a thread that talked about some of the different memory regions and some of the sections and the like:...
  17. Replies
    4
    Views
    126

    Note: my quick look at his PR to himself, looks...

    Note: my quick look at his PR to himself, looks like he may have the T4 and 4.1 pin defines reversed...
  18. Replies
    105
    Views
    21,685

    Quick update on the above... On seeing the...

    Quick update on the above... On seeing the errors from the temp directory and not the original source.

    I thought I would ask about this up on SublimeText forum and received a couple of...
  19. Replies
    4
    Views
    126

    This is a third party library and it looks like...

    This is a third party library and it looks like @pedvide has not yet finished adding the T4.1 support.
    But it looks like he knows about it and has done some work for it, as I see an open Pull...
  20. Replies
    783
    Views
    25,770

    This has been talked about in several threads,...

    This has been talked about in several threads, including this one which has a lot more information:
    https://forum.pjrc.com/threads/60506-Does-Teensy4-have-less-program-memory-than-Teens3-6

    As...
  21. What version of teensyduino is installed?

    What version of teensyduino is installed?
  22. Replies
    783
    Views
    25,770

    @Paul and others, actually have a simpler hack,...

    @Paul and others, actually have a simpler hack, that goes along the lines of the bypass of calling serialEvents... Maybe with very little overhead.

    Example just change: configure_external_ram,...
  23. Replies
    783
    Views
    25,770

    Again was curious about how the bottom pins are...

    Again was curious about how the bottom pins are used during startup to detect if these chip locations are occupied. So again not very exciting sketch:

    const short cCoxaMin1[] PROGMEM = {0, 1, 2,...
  24. Replies
    10
    Views
    144

    Obviously @Paul can answer this a lot better than...

    Obviously @Paul can answer this a lot better than I can.

    I don't believe the bootloader chip is available yet for T4.x - I believe he made progress on that during T4.1 beta time. Put with their...
  25. Thanks @defragster - I can imagine when using...

    Thanks @defragster - I can imagine when using serialEventX on T3.x, could be slightly slower, which I could reduce/eliminate, with trade offs
    That is could have the yield code go back to directly...
  26. Replies
    783
    Views
    25,770

    Yesterday evening had a little time, so I tried...

    Yesterday evening had a little time, so I tried soldering on one of my castellated adapter boards for T4.1...

    20235
    20236

    Nothing special - I was glad to see my measurements for where the two...
  27. I just pushed up a fix for the T4.x... Will...

    I just pushed up a fix for the T4.x... Will double verify it with the MAC, that it builds correctly there. Note: I changed some of the T4 processing to be more in line with T3.x code. Where instead...
  28. Still doing some testing. Run into issue with...

    Still doing some testing.

    Run into issue with T4 branch that Serial2-x appear to always think it is using user specific event handler.

    The T3.x branch appears to work properly... So...
  29. Note: Mostly talking to self ;) Thinking of...

    Note: Mostly talking to self ;)

    Thinking of doing a quick cleanup on T3.x/LC code I did yesterday, trying to decide which way is cleaner/faster.

    Currently I have code that populates an array...
  30. Replies
    111
    Views
    2,787

    There is hope: 2020-05-20 17:27ISC SAN FRANCISCO...

    There is hope: 2020-05-20 17:27ISC SAN FRANCISCO (USPS), Processed Through Facility -> Your item has been processed through our facility in ISC SAN FRANCISCO (USPS) at 5:27 pm on May 20...

    Should...
  31. Thanks @defragster - I just pushed up the changes...

    Thanks @defragster - I just pushed up the changes for the teensy3 branch. I did compile my test sketch for some of this on T3.5 and ran it, plus compiled for 3.2 and then compiled for LC and ran it....
  32. The test numbers are simply: void...

    The test numbers are simply:

    void TimeYieldCalls(const char *sz) {
    yield();
    Serial.print(sz); Serial.flush();
    elapsedMicros em = 0;
    for (uint32_t i = 0; i < 1000; i++) yield();
    ...
  33. Thanks, Again not sure how much it is worth...

    Thanks,

    Again not sure how much it is worth it, as I don't know anyone who cares about the yield and eventResponder overhead ... So again probably waste of time, but I thought I would give an...
  34. I added the changes to the branch:...

    I added the changes to the branch: https://github.com/KurtE/cores/tree/eventResponder_reduce_overhead
    That I have a PR on. I probably should have someone (including myself) build it on linux or mac...
  35. T4.x (maybe other) reduce serialEventX overhead on system (worth it?)

    While I was hacking (carefully crafting) changes to how yield worked as per the other thread,

    I came back to the code for T4.x where I would blindly enable yield to call off to the serialEventX...
  36. Here is a quick and dirty test to see if/when...

    Here is a quick and dirty test to see if/when things change:

    #include <SPI.h>
    #include <EventResponder.h>
    #define CS_PIN 10
    volatile bool event_happened = false;

    EventResponder event;...
  37. @mjs513 - Sounds like you are having some fun......

    @mjs513 - Sounds like you are having some fun... Hopefully will get back to this display soon!

    @sepp89117 - As we mentioned no idea, What version of Teensyduino? The latest released code has some...
  38. Replies
    111
    Views
    2,787

    If it has not already been done, maybe someone...

    If it has not already been done, maybe someone should port over the ILI9341 and GFX font handling code like we (@mjs513 mostly) did for RA7785...
  39. Replies
    783
    Views
    25,770

    For what it is worth, could be worse... I ordered...

    For what it is worth, could be worse... I ordered a display by BuyDisplay.com and turned out to the the last day they had the non DHL option ePacket? As of April 17th it was delivered to Air...
  40. I have done some rudimentary tests, but have not...

    I have done some rudimentary tests, but have not done anything yet with eventResponder.

    I will hack up one of the SPI test programs, to try out eventResponder using 3 different ways to be called....
  41. My guess it is something like, differences in...

    My guess it is something like, differences in some of the buffers, like USB. And of course you do have the other 256KB of DMAMEM available to you as well.
  42. @Frank - I am starting off with simplistic...

    @Frank - I am starting off with simplistic changes to see how far they get toward desired goal without requiring code to be changed to make use of it.
    I believe that makes it easier to get PR...
  43. EDIT of previous post, we could also maybe make...

    EDIT of previous post, we could also maybe make where (or if) yield is called.
    Example we could have an api like: enableYieldOn(uint8_t yield_flags);
    And have flags like: YIELD_ON_LOOP,...
  44. Frank, I guess I am missing something with your...

    Frank, I guess I am missing something with your "dumb" version, that is how is: _eventResponder_enabled
    This set?

    If you say that either a program sets it or an API sets it... Then now sure if...
  45. Warning I have not done much with this code, but:...

    Warning I have not done much with this code, but:
    (analogRead(A0) * 64) versus (analogRead(A0) << 6)

    My guess would be a wash, as the hardware can do multiplication and if not, hopefully the...
  46. Me too :D Earlier I tried to minimize the...

    Me too :D

    Earlier I tried to minimize the overhead as much as possible, but again a lot of this was done only for T4.x... My earlier rework of T3.X serial code to use one class instead of C...
  47. As you mentioned there are no linker files, it...

    As you mentioned there are no linker files, it just uses standard Arduino build. One of the main things that the build does when your USB type includes joystick, is the
    define JOYSTICK_INTERFACE...
  48. Yep sorry - The problem was that there are two...

    Yep sorry - The problem was that there are two threads going on with some of the information...
    And what concerned me a little was:

    if (eventResponderEnabled & 2) usb event
    if...
  49. Personally instead of adding the extra code to...

    Personally instead of adding the extra code to yield, one could probably simply mark processSerialEvents as inline...
    Then no extra calls.

    Also please do not put anything in, like: if...
  50. Replies
    24
    Views
    296

    Did anyone try the stuff I mentioned yesterday I...

    Did anyone try the stuff I mentioned yesterday I mentioned in the eventResponder thread:...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4