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.12 seconds.

  1. International postal delivery seems to be...

    International postal delivery seems to be returning to "normal" for most countries, which was about 1-3 weeks, but a small percentage of packages get stuck in customs and take much longer.

    In...
  2. You might also want to disable interrupts while...

    You might also want to disable interrupts while writing to multiple CTRL2 registers.
  3. Ok, I ran it here and verified the FRCEN & FORCE...

    Ok, I ran it here and verified the FRCEN & FORCE bits really do work with my oscilloscope. I added code to pulse pin 3, so I can trigger the scope on the moment it writes to those bits.

    20902

    ...
  4. Are you using an oscilloscope or logic analyzer...

    Are you using an oscilloscope or logic analyzer to view the waveforms on pins 22 or 23? Or if not directly viewing the waveforms, how will you confirm whether this works?
  5. First, consider the PWM pins you've chosen. ...

    First, consider the PWM pins you've chosen.



    int US_Tx_PIN[] = {23, 22, 14, 15};


    2 of these are on FlexPWM4, but the other 2 are on QuadTimer3, which isn't even the same type of timer!
    ...
  6. I haven't used the USB volume parameter. It was...

    I haven't used the USB volume parameter. It was a contribution I merged without testing, since it seemed like a low risk. Looks like it just delivers whatever number the USB host sends.

    If...
  7. You have to start with something, even if just an...

    You have to start with something, even if just an empty program with just 1 analogWrite() line. Then we could at least see which pin number! (and we can start talking about actual registers instead...
  8. Ah, that makes sense. Those other boards don't...

    Ah, that makes sense.

    Those other boards don't have a MPU that generates a program-stopping fault for illegal memory access (or if Artemis has one, I'm pretty sure Sparkfun wouldn't bother to use...
  9. You could put it all into 1 file and remove all...

    You could put it all into 1 file and remove all the C++ class stuff, so it's just simple code in setup() and loop(). Ideally this should be a short program which can be just copied into Arduino,...
  10. Please be specific when you need more specific...

    Please be specific when you need more specific help. Show the complete code you're already trying that isn't yet working. "Complete" means anyone where can copy it into Arduino and run it on their...
  11. Any chance I could talk you into condensing this...

    Any chance I could talk you into condensing this down to a small example in a single .ino file which reproduces the problem when used with the Arduino IDE?

    Sorry, I just can't put limited dev time...
  12. Agreed, we need a complete (and hopefully simple)...

    Agreed, we need a complete (and hopefully simple) program to help in any useful way. This function without the related code that manages m_commandBuffer is not good enough.

    But just in case, I...
  13. Maybe you can use the FORCE bit in the submodule...

    Maybe you can use the FORCE bit in the submodule CTRL2 register? And of course write zero to the INIT register, or whatever value you want the counter to become when you write a 1 to that bit.
    ...
  14. Wow, you don't see a Kernel Opps very often in...

    Wow, you don't see a Kernel Opps very often in these modern times of Linux! This is extremely unusual. We hear all sorts of problems with Linux which almost always turn out to be udev rules or...
  15. Please install 1.53. ...

    Please install 1.53.

    https://www.pjrc.com/teensy/td_download.html

    Bugs involving cache management were fixed in 1.53, so there's a chance 1.53 may solve all these issues you're seeing. It...
  16. Hopefully we'll have another Teensy 4.x product...

    Hopefully we'll have another Teensy 4.x product sometime next year. But we're not going to call it version 5 until an upgrade to a different processor core. Cortex M55 looks like the most likely...
  17. Looks like there might be a bug. Can you confirm...

    Looks like there might be a bug. Can you confirm which version of Teensyduino you're using? In Arduino, click Help > About to check. Or on Macintosh, click Teensyduino > About.
  18. Teensy 4.0 and 4.1 are meant to be powered by...

    Teensy 4.0 and 4.1 are meant to be powered by VUSB or VIN. The IMXRT processor has a complex power sequencing requirement which is only fully met when you power by VUSB or VIN, or when you have a...
  19. Email Robin directly for availability and a quote.

    Email Robin directly for availability and a quote.
  20. Sorry, that kit is only sold unassembled. ...

    Sorry, that kit is only sold unassembled.



    I haven't used JLCPCB's assembly service, but their web page seems to say "Surface Mount(SMT) - Single sided placement" for "Assembly Types". All the...
  21. Teensy is not always a serial device (COM port in...

    Teensy is not always a serial device (COM port in Windows). During programming, and with a brand new Teensy, HID protocol is used, not serial. Teensy only becomes a serial device when it runs your...
  22. Replies
    2
    Views
    107

    Yes, you can get 4 MHz from the PWM pins, with...

    Yes, you can get 4 MHz from the PWM pins, with code like this:



    void setup() {
    analogWriteFrequency(2, 4000000);
    analogWrite(2, 128);
    }

    void loop() {
  23. Did you select Teensy in the Tools > Ports meny...

    Did you select Teensy in the Tools > Ports meny and then open the Arduino Serial Monitor? What do you see in that window?

    The very first line in setup() for the Test program is this:



    So if...
  24. Replies
    70
    Views
    945

    This is the way traditional SPI works. But...

    This is the way traditional SPI works. But FlexSPI is very different. The whole transfer, including chip select, is done completely by hardware. You don't write code to do the individual steps. ...
  25. The hardware support is there, but so far no...

    The hardware support is there, but so far no software.

    I'm curious why so much focus on using DMA?




    That's what I've done too. And realistically, I'm going to keep doing this a while...
  26. The most common problem is charge-only USB...

    The most common problem is charge-only USB cables. They have only 2 wires for power, but no data wires inside the cable.

    I know you said you changed the cable. Indeed we've heard that over and...
  27. Replies
    70
    Views
    945

    ADDR_SDR causes FlexSPI to transmit the desired...

    ADDR_SDR causes FlexSPI to transmit the desired memory address you wish to access. It's used only for actually reading & writing the memory. You wouldn't use ADDR_SDR for LUTs which do things like...
  28. There is a bug on Linux which causes "An error...

    There is a bug on Linux which causes "An error occurred while uploading the sketch" to be mistakenly printed, but then the upload happens successfully a second or two later. Or simply trying again...
  29. I really like the DIY nature of this built with...

    I really like the DIY nature of this built with wires!

    If we were to show this on the blog (hopefully that's ok?) how would you describe the purpose of this module? You know... you people with...
  30. We're hoping EXP Tech (https://www.exp-tech.de/)...

    We're hoping EXP Tech will carry them in a couple weeks.
  31. Oh that's not good. It is normal for the...

    Oh that's not good.

    It is normal for the voltage regulator nest 3.3 and pin 23 to get warm, if your project consumes extra power from the 3.3V line. But the bootloader chip near pins 1 & 2 should...
  32. Yes. You will need to edit usb_desc.h. It's in...

    Yes. You will need to edit usb_desc.h. It's in {Arduino}/hardware/teensy/avr/cores/teensy4. See the comments in that file for details.

    Much of the other USB code assumes you have either a real...
  33. #if defined(ARDUINO_TEENSY40) #elif...

    #if defined(ARDUINO_TEENSY40)

    #elif defined(ARDUINO_TEENSY41)
  34. Replies
    3
    Views
    179

    They are supposed to be connected. It is this...

    They are supposed to be connected. It is this wire on the schematic.

    20841

    This connection allows you to easily get access to the 5V power, or to power the board by putting 5V on the VIN pin
  35. Replies
    20
    Views
    3,209

    Quick update, just to let everyone waiting know I...

    Quick update, just to let everyone waiting know I am working on this now that Teensyduino 1.53 is released. It's my top priority. I hope to have chips available for you in a couple weeks.
  36. Any chance you can share the photo or a link to...

    Any chance you can share the photo or a link to the specific ILI9341 display you're using?

    Most of them work up to 30 MHz and much faster. Would be really helpful to know which models out there...
  37. Glad you found the problem.

    Glad you found the problem.
  38. Unless you've cut the pads apart on the bottom...

    Unless you've cut the pads apart on the bottom side, the VIN pin is connected directly to the USB power. Here's the schematic.

    https://www.pjrc.com/teensy/schematic.html

    If the voltage really...
  39. I tested with Teensyduino 1.53, and using...

    I tested with Teensyduino 1.53, and using ILI9341_t3 since I don't currently have ILI9341_t3n installed.

    I can't reproduce the problem. Audio flows through. I added some printing in loop() and...
  40. Any chance there's a leftover "while (!Serial) ;...

    Any chance there's a leftover "while (!Serial) ; " somewhere in the code, which is waiting for the serial monitor?
  41. Yes, an external voltage regulator is the way, if...

    Yes, an external voltage regulator is the way, if you're using too much current on 3.3V. But if all the power is coming from USB, keep in mind the general 5V USB power limit of 500 mA if directly...
  42. It's trying to talk to a DS1307 chip, which you...

    It's trying to talk to a DS1307 chip, which you don't have. Do not use DS1307RTC.h.

    Follow the example from File > Examples > Time > TimeTeensy3.

    In particular, you need this in setup:



    ...
  43. You might also try monitoring the 3.3V power line...

    You might also try monitoring the 3.3V power line on your Teensy 4.0.

    Perhaps you have other 3.3V circuitry drawing power from your Teensy? Maybe it consumes too much power at a time which...
  44. Seems unlikely, but not completely ruling out the...

    Seems unlikely, but not completely ruling out the possibility you may have found a previously unknown bug.

    As a quick sanity check, I tried running this on a Teensy 4.0.



    void setup() {
    }
    ...
  45. Before you start deleting files, try rebooting. ...

    Before you start deleting files, try rebooting. That usually solves Windows problems where something was keeping a file locked.
  46. Those look like some pretty long wires! And that...

    Those look like some pretty long wires! And that display... which one is it? Doesn't look like Adafruit.

    For Teensy, try reducing the speed with Tools > CPU Speed. 24 MHz is the slowest where...
  47. You should close (quit) Arduino and Teensy Loader...

    You should close (quit) Arduino and Teensy Loader before running the installer. Windows will not allow writing to those files if the programs are still open and running.

    No idea why your deleted...
  48. Replies
    16
    Views
    372

    Awesome board. Have you connected to any...

    Awesome board. Have you connected to any machines yet? Any chance for a photo of it in "action"?
  49. Maybe I should make future versions of the...

    Maybe I should make future versions of the installer check whether these sorts of library conflicts exist? Automatically deleting the files probably isn't a good idea, but at least the installer...
  50. This is the problem: For reasons I can't...

    This is the problem:



    For reasons I can't know, you have copies of these libraries in your Documents\Arduino\libraries folder on that computer. Arduino is designed so anything you put in your...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4