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

Search:

Type: Posts; User: Borja

Search: Search took 0.00 seconds.

  1. Replies
    19
    Views
    1,310

    Thanks, now it works! I am going to use your...

    Thanks, now it works!

    I am going to use your example as a template to create a project with my code. It is very likely that my c++ library doesn't fit in T3.6 memory and I have to await T4.1, let...
  2. Replies
    19
    Views
    1,310

    Hi again, I installed arm toolchain on Ubuntu...

    Hi again,

    I installed arm toolchain on Ubuntu last weekend using these two commands: sudo apt-get update –y and sudo apt-get install -y gcc-arm-none-eabi. This time, when I try to configure the...
  3. Replies
    19
    Views
    1,310

    Thank you for the responses, I find them very...

    Thank you for the responses, I find them very useful, but I need some time to read everything. I was only using Visual Studio to compile x86 versions on W10 and Qtcreator for x86 and ARM A (Rpi with...
  4. Replies
    19
    Views
    1,310

    When I run Cmake using the command cmake .....

    When I run Cmake using the command cmake .. -DCMAKE_TOOLCHAIN_FILE=Teensy.cmake (files previously attached in this thread), no error occurrs, but Cmake assigns as compiler Visual Studio instead of...
  5. Replies
    19
    Views
    1,310

    Hi, right now I am using T3.6, but I've bought...

    Hi,

    right now I am using T3.6, but I've bought T4.1 last week and I'd like to try on both.

    Thanks
  6. Replies
    19
    Views
    1,310

    Hi again, one year later I am resuming the...

    Hi again,

    one year later I am resuming the task of compiling and running parts of the code of my thesis on ARM-M platforms. I've downloaded the toolchain (GNU Arm Embedded Toolchain v2020) from...
  7. Replies
    19
    Views
    1,310

    Hello, Thank you for the answers. I think...

    Hello,

    Thank you for the answers.

    I think there was a misunderstanding when I wrote toolchain. What I meant was “cmake toolchain” in the same way I used it for pc or rpi.

    Anyway I’ll take a...
  8. Replies
    19
    Views
    1,310

    Toolchain for teensy 3.6

    Good morning,

    for my PhD I’ve written a c++ library in order to simulate electric circuits. The goal is to use this library on arm platforms too, such as RPi (yet accomplished) but not yet for...
  9. Replies
    3
    Views
    518

    Thank for you the reply. I've just changed...

    Thank for you the reply.

    I've just changed MatrixXd for MatrixXf (doubles for floats) and I could run the program with a size of 150 instead of "only" 100. Also I've added some prints after the...
  10. Replies
    3
    Views
    518

    Problems with eigen library on Teensy 3.6

    Good morning,

    I am carrying out a benchmark of a LU factorization using the Arduino library Eigen (https://github.com/bolderflight/Eigen). For random matrices up to 100x100 the Teensy runs and...
  11. Replies
    3
    Views
    757

    errors with micros() function on Teensy 3.1

    Hi,

    I am using the micros function to count the duration of a program cycle.

    I send via USB the value and I receive 19,897 on the Mac but on the TFT the value is very different... more than...
  12. Replies
    21
    Views
    2,504

    I simply wrote tft.fillRect(0, 0, 1000, 1000,...

    I simply wrote tft.fillRect(0, 0, 1000, 1000, ILI9341_WHITE); to clear all the display
  13. Replies
    21
    Views
    2,504

    Hi, I tried to draw a white rectangle to...

    Hi,

    I tried to draw a white rectangle to "cover" the text but I can see the blink, how can I draw faster?
  14. Replies
    21
    Views
    2,504

    After a minute I can't see anything because the...

    After a minute I can't see anything because the letters are overwriting without deleting the old values....

    In my first code I am sending the data to the screen each 40ms but the time is not...
  15. Replies
    21
    Views
    2,504

    An easy new question. I read two analog values...

    An easy new question. I read two analog values each 20ms and I want to display these two values (0-1023) but after one minute I have a chaos on the screen.
    How can I update these values without...
  16. Replies
    21
    Views
    2,504

    Hi, finally I restarted all and the display...

    Hi,

    finally I restarted all and the display started to work!!!

    Only one more question... If I want to change the text between horizontal/vertical, what have I to do?

    Thanks for the help.

    ...
  17. Replies
    21
    Views
    2,504

    I rewire the display the same as in the link and...

    I rewire the display the same as in the link and I have the same problem.... I couldn't see anything....

    May the screen be damaged? How can I check if the screen is ok?
  18. Replies
    21
    Views
    2,504

    Hi, i changed the defines #define PIN_SDI 11...

    Hi,

    i changed the defines
    #define PIN_SDI 11
    #define PIN_SDO 12

    and the wiring, after these changes the whole code is running but on the display I can't see anything.

    I corrected an error...
  19. Replies
    21
    Views
    2,504

    Hi, according with the info I can use pins 13...

    Hi,

    according with the info I can use pins 13 or 14 as SCK pin. I am using pin13 for other task however I changed pin 13-14 for the SCK and it doesn't work yet.

    I don't know what is going wrong...
  20. Replies
    21
    Views
    2,504

    Problems with ILI9341 on Teensy 3.1

    Good evening,

    I am trying to use the ILI9341 to display some data during the execution of my code, but my display shows nothing and the function "loop" is not executed.

    First of all I configure...
  21. Replies
    1
    Views
    692

    Software ADC on Teensy 3.1

    Hi everybody,

    I'm trying to use the ADC0 triggering by software. I read the data sheet and I understood if I write in the SC1A register which pin want to use, the conversion starts. Is that...
  22. Thank you for the responses. I try to update...

    Thank you for the responses.

    I try to update my code when I have a little free time.

    By the way writing 0x03 in PIT_TCTRL1 I am activating Interrupts for PIT1.
  23. Thanks for the response Len. I read that...

    Thanks for the response Len.

    I read that section and the PITimer works with the bus clock and the default frequency is 36 MHz, so I can divide by 2 the numbers of the timers and the pulses will...
  24. Problems with the duration of PITimer1 pulses on Teensy 3.1

    Good afternoon,

    I wrote a simple code with 3 pwm that generates a 0V signal during 55,55us (PWM1) after that 1,5us high and 54us low (PWM2) and finally 2us high and 53,5us low (PWM3) and these...
  25. Replies
    3
    Views
    1,395

    Hi, thanks for your answer. My problem is...

    Hi,

    thanks for your answer.

    My problem is not with the timer because the timer1 counts with no problem. My problem is changing the state of these 4 pins of portC (0,1,2,5).

    I use...
  26. Replies
    3
    Views
    1,395

    GPIO pins on Teensy 3.1

    Hi,

    i am typing a code to make 4 pwm output using the Timer PIT1. I load a value on the PIT and I wait until the overflow to change the state of the pins. I am checking with the oscilloscope if...
  27. Replies
    13
    Views
    3,326

    Hi everybody, I was writing this weekend a...

    Hi everybody,

    I was writing this weekend a very easy code to clear all the pins of PORTB and after 5us set all the pins of portB and after 5us again clear the portB.

    Teensy sets the pins after...
  28. Replies
    13
    Views
    3,326

    Hi Paul, I was reading several chapters of the...

    Hi Paul,

    I was reading several chapters of the data sheet and I found a register that can be useful for me:

    49.2.1 Port Data Output Register (GPIOx_PDOR) Page 1335

    This register configures...
  29. Replies
    13
    Views
    3,326

    Hi, Today I couldn't do anything but I have...

    Hi,

    Today I couldn't do anything but I have time this weekend and I try to compile a easy code with a variable pwm and I'm pretty sure that I'll find more problems and doubts.

    Just one more...
  30. Replies
    13
    Views
    3,326

    Hi Paul, I read your post and I still have a...

    Hi Paul,

    I read your post and I still have a couples of doubts:



    I didn't know that the Analogwrite is double buffered and I guess that is an very useful if there is only a mosfet but with 6...
  31. Replies
    13
    Views
    3,326

    Hi, I don't know if I understood your...

    Hi,

    I don't know if I understood your question. The values of my last post are common for all six mosfets but not at the same time. At every step three mosfets are completely off and the other...
  32. Replies
    13
    Views
    3,326

    Hi, no problem I can await your response when...

    Hi,

    no problem I can await your response when you are back home.

    I tried to draw in Excel a picture with this quasi-senoidal wave only at 100Hz and 18 steps (nearly 139 us each step). To...
  33. Replies
    13
    Views
    3,326

    Good evening, I've just used those functions...

    Good evening,

    I've just used those functions with constants pwm for example to blink a led. I choose a frequency and a duty and the teensy does the rest.

    However my problem is to generate a...
  34. Replies
    13
    Views
    3,326

    Pwm on teensy 3.1

    Good evening,

    I bought a teensy two years ago but so far I've used not so long. A colleague and I were working with microchip pic16 to generate a quasi-sinusoidal wave and control 3-phase motors...
Results 1 to 34 of 34