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

Search:

Type: Posts; User: Garug

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    94
    Views
    8,796

    On obvious serious errors like this, it should...

    On obvious serious errors like this, it should not warn but refuse to compile. The warnings I find not useful at all, super difficult to read with the long paths included.
  2. Replies
    94
    Views
    8,796

    Well maybe it would be time to have an option on...

    Well maybe it would be time to have an option on compiler to validate them...

    one would not need to run that every time, but when problems if would be super useful and time saving tool.

    I...
  3. Replies
    94
    Views
    8,796

    With LabView I can easily make what ever...

    With LabView I can easily make what ever plotting, the problem just is I only have that on Windows and I am done with Windows unless I absolutely need to go there (and when I do it always takes hours...
  4. Replies
    94
    Views
    8,796

    "that is why it's called undefined behavior " yes...

    "that is why it's called undefined behavior " yes I guess so :)

    but wonder, for the compiler it should be easy to see something gets written outside the limits. Why does it let to compile this?
  5. Replies
    94
    Views
    8,796

    " Best to have the sketch limit what is sent, or...

    " Best to have the sketch limit what is sent, or problems can be expected."

    The thing is, I need to see all samples to see they are correctly sampled and no jitter. I really hope the serial...
  6. Replies
    94
    Views
    8,796

    After some more investigation this morning with...

    After some more investigation this morning with fresh eyes, found the problem, and it is on my code. The strange thing though is sometimes this fails, and with the same problem the millis() may work...
  7. Replies
    94
    Views
    8,796

    This problem feels it is not my code or even...

    This problem feels it is not my code or even libraries, but something under them. The code needs i2c IMU to run. Also as said the same code edited again from older version works fine. So it is very...
  8. Replies
    94
    Views
    8,796

    Thanks, I uninstalled Java and reinstalled, and...

    Thanks, I uninstalled Java and reinstalled, and now the hangs at least when accessing file seems to be gone.

    But any idea how micros() could break like that? I do not see how that could be Java...
  9. Replies
    94
    Views
    8,796

    Is there a version for macOS Big Sur 11.4 ? I...

    Is there a version for macOS Big Sur 11.4 ?

    I am currently using long time a go installed 1.53 and having some hangs on UI, like when accessing files. also now some weird issues with micros() a...
  10. Replies
    10
    Views
    2,186

    Yes, the usb_desc_copy.c was a bad idea, I really...

    Yes, the usb_desc_copy.c was a bad idea, I really could not imagine compiler would use it just because it is on that directory and prefer it over usb_desc.c that I was editing. Anyway, now the...
  11. Replies
    19
    Views
    3,309

    What is the current status on this, does Teensy...

    What is the current status on this, does Teensy 4.0 have true HW support to upload FW over HW serial?
  12. Replies
    206
    Views
    245,722

    I do not understand. That is very strange, but...

    I do not understand. That is very strange, but seems to be the case. I removed the file form the directory, and still compiles just fine.

    But after restarting Arduino environment does not compile...
  13. Replies
    206
    Views
    245,722

    Here is a video the usb_desc.c has been renamed...

    Here is a video the usb_desc.c has been renamed usb_desc_d.c there is no usb_desc.c

    The joystick name has been edited on the usb_desc.h that is on the same directory, so the directory should be...
  14. Replies
    10
    Views
    2,186

    My main problem is that edits or deletion of...

    My main problem is that edits or deletion of usb_desc.c are not effective. I spend couple of hours reading forums and trying things before realising I can delete the file and it compiles just the...
  15. Replies
    206
    Views
    245,722

    "If building for Teensy 4.x you use the files in...

    "If building for Teensy 4.x you use the files in cores\teensy4"

    The problem is exactly that I can delete usb_desc.c from the teensy4 directory and it builds (and joystick works). The usb_desc.h on...
  16. Replies
    206
    Views
    245,722

    Where is the correct usb_desc.c to be modified...

    Where is the correct usb_desc.c to be modified located??

    Teensy 4.0 Teensyuino 1.53, I can delete it from Teensy4 and Teensy3 folders and makes no difference, nor the changes I do on them.
  17. Replies
    10
    Views
    2,186

    I do not get it, I have changed all usb_desc.c to...

    I do not get it, I have changed all usb_desc.c to Uusb_desc.c and it just compiles and works as before, where are the USB Joystick definitions??
  18. Replies
    10
    Views
    2,186

    Was there any solution to this? how do I reduce...

    Was there any solution to this? how do I reduce the number of buttons to 10?

    Some practical and working example how to change something simple like this would be very useful.

    what I edit in...
  19. Replies
    21
    Views
    1,001

    There was stubit mistake I had, forgot the...

    There was stubit mistake I had, forgot the adc->adc0->startTimer(18000); //frequency in Hz is for both separatelly and one of them was at 3000 so it was limiting also the other one.

    This is...
  20. Replies
    21
    Views
    1,001

    Now, but in practise how would that be different...

    Now, but in practise how would that be different by doing it with interrupt timer?

    Could the teensythreading use the CPU time for something else while the analogueRead() waits the conversion to...
  21. Replies
    21
    Views
    1,001

    Currently I get around 10k speeds when the MCU is...

    Currently I get around 10k speeds when the MCU is not busy doing anything else. the problem is, when there is movement on the screen, there is a lot of pixels to calculate and the analogue read...
  22. Replies
    21
    Views
    1,001

    The startSynchronizedSingleRead() sounds...

    The startSynchronizedSingleRead() sounds interesting but should get that working with DMA. Maybe that is what is happening with the above /* uses startSingleRead() example, should just find how to...
  23. Replies
    21
    Views
    1,001

    I am not sure if I did read long enough but looks...

    I am not sure if I did read long enough but looks like that uses analogueRead() that waits for the reading to be ready.

    The reason I want to use DMA is to free processor resources and keep reading...
  24. Replies
    21
    Views
    1,001

    It is totally ok to read Joystick X and Y for 6...

    It is totally ok to read Joystick X and Y for 6 ms and then Potentiometer 1 and 2 for 6 seconds and continue like that. But I would like to have as many good samples during the 6 ms as possible so...
  25. Replies
    21
    Views
    1,001

    This works now pretty nicely, but update rates...

    This works now pretty nicely, but update rates are much lower than above.

    Value up to 10 000 Hz can be put to startTimer(4000); //frequency in Hz but it provides no better update-rates than 4000...
  26. Replies
    21
    Views
    1,001

    I got this working surprisingly well with quick...

    I got this working surprisingly well with quick and thirty method, modifying it from the exambles. There is currently at least the problem that

    pabdma->userData(average_value);

    does not get...
  27. Replies
    21
    Views
    1,001

    Ok, so the problem was the old libraries on...

    Ok, so the problem was the old libraries on Teensyuino 1.53. I deleted the /ADC contents and copied the Ginthub contents there and now get it compiling and this seems to work



    #include <ADC.h>...
  28. Replies
    21
    Views
    1,001

    The DMA examples compile but never enter setup,...

    The DMA examples compile but never enter setup, or at least do not print Serial.print("START"); that is right after the while (!Serial && millis() < 5000) ; when cleaning them up of all the #if...
  29. Replies
    21
    Views
    1,001

    But what exactly am I looking here ...

    But what exactly am I looking here

    file:///Users/.../Desktop/Teensyduino%201.53.app/Contents/Java/hardware/teensy/avr/libraries/ADC/index.html

    or here
    ...
  30. Replies
    21
    Views
    1,001

    Satus of Teensy 4.0 ADC?

    What is the status of Teensy 4.0 ADC support, using Teensyuino1.53 (or other version if better)

    I find the information very scattered, what is supported and not for Teensy 4.0 and how to use it...
  31. Replies
    30
    Views
    8,951

    I was paying with DMA for ADC, did not get it...

    I was paying with DMA for ADC, did not get it working (adc_timer_dma.ino), but as result one of the potentiometers have now clear dead area, couple of degrees. Maybe possibele that the Potentiometer...
  32. Replies
    2
    Views
    610

    What should I do to get the adc_timer_dma working...

    What should I do to get the adc_timer_dma working with Teensy 4.0?

    It is very confusing the same example is for
    On Teensy 3.x this uses the PDB timer.

    On Teensy 4, this uses one or...
  33. Replies
    42
    Views
    1,342

    Thanks, very useful info. Now that they are...

    Thanks, very useful info.

    Now that they are defined static const, accessing them directly via function works perfectly.
  34. Replies
    42
    Views
    1,342

    I did make it so that the 32 bits are read on one...

    I did make it so that the 32 bits are read on one access to function, so reducing the function reads 32x. got the arrow to draw nicely, but still was problems with fonts that can be positioned at 1...
  35. Replies
    42
    Views
    1,342

    Probably not DMA related but... I got finally...

    Probably not DMA related but...

    I got finally ADC reading fast and well filtered and screen updates solid 140+ FPS for moving and rotating arrow like below and it is super smooth.



    uint32_t...
  36. Replies
    42
    Views
    1,342

    Jeah the pointers and stuff, I really try to stay...

    Jeah the pointers and stuff, I really try to stay a way form them, but it gets more and more difficult. For me it seems as a concept to use if asking for memory leaks etc stuff and like to trouble...
  37. Replies
    42
    Views
    1,342

    The problem I have is something like this "The...

    The problem I have is something like this

    "The nullptr keyword can be used anywhere a handle, native pointer, or function argument can be used."

    Just does not compute for me.

    So in tis...
  38. Replies
    42
    Views
    1,342

    How is this event handler stuff working it seems...

    How is this event handler stuff working it seems this works as well, so what was the 'EventResponderRef eventResponder' for?



    //void callback( EventResponderRef eventResponder ){
    void...
  39. Replies
    42
    Views
    1,342

    Note: SPI.transfer((void *)txBuffer, nullptr,...

    Note: SPI.transfer((void *)txBuffer, nullptr, pixCount, callbackHandler); probably should have pixCount +1.
  40. Replies
    29
    Views
    11,275

    A story of my first SPI DMA trials, a stupid...

    A story of my first SPI DMA trials, a stupid error that cost me 15 hours, and at the end working example code using SPI DMA https://forum.pjrc.com/threads/67247-Teensy-4-0-DMA-SPI
  41. Replies
    42
    Views
    1,342

    Here is a tested and working code for the screen...

    Here is a tested and working code for the screen update using SPI DMA using Teensy 4.0 and for Sharp 400x240 memory display, connection in here...
  42. Replies
    42
    Views
    1,342

    I tried this uint8_t txBuffer2[10000];...

    I tried this


    uint8_t txBuffer2[10000];
    uint8_t txBuffer[12512] __attribute__((aligned(32)));
    uint8_t DMAMEM screenData[50][240];//50 holds 8 x 50 = 400 B/W pixels
    uint8_t ...
  43. Replies
    42
    Views
    1,342

    I think that did the recompilation trick as now...

    I think that did the recompilation trick as now get "Compiling library "SPI"" but it did not help.

    I still need to do this to get it working correctly


    uint8_t txBuffer[12512]...
  44. Replies
    42
    Views
    1,342

    "It says that no source files changed that would...

    "It says that no source files changed that would require spi to recompile. "

    Yes, but the question is, does it do that analysis correctly. Is there a simple way for force recompile all.
  45. Replies
    42
    Views
    1,342

    I noted Using previously compiled file:...

    I noted

    Using previously compiled file: /var/folders/j0/czwf_k9507340824y6129t3h0000gp/T/arduino_build_438271/libraries/SPI/SPI.cpp.o

    Would that be holding also the DMA related memory...
  46. Replies
    42
    Views
    1,342

    Thanks, I did not notice the pixCount = 1 was...

    Thanks, I did not notice the pixCount = 1 was inside the if condition when created the return.

    Just tested, it seems that fixed the random noice I was getting after this update, and also it...
  47. Replies
    42
    Views
    1,342

    Here is the complete involved subroutines sending...

    Here is the complete involved subroutines sending the picture.

    The drawScreen() : picture is stored in screenData[x][y] first it is compared to screenDataOld[x][y] to see if there was any changes...
  48. Replies
    42
    Views
    1,342

    This is the current sending routine. first the...

    This is the current sending routine. first the txBuffer is build and immediatelly after sent. So are you saying there should be a delay before sending so that the txBuffer is completelly written to...
  49. Replies
    42
    Views
    1,342

    I did get it working undefining memory alocations...

    I did get it working undefining memory alocations for other globals than these

    uint8_t DMAMEM screenData[50][240];//50 holds 8 x 50 = 400 B/W pixels
    uint8_t DMAMEM screenDataOld[50][240];...
  50. Replies
    42
    Views
    1,342

    But how do I make the SPI DMA memory stuff then...

    But how do I make the SPI DMA memory stuff then act nicely? Now it is completely unmanageable and un predictable. Works by luck randomly experimenting allocating global variables using FASTRUN,...
Results 1 to 50 of 159
Page 1 of 4 1 2 3 4