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

  1. The good news is all you have to do is put...

    The good news is all you have to do is put "const" in the array definition and the linker will place it only in the flash memory, saving precious RAM.
  2. The descriptor info looks like pretty standard...

    The descriptor info looks like pretty standard CDC-ACM (USB serial) protocol. According to the descriptors, it really should work.



    This is merely guesswork, but if (a pretty big if) the...
  3. Replies
    18
    Views
    357

    Just to be clear, I do not own the Pozyx...

    Just to be clear, I do not own the Pozyx hardware. The changes I made were based on the same sorts of compatibility issues that are common with all Arduino libs.
  4. Replies
    6
    Views
    128

    That one looks like it has a USB-serial chip. ...

    That one looks like it has a USB-serial chip. You might need to disable or disconnect that chip's transmit signal. If both Teensy 3.6 and that chip connect both have their transmit signals wired to...
  5. Teensy 3.6 is currently the only Teensy model...

    Teensy 3.6 is currently the only Teensy model with USB host capability. To connect USB devices, you'd need this cable.

    https://www.pjrc.com/store/cable_usb_host_t36.html

    The library for USB...
  6. The I/O expanders in the Monolith Synth used the...

    The I/O expanders in the Monolith Synth used the SDA & SCL signals, pins 18 & 19. The 3 wire cable connecting them is just those 2 signals and GND. SDA & SCL are meant to be shared by several...
  7. Replies
    6
    Views
    130

    The audio library comes with many examples. In...

    The audio library comes with many examples. In Arduino, click File > Examples > Audio to access them. WavFilePlayer is a good place to start for an example which uses SPI to access a SD card. You...
  8. There isn't any simulator or static timing...

    There isn't any simulator or static timing analysis tool provided with Teensyduino.

    You can get close to 1 cycle per NOP if you use FASTRUN on your function, so it gets placed in the single-cycle...
  9. Maybe show us a photo of how you've actually...

    Maybe show us a photo of how you've actually connected the wires? This may be a simple mistake or misunderstanding which we could help clear up, if we're able to actually see it.
  10. The simplest way is one signal per pin. At least...

    The simplest way is one signal per pin. At least while learning, probably best to start out with just a few buttons and pots the simple way.

    With those I/O expanders or with mux chips or matrix...
  11. This thread has the info you seek. ...

    This thread has the info you seek.

    https://forum.pjrc.com/threads/17532-Tutorial-on-digital-I-O-ATMega-PIN-PORT-DDR-D-B-registers-vs-ARM-GPIO_PDIR-_PDOR
  12. Replies
    2
    Views
    108

    To check the Teensy side, you could just connect...

    To check the Teensy side, you could just connect a switch or wire to the CTS input. When high, Teensy should send serial output normally. When you connect it low, Teensy should stop transmitting. ...
  13. The 2nd USB port's hardware is completely...

    The 2nd USB port's hardware is completely different. The existing code is written for the main port. Pretty much everything in usb_dev.c can not be used for the 2nd port, and needs to be re-written...
  14. Sorry, there is only software support for USB...

    Sorry, there is only software support for USB host mode on that port. So far there simply isn't any support for device mode on the 2nd port.
  15. Replies
    9
    Views
    197

    No, that would be jumping out of the frying pan...

    No, that would be jumping out of the frying pan and into the fire!

    If you already have the UDA1361TS running, maybe give it a try with BCLK/LRCLK ratio of 32. Odds look very good it will "just...
  16. I saw something like this just once, but at the...

    I saw something like this just once, but at the time wrote it off as a low quality SD card (which is was).

    Maybe there is something else wrong? Hard to say.

    If I wanted to recreate your...
  17. Replies
    9
    Views
    197

    Changing this would require digging into the...

    Changing this would require digging into the low-level I2S code inside the audio library. Definitely not a beginner level project.

    There 2 parts needed. The easy part is just changing the clock...
  18. Any idea if the bad card was a genuine Sandisk? ...

    Any idea if the bad card was a genuine Sandisk? The market is flooded with counterfeits claiming to be Sandisk.
  19. Replies
    1
    Views
    56

    The 2nd input only has an effect if you're using...

    The 2nd input only has an effect if you're using the pulse or variable triangle waveforms. For the other 7 waveform types it does nothing.

    No, there's no other documentation, other than the...
  20. Replies
    11
    Views
    336

    Try running this program on your Teensy and then...

    Try running this program on your Teensy and then open the Arduino Serial Monitor to watch the numbers it prints.



    void setup() {
    }

    void loop() {
    Serial.print("A0=");
    ...
  21. Oh yeah, we're now supporting 256K RAM (less 8...

    Oh yeah, we're now supporting 256K RAM (less 8 bytes) on Teensy 3.5. :)
  22. Replies
    1
    Views
    59

    Yes. In Arduino, click Tools > USB Type and...

    Yes. In Arduino, click Tools > USB Type and select "Audio". Teensy 3.2, 3.5 and 3.6 support this. It's not supported on LC, 2.0 or 2.0++. You need 3.2 or higher.

    Then in the design tool, put...
  23. Replies
    24
    Views
    6,101

    As a quick followup for anyone who finds this old...

    As a quick followup for anyone who finds this old thread (perhaps from the Youtube video), I'm pretty sure the problem with noise in the higher bins with fast SPI was due to this APA102 problem with...
  24. Does adding "__attribute__ ((aligned (4)))" to...

    Does adding "__attribute__ ((aligned (4)))" to the array make any difference?

    For example:


    uint8_t rgb[230400] __attribute__ ((aligned (4)));

    Also consider this array uses nearly all the...
  25. IntervalTimer can give you most of this. The...

    IntervalTimer can give you most of this. The minimum interval is 36 cycles of F_BUS, which is 60 MHz on Teensy 3.5. (but whether you can do anything useful in your ISR function during such a short...
  26. Replies
    56
    Views
    29,768

    If you go searching for driver signing info,...

    If you go searching for driver signing info, you'll likely find very old info. The process I described applies from Vista through Windows 10.

    In Vista through Windows 8, Microsoft didn't put...
  27. Replies
    56
    Views
    29,768

    Maybe you're using Windows 10? If so, perhaps...

    Maybe you're using Windows 10?

    If so, perhaps the name you're seeing comes from C:\Windows\INF\USBSER.INF (which is a hidden folder, so you have to do something special to access this INF folder...
  28. Replies
    14
    Views
    462

    Maybe try reading ARM_DWT_CYCCNT instead?

    Maybe try reading ARM_DWT_CYCCNT instead?
  29. I do not understand your question. Maybe you...

    I do not understand your question.

    Maybe you could tell us which hardware you really have and what you're trying to accomplish?

    Here's some generic answers that may or may not apply.....

    The...
  30. Very hard to guess what's going wrong here. It...

    Very hard to guess what's going wrong here. It could be a simple hardware issue like a wire shorted between pins.

    But it could be a tough software problem which only looks like hardware failing. ...
  31. Maybe you were using a different SD card? Write...

    Maybe you were using a different SD card? Write speed vary quite a lot between cards. Or maybe the card was in new condition and had not yet remapped sectors or done other internal media management...
  32. Replies
    14
    Views
    462

    Yes indeed, TIMSK0 is specific to AVR chip, and...

    Yes indeed, TIMSK0 is specific to AVR chip, and not even all of the AVRs, only some of them. Code writing to TIMSK0 won't work on other boards with non-AVR chips, or even the AVR chips with...
  33. As far as I know, you can't. The FIFO's memory...

    As far as I know, you can't. The FIFO's memory isn't mapped into the ARM's address space. The UART only supports actually receiving the first in byte of a FIFO.
  34. Replies
    8
    Views
    470

    Finally up and running, after picking up an...

    Finally up and running, after picking up an ethernet card due to the network port not working on the new motherboard.

    It is indeed quite a bit faster. A full no-compression rebuild (with warm...
  35. Replies
    14
    Views
    462

    It's probably the ARM Systick interrupt. Maybe...

    It's probably the ARM Systick interrupt.

    Maybe put __disable_irq() before you call your ASM function. Don't forget __enable_irq() afterwards, or at least before you call delay(), since it depends...
  36. Short answer: yes, the hardware as a 1-bit flag...

    Short answer: yes, the hardware as a 1-bit flag which remembers the interrupt condition happened. When you later re-enable interrupts, your interrupt function will run.

    The long answer is quite a...
  37. One simple way to diagnose interrupt times is...

    One simple way to diagnose interrupt times is with a digitalWriteFast(pin, HIGH) at the beginning of every interrupt and digitalWriteFast(pin, LOW) at the end. Then watch the pin with an...
  38. Looks like you're writing to the SD card from...

    Looks like you're writing to the SD card from within the HalfSec() interrupt. I didn't fully unravel your program's structure, but that's the one case I can see where an interrupt accesses the card....
  39. I believe your copy of Arduino is probably ok. ...

    I believe your copy of Arduino is probably ok. This error (probably) means something is wrong with the code you're trying to compile. It could also mean something is messed up with your PC's...
  40. Replies
    6
    Views
    153

    I compiled the code from msg #5 without any...

    I compiled the code from msg #5 without any errors.

    I did have to install the DallasTemperature library, version 3.8.0, using Arduino's library manager. I used the OneWire that comes with...
  41. Replies
    8
    Views
    470

    Maybe, but doesn't feel like much of an upgrade....

    Maybe, but doesn't feel like much of an upgrade.

    I got the new i7-8086K chip. It's 6 cores, but so was my Sandy Bridge E chip. It uses DDR4, but only 2 channels. My old chip used 4 channel...
  42. Replies
    6
    Views
    153

    Do you get this error when compiling any of the 3...

    Do you get this error when compiling any of the 3 examples that come with OneWire?

    I tried just now with the DS18x20_Temperature example. Verifies fine with Arduino 1.8.5 & Teensyduino 1.42 on...
  43. Replies
    8
    Views
    470

    Looks like the motherboard died, perhaps the...

    Looks like the motherboard died, perhaps the CPU's voltage regulator? Or it could be the CPU? Already swapped the power supply, but no joy. The standby power LED on the motherboard is lit. When I...
  44. Replies
    8
    Views
    470

    My recent absence

    My Linux PC died yesterday morning, after 6 very productive years. New motherboard, CPU, memory arrives tomorrow. Confirmed my last daily backup is good, so should be back up & running soon. ...
  45. Replies
    11
    Views
    563

    Also notice the footnote on page 17, saying up to...

    Also notice the footnote on page 17, saying up to 125 C temperature is allowed if power dissipation is low. The bootloader does indeed remain in a very low power state, except when uploading new...
  46. Replies
    11
    Views
    563

    Maybe you should double check NXP's...

    Maybe you should double check NXP's documentation. The bootloader chip (MKL02Z32VFG4) is indeed rated for -40 to +105 C temperature.

    https://www.nxp.com/docs/en/data-sheet/KL02P32M48SF0.pdf
  47. We I started Teensy 3.0 in 2012, CMSIS was very...

    We I started Teensy 3.0 in 2012, CMSIS was very new and not very stable. Since then, ARM made numerous incompatible changes. Things seem to have settled down now, so perhaps at some point we'll...
  48. Arduino prints a memory usage summary. Look for...

    Arduino prints a memory usage summary. Look for those numbers to change when the buffer is using more RAM.
  49. This isn't going to work. The IP number is...

    This isn't going to work. The IP number is assigned by my router (using NAT routing) for the internal network. It is not reachable directly from the outside world.

    I also know nothing about how...
  50. I do not understand how I am supposed to use that...

    I do not understand how I am supposed to use that public site to communicate with a Teensy board on my desk, using a IP number assigned by my private network.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4