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

Search:

Type: Posts; User: luni

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    150

    ... or 8MByte PSRAM...

    ... or 8MByte PSRAM https://www.electrodragon.com/product-tag/psram/
  2. Replies
    13
    Views
    167

    Oh my... :o This was a silly bug on the Teensy...

    Oh my... :o
    This was a silly bug on the Teensy side. I was for some reason assuming that the transmitted 25kB are always synchronized with the data in the USB buffers. I fixed that and get the...
  3. Replies
    13
    Views
    167

    The app I sent in #1 is just sending that 25kB...

    The app I sent in #1 is just sending that 25kB string over and over. I can do a more simplistic console application if that helps? But let me check my code first, might be some bug on my side as well.
  4. Replies
    13
    Views
    167

    Yes, the upload button was just a quick hack, I...

    Yes, the upload button was just a quick hack, I can fix that later today. Strange that you get transmission issues. Runs perfectly here (as long as I don't add more than 200Ás delay). With or without...
  5. Replies
    13
    Views
    167

    So, I added a background worker which delays...

    So, I added a background worker which delays (1ms) each second. Not much but this already generates problems.



    IntervalTimer timer;

    void worker()
    {
    // delay(1);
    ...
  6. Replies
    13
    Views
    167

    @Paul: Tested with RX_NUM = 32. Speed went up...

    @Paul: Tested with RX_NUM = 32. Speed went up from 13.5 to 13.6 but that might as well be some other effect or just by chance.

    @Defragster: I cloned the core files from Pauls gitHub repo...
  7. Replies
    13
    Views
    167

    I can certainly try. However, my gut feeling is...

    I can certainly try. However, my gut feeling is that download speed is currently limited by the maximum 512 byte reported by Serial.available(). Here the receiving function. (Sent text has a '\0' for...
  8. Replies
    13
    Views
    167

    Win10 & T4 Serial Communication Tests

    I did a quick Win10 app to test the serial communication speed of a T4.0 and a T3.6 under somehow real life conditions. The app continuously downloads a block of 25kB to the Teensy. The teensy copies...
  9. Replies
    14
    Views
    371

    Thanks for the quick fix.

    Thanks for the quick fix.
  10. Replies
    14
    Views
    371

    I finally found time to try your lib. I tested...

    I finally found time to try your lib.
    I tested it with count rates up to 1 MHz and randomly switching direction. I also tried phase angles as small as 10░ and bounced signal transitions.
    So far...
  11. Replies
    9
    Views
    254

    I might be biased :-), but I prefer VisualTeensy...

    I might be biased :-), but I prefer VisualTeensy over VMicro... https://github.com/luni64/VisualTeensy
    Easy to use, no hidden build magic, good intellisense engine, supports Teensy.exe and tyTools...
  12. Thread: T4 Data in Flash

    by luni
    Replies
    8
    Views
    173

    Ok, I know whats wrong: I had a old version of...

    Ok, I know whats wrong: I had a old version of Teensy.exe. Updated to the current version now everything works as it should.

    Sorry for the noise....
  13. Thread: T4 Data in Flash

    by luni
    Replies
    8
    Views
    173

    @Kurt, tried your sketch, it kind of uploads when...

    @Kurt, tried your sketch, it kind of uploads when uploaded from the IDE (you see the process in the verbose log) but it then breaks (timeout?) and never reboots.

    Loading the same hex file...
  14. Thread: T4 Data in Flash

    by luni
    Replies
    8
    Views
    173

    Yes, because you don't use the array the compiler...

    Yes, because you don't use the array the compiler optimized it completely away...
    Here the linker output for your changed code:


    [LD] .vsteensy/build/TestProject.elf
    Memory region ...
  15. Thread: T4 Data in Flash

    by luni
    Replies
    8
    Views
    173

    T4 Data in Flash

    I'm confused about how to place data in the Flash.

    What I understood so far:


    const char buffer[500*1024] = {0};

    void setup()
    {
    Serial1.println(buffer);
  16. Just wondering why that would be called? Where do...

    Just wondering why that would be called? Where do you assign that function to the actual IRQ_FTM2 called by the NVIC?





    Tekceleo* tekceleo;

    void setup()
    {
  17. BTW: Maybe I didn't spot it but where is your...

    BTW: Maybe I didn't spot it but where is your IRQ_FTM2 handler?
  18. Would be easier to help if you could generate a...

    Would be easier to help if you could generate a minimal example which shows the error and can be compiled without hardware / libraries.

    Generally:
    I'd try to avoid hardware access in a...
  19. Replies
    87
    Views
    9,992

    https://www.az-delivery.de/products/saleae-logic-a...

    https://www.az-delivery.de/products/saleae-logic-analyzer?_pos=2&_sid=01681d4d4&_ss=r
  20. Replies
    87
    Views
    9,992

    I tested your code and don't see a problem with...

    I tested your code and don't see a problem with acceleration.

    I changed the following for my tests:



    void setup()
    {
    while(!Serial); ...
  21. Replies
    87
    Views
    9,992

    For an acceleration from 0 to 48kHz in 4s you...

    For an acceleration from 0 to 48kHz in 4s you need a setting of 48'000/4 = 12'000 stp/s^2. TeensyStep allows values from 1 to 500'000 so this should be no problem.

    This is very unlikely. Can you...
  22. You can also give VisualTeensy a try....

    You can also give VisualTeensy a try. https://github.com/luni64/VisualTeensy
    This uses VSCode which works IMHO better than VisualStudio since it uses gcc for the intellisense analysis. Thus it...
  23. I don't see your static variable "instance"...

    I don't see your static variable "instance" defined in your cpp file. If it isn't defined in some other place you need to add


    Tekceleo* Tekceleo::instance = nullptr; to your cpp file.

    See...
  24. Replies
    6
    Views
    546

    Due to recent interest and for easier...

    Due to recent interest and for easier installation I pushed TeensySharp (upload firmware from dotNet applications, find Teensies on the bus, get com port, get notifications about added/removed...
  25. Replies
    16
    Views
    1,641

    I just did a quick experiment and changed the...

    I just did a quick experiment and changed the linker script for the T-LC to use the '_teensy_model_identifier = 0x20' as FILL byte (instead of the usual 0xFF)


    ...
    SECTIONS
    {
    .text : {
    ....
  26. Replies
    14
    Views
    468

    Just for my curiosity. What would be the...

    Just for my curiosity. What would be the advantage of connecting the ESP to those UART interface? Why not simply connecting it to the standard Teensy USB port and do the programming over that? (AFAIK...
  27. That would be really great for debugging apps...

    That would be really great for debugging apps which have their normal communication channel (commands, data etc) to the PC via Serial. For those apps I usually connect a a USB/Serial cable to one of...
  28. Replies
    16
    Views
    1,641

    @ Gremlin, I'm aware of that and fixed it...

    @ Gremlin, I'm aware of that and fixed it already for another project. I'll port it to TeensySharp in the next release.
    @Paul: It would be perfect to have a byte at a fixed memory location to...
  29. Replies
    18
    Views
    752

    Looks good, thanks a lot for sharing. I'll give...

    Looks good, thanks a lot for sharing. I'll give it a try when the chips arrived.
  30. Replies
    18
    Views
    752

    Any chance that you share your code to access the...

    Any chance that you share your code to access the IPS6404? Just ordered a bunch of them for experimenting, so some working examples to start from might be useful.
  31. Replies
    14
    Views
    371

    That's very useful indeed. I will certainly test...

    That's very useful indeed. I will certainly test it with high resolution encoders as soon as I find some time.
    If you want to do some performance testing I have a Teensy quadrature tester on...
  32. Replies
    16
    Views
    1,641

    TeensySharp https://github.com/luni64/TeensySharp...

    TeensySharp https://github.com/luni64/TeensySharp is a c# library which you can use to upload firmware to T3.1 - T4.0. You can also use it to identify connected Teensies, get notified on plugging in...
  33. Great explanation. There is a small error in it...

    Great explanation. There is a small error in it which is worth correcting:


    It is the other way round. Signed will be promoted to unsigned which can be quite confusing.



    int a = 7;
    int...
  34. Replies
    4
    Views
    107

    That is correct. i++ is a post increment...

    That is correct. i++ is a post increment operator. I.e. it increments after the assignment. If you use ++i it should work.
    Anyway, you probably meant i++, instead of the unusual i = i++; ?

    Edit:...
  35. AFAIK you need two cycles to read/write a...

    AFAIK you need two cycles to read/write a register. That makes 4 cycles per period which gives you 1/4 F_CPU. (plus the time for the loop)
  36. Just measured the speed of this snippet with an...

    Just measured the speed of this snippet with an LA on pin 11 and get some 250ns on a T4@600MHz



    digitalWriteFast(11, HIGH);

    volatile uint16_t value =
    digitalReadFast(2) << 0...
  37. I wonder if the bit shuffling will be faster at...

    I wonder if the bit shuffling will be faster at the end as reading the pins sequentially. However, you should use digitalReadFast instead of digitalRead and it might be faster to OR the results...
  38. Replies
    3
    Views
    131

    Answered on GitHub...

    Answered on GitHub...
  39. Replies
    5
    Views
    155

    The TeensyLC has an ARM controller not an AVR....

    The TeensyLC has an ARM controller not an AVR. So, accessing AVR registers (PORTD ...) doesn't make much sense. However, for some (portability?) reason there is emulation code in avr_emulation.h...
  40. I'd use a standard 74HC575 for that. It only...

    I'd use a standard 74HC575 for that. It only requires 3 wires for 8 outputs.
    Here some information. https://learn.adafruit.com/adafruit-arduino-lesson-4-eight-leds/the-74hc595-shift-register
  41. Replies
    4
    Views
    278

    I'm afraid you won't get much faster than this...

    I'm afraid you won't get much faster than this and even that generates a significant load on the T4. Here https://forum.pjrc.com/threads/57959-Teensy-4-IntervalTimer-Max-Speed some information on the...
  42. Replies
    16
    Views
    793

    This of course only works if the Teensy has the...

    This of course only works if the Teensy has the serial interface activated. For the HID modes you need to send some magic bytes to the feature report of one of the interfaces. If you are interested...
  43. Here a link to about 5000 rs485...

    Here a link to about 5000 rs485 receivers/drivers. https://octopart.com/electronic-parts/integrated-circuits-ics/interface-ics/rs-232-rs-422-rs-485-interface-ics

    The table is very well organized,...
  44. RS485 should be able to do this. E.g. the...

    RS485 should be able to do this. E.g. the SN65HVD82 http://www.ti.com/lit/ds/symlink/sn65hvd82.pdf can drive up to 256 receivers. Usage is really simple if the nodes only need to listen.
  45. Replies
    13
    Views
    7,098

    Here a quick sketch showing how to extract this...

    Here a quick sketch showing how to extract this information. One probably can find a more intelligent way but this is doing what you need.


    #include "Arduino.h"

    const char *portName(volatile...
  46. Replies
    1
    Views
    94

    Ok, seems like the clock for GPT2 is not enabled...

    Ok, seems like the clock for GPT2 is not enabled at startup. Enabling it prior to usage of the timer fixed the issue.
  47. Replies
    1
    Views
    94

    Timer GPT question

    Is the timer GPT2 used for some internal tasks? Disabling it by setting GPT2_CR to zero crashes the system. GPT1 works as expected.


    void setup()
    {
    pinMode(LED_BUILTIN, OUTPUT);
    GPT1_CR =...
  48. Replies
    2
    Views
    83

    This is part of the core libraries which you can...

    This is part of the core libraries which you can find here (win10) "Arduino/hardware/teensy/avr/cores/teensy3" or "../teensy4" for the T4. Nothing to install,just use it.
    (Github:...
  49. Replies
    5
    Views
    226

    I think the root cause for that is that...

    I think the root cause for that is that reading/writing of the peripheral registers (not tightly coupled) takes rather long and is not primarily related to F_CPU but to the speed of peripheral bus. ...
  50. Replies
    5
    Views
    226

    Thanks for the measurments defragster....

    Thanks for the measurments defragster. Unfortuately it does not look very good. ~40% load for having 4 interval timer toggling pins at 100kHz does somehow not fit to the otherwise very fast...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4