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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.11 seconds; generated 6 minute(s) ago.

  1. Looks like Arduino is including stdbool.h, which...

    Looks like Arduino is including stdbool.h, which defines this C++ stuff for C language.

    I've committed a fix so it will work on Teensy.
    ...
  2. A very simple test you can with only a voltmeter...

    A very simple test you can with only a voltmeter is to run the LED blink example (File > Examples > 01.Basics > Blink) and edit the pin number. Then watch if the voltage on the blue wire toggles...
  3. Replies
    7
    Views
    142

    Ok, I've put this on my list of bugs to fix. ...

    Ok, I've put this on my list of bugs to fix.

    But since the errors are so small and only happen at certain slower CPU speeds, I'm going to work on this later.
  4. @chrissteffen, @HallMark - Please give 1.49-beta3...

    @chrissteffen, @HallMark - Please give 1.49-beta3 a try and let me know if it fully solves the problem you've experienced?
  5. Replies
    44
    Views
    1,086

    Ok, done. ...

    Ok, done.

    https://github.com/PaulStoffregen/Wire/commit/5f58cb703ba025076a1775321ae8d2e74063329f
  6. Replies
    44
    Views
    1,086

    Before I just revert to the old code, could you...

    Before I just revert to the old code, could you give this a try?



    #define PINCONFIG (IOMUXC_PAD_ODE | IOMUXC_PAD_SRE | IOMUXC_PAD_DSE(5) | IOMUXC_PAD_SPEED(1) | IOMUXC_PAD_PKE | IOMUXC_PAD_PUE...
  7. Replies
    4
    Views
    54

    Fixed. ...

    Fixed.

    https://github.com/PaulStoffregen/cores/commit/6616cd9478e5bc54259f29cfc93884ba7e899cc9

    Also packaged up 1.49-beta3 with the many other fixes from this week.
    ...
  8. Replies
    44
    Views
    1,086

    I committed a hybrid of the pin config change. I...

    I committed a hybrid of the pin config change. I want to preserve the weak pullups, like on Teensy 2.0 and most Arduino boards.
    ...
  9. Also do a check (with power off) with your...

    Also do a check (with power off) with your multimeter in ohms mode to check the white/blue wire really is ground. Some CAT5 cables have the colors swapped.
  10. Replies
    44
    Views
    1,086

    Is this enough? ...

    Is this enough?

    https://github.com/PaulStoffregen/Wire/commit/6c9fec1699297e0b8b71609b42a94b4a53a2043d
  11. That part looks ok.

    That part looks ok.
  12. Please share photos of how you connected...

    Please share photos of how you connected everything. We can help much better when we can see your wiring.
  13. I'm committed a fix on github. ...

    I'm committed a fix on github.

    https://github.com/PaulStoffregen/cores/commit/49b46c208734b6426ad5ed2b8cc6874ecd59ce2e

    Why simply writing the correct value to CCM_CBCDR doesn't work at 24 MHz,...
  14. Looks like we're somehow not managing to switch...

    Looks like we're somehow not managing to switch back to the ARM PLL. Why, I have no idea (yet)....
  15. Could you point me to that code, or post it here?...

    Could you point me to that code, or post it here?

    I'm trying this and getting 24 MHz. I must be missing something...



    Serial.println("clock test");
    uint32_t pll = CCM_ANALOG_PLL_ARM; ...
  16. Back then we were only really using 600 MHz...

    Back then we were only really using 600 MHz speed, as I recall.

    I'm digging deeper into this issue. Starting to look like we might not actually be running at 24 MHz. Might really be 30 MHz. ...
  17. Sure, just built it without the DC power jack and...

    Sure, just built it without the DC power jack and 7805 voltage regulator. And of course do *not* cut the VUSB-VIN pads apart on your Teensy (or solder them back together if already cut apart) so...
  18. Replies
    4
    Views
    39

    You can also use them with attachInterrupt(),...

    You can also use them with attachInterrupt(), because it's supported on all digital pins.
  19. @defragster - Do you remember where this micros()...

    @defragster - Do you remember where this micros() code originated? I believe it was contributed near the end of the T4 beta (while my attention was focused on a ton of hardware & manufacturing...
  20. Replies
    4
    Views
    54

    Teensyduino uses the AVR toolchain within...

    Teensyduino uses the AVR toolchain within Arduino. It's located in {Arduino}/hardware/tools/avr. No system-provided toolchain in /usr/lib is ever used.

    Teensyduino never supports any (modified)...
  21. Replies
    6
    Views
    70

    There is no easy way. Arrays in C++ are fixed...

    There is no easy way. Arrays in C++ are fixed length.

    You can create a C++ class, which isn't really an array at all, but tries to act like one with operator overloading syntax. Then code inside...
  22. Thread: c++17

    by PaulStoffregen
    Replies
    2
    Views
    61

    Today we use C++14, and probably will stay with...

    Today we use C++14, and probably will stay with it for at least another year.

    We're probably due for a toolchain upgrade "soon". But that's not going to happen while we're in the middle of so...
  23. Looks like the bug is within the calculations...

    Looks like the bug is within the calculations done in micros(). It seems to be happening at 150 MHz and lower, but only badly enough at 24 MHz to mess up delay().

    Here's a test case to easily see...
  24. Tested just now. Looks like delay() is broken...

    Tested just now. Looks like delay() is broken when running at 24 MHz. Seems to work fine at all the other speeds.
  25. You can certainly get a lot of direct inputs (no...

    You can certainly get a lot of direct inputs (no mux chips) with Teensy 3.5 or 3.6, but the cost is higher for those boards. Still, might be worthwhile for the much simpler coding. Often...
  26. Replies
    44
    Views
    1,086

    There are 3 cases: Pins 10-15, 18, 19 use the...

    There are 3 cases:

    Pins 10-15, 18, 19 use the quad timers.

    Pins 0, 1, 24, 25 use the flexpwm timer extra (X) output.

    All the other PWM pins use flexpwm timer normal (A, B) outputs.
  27. Replies
    44
    Views
    1,086

    Yes, that's the way it was done on Teensy 3.x,...

    Yes, that's the way it was done on Teensy 3.x, because it was done that way on Teensy 2, because Arduino does it that way. But just because we've always done it that way doesn't mean we should.
    ...
  28. Replies
    44
    Views
    1,086

    Thanks. I'm looking at all these right now.... ...

    Thanks. I'm looking at all these right now....

    cores #397 - merged just now

    cores #385 - was merged in October

    spi #50 - merged just now

    spi #55 - this makes me a little nervous so close...
  29. Replies
    9
    Views
    113

    Run the InputFunctionsComplete example on your...

    Run the InputFunctionsComplete example on your Teensy, and then open the Arduino Serial Monitor. As your PC sends MIDI messages, you should see info about each message Teensy receives printed to the...
  30. Definitely this, at least not help with code...

    Definitely this, at least not help with code which has an incompatible open source license.

    I do believe this is an interesting application. Right now there's no chance I'll work on a thing like...
  31. The Ethernet library does not use the special SPI...

    The Ethernet library does not use the special SPI CS feature. Any digital pin can be used for CS with Ethernet.

    Long ago I did briefly attempt this with Ethernet, but it made almost no...
  32. Could you be more specific about exactly which...

    Could you be more specific about exactly which documentation?

    MOSI0,MISO0,SCK0 (pins 11,12,13) are a separate and fully independent bus from MOSI1,MISO1,SCK1 (pins 0,1,32).
  33. Replies
    7
    Views
    99

    Best to check the reference manual for these...

    Best to check the reference manual for these finer points of exactly how the hardware responds.

    But to summarize quickly, yes, when the USB hardware hears an IN token from the USB host, will only...
  34. Replies
    7
    Views
    99

    Here's the untested PCB... ...

    Here's the untested PCB...

    https://oshpark.com/shared_projects/vrRZki32

    18426
  35. Replies
    44
    Views
    1,086

    I'm going to package up 1.49-beta3 soon. Now's...

    I'm going to package up 1.49-beta3 soon.

    Now's the time to remind me of stuff I've forgotten to test or merge....
  36. Replies
    44
    Views
    1,086

    Opps. Fixed it. ...

    Opps. Fixed it.

    https://github.com/PaulStoffregen/cores/commit/bac5b587f5ee7c91b0498f51f47129dd7d4c77a8
  37. Replies
    44
    Views
    1,086

    I committed a fix for this problem. ...

    I committed a fix for this problem.

    https://github.com/PaulStoffregen/cores/commit/9026659eaa8ad8df92134f93cb2b8a7af652cf49

    Can't say I'm proud of having to add a 30 ns delay. I still don't...
  38. Replies
    7
    Views
    99

    You'll probably need to modify the source, since...

    You'll probably need to modify the source, since tx_state is declared static.

    But regardless of how you go about things, hopefully this info about how the USB device code works will help.
  39. Look at the _VectorsFlash array in mk20dx128.c. ...

    Look at the _VectorsFlash array in mk20dx128.c.

    https://github.com/PaulStoffregen/cores/blob/master/teensy3/mk20dx128.c#L268

    Also, if you *really* want to learn how the processor works,...
  40. Replies
    19
    Views
    219

    Hope you'll confirm whether or not soldering a...

    Hope you'll confirm whether or not soldering a wire between those 2 points makes your board work. That sort of feedback can really help everyone else in the future when they're struggling to...
  41. Replies
    7
    Views
    99

    Looks like you're calling the not-public API...

    Looks like you're calling the not-public API functions within usb_dev.c. That's fine... the code is open source and meant to be used. But since these aren't the normal public API, their precise...
  42. Wow, looks like a really interesting project. ...

    Wow, looks like a really interesting project. Hope you'll share some more info as it develops?

    I'm really curious to hear if you see much of a difference in timing & latency with Teensy 4.0's USB...
  43. No, it only supports stereo. You can use stereo...

    No, it only supports stereo. You can use stereo input and stereo output simultaneously, but only 1 instance of each.




    Yes, it is theoretically possible, if your programming skill and...
  44. Replies
    44
    Views
    1,086

    Opps, I messed up the MacOS Catalina build. ...

    Opps, I messed up the MacOS Catalina build. Fixed it just now and uploaded a fresh file.

    The new Teensyduino_MacOS_Catalina.zip has shasum e72ba892097e5f849f71706d8b14d2abaea14926.

    The...
  45. Yes, but later. Audio requires isochronous...

    Yes, but later.

    Audio requires isochronous transfer, which is more complex and more difficult to test. We use it in asynchronous mode, which uses a slightly different rate feedback protocol at 12...
  46. Replies
    44
    Views
    1,086

    I'll confess... I tested the new USB stuff mostly...

    I'll confess... I tested the new USB stuff mostly with Linux and a quick check on Mac, but not Windows. I use Linux as my primary system, and the Macbook Air was set up due to the recent work on...
  47. Replies
    19
    Views
    219

    Schematic looks like it ought to work. Maybe...

    Schematic looks like it ought to work.

    Maybe something wrong in the layout? Here's a project where the schematic was perfect, but the problem turned out to be a missing trace in the layout. It...
  48. Replies
    13
    Views
    212

    For CV into an analog pin ...

    For CV into an analog pin

    https://www.pjrc.com/control-voltage-to-1-2v-analog-input-pin/

    https://www.pjrc.com/wp-content/uploads/2019/01/controlvoltage.png
  49. Oh that doesn't sound right. I'm pretty sure you...

    Oh that doesn't sound right. I'm pretty sure you need to connect VDD (pin 5) of the ICS40300 to 3.3V on the Teensy.
  50. Teensyduino 1.49-beta2 is now available, with USB...

    Teensyduino 1.49-beta2 is now available, with USB MIDI support for Teensy 4.0.

    https://forum.pjrc.com/threads/58654-Teensyduino-1-49-Beta-2

    Please give this a try and let me know how the USB...
Results 1 to 50 of 499
Page 1 of 10 1 2 3 4