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

Search:

Type: Posts; User: manitou

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    183

    I have seen this problem on older sketches. I...

    I have seen this problem on older sketches. I just ran your sketch on my T3.2 1.8.13/1.53 on Ubuntu 18.04 and it hangs after printing 516. If I add while(!Serial); after Serial.begin(), the...
  2. Replies
    494
    Views
    9,304

    just for the record, a while back (see old thread...

    just for the record, a while back (see old thread), I managed to get adafruit's FatFs lib to work on SPI flash on Teensy prop shield with Teensy 3.2.

    http://elm-chan.org/fsw/ff/00index_e.html ...
  3. Replies
    6
    Views
    318

    Your sketch actually runs (not connected to...

    Your sketch actually runs (not connected to anything) on a T3.2. It will also run on T4.0 (nothing connected) if you correct the fatal flaw

    int flow1state = WireWrite(0, addr1, 0); // check...
  4. Replies
    14
    Views
    1,327

    Best practice warning. When setting a variable...

    Best practice warning. When setting a variable in an ISR that is referenced elsewhere, you need to declare the variable volatile so the compiler can handle asynchronous updates.
    volatile unsigned...
  5. Replies
    6
    Views
    318

    The usual Wire protocol for Wire read is after...

    The usual Wire protocol for Wire read is after you issue Wire.requestFrom() you then use Wire.available() before Wire.read(). maybe look at some Arduino I2C examples ....
  6. Replies
    14
    Views
    1,327

    as noted in post #4 PulsePosition lib...

    as noted in post #4 PulsePosition lib demonstrates how to use FTM0 to capture pin input with 32-bit count.

    Another example derived from Teensy LC timer 32-bit capture on pin 20:...
  7. Replies
    26
    Views
    1,333

    I've briefly played with the sparkfun M4/SAMD51...

    I've briefly played with the sparkfun M4/SAMD51 micromod processor board and the ATP carrier board. The M4 board has the SPI flash on the underside. I assume the Teensy 4 micromod board will have...
  8. Both paths are based on the same 24MHz crystal. ...

    Both paths are based on the same 24MHz crystal. My original sketch in post #4 uses CLKSRC(1) to reference the 24 mhz clock. If you want to use CLKSRC(5) for 24mhz, then you must enable the 150MHZ...
  9. yep, the example runs GPT2 @24mhz. You can...

    yep, the example runs GPT2 @24mhz. You can configure GPT to 150MHz for CLKSRC(1) by adding
    CCM_CSCMR1 &= ~CCM_CSCMR1_PERCLK_CLK_SEL; // turn off 24mhz mode
    in setup() before line CCM_CCGR0 |=...
  10. try...

    try https://github.com/manitou48/teensy4/blob/master/gpt_capture62.ino
    GPT2 capture on pin 15
  11. Replies
    113
    Views
    17,233

    Thanks for adding DCache support. I added T4 v6...

    Thanks for adding DCache support. I added T4 v6 lines to benchmarks in post #14. Some tests are faster than v5 dcache-hack, some are slower.
  12. Replies
    8
    Views
    407

    Here are two proof-of-concept sketches clocking...

    Here are two proof-of-concept sketches clocking GPT timers from external clock.
    https://github.com/manitou48/teensy4/blob/master/gpt_count.ino GPT1...
  13. Replies
    9
    Views
    267

    You might try updating to the latest IDE. On my...

    You might try updating to the latest IDE. On my T3.2 I ran PulsePosition lib loopback example with pin 9 jumpered to pin 10. I also added while(!Serial); as the first thing in setup(). Sketch...
  14. Replies
    7
    Views
    2,186

    For me, T4@150mhz and SPI @4mhz, my scope still...

    For me, T4@150mhz and SPI @4mhz, my scope still sees 4 mhz on pin 13 (nothing connected to SPI pins except scope to pin 13). As KurtE noted, T4 SPI clock is independent of MCU clock.
  15. Replies
    7
    Views
    2,186

    So what does your logic analyzer report for the...

    So what does your logic analyzer report for the SPI clock rate when your beginTrasaction() sets clock to 4mhz?

    if i run your SPI transfers, scope on SPI CLK (pin 13) shows 4 mhz clock for various...
  16. Replies
    17
    Views
    820

    OK, I ran deepsleep/button_hold_wakeup sketch on...

    OK, I ran deepsleep/button_hold_wakeup sketch on my LC. As noted in post #13 sketch did not come out of deepsleep when pin 7 was grounded. I don't pretend to understand much of the LC snooze logic,...
  17. Replies
    10
    Views
    611

    Re: lightweight printf You might grab the...

    Re: lightweight printf

    You might grab the ee_printf() from Paul's CoreMark (which works on LC)
    https://github.com/PaulStoffregen/CoreMark

    another ee_printf variation that works on LC from...
  18. Replies
    163
    Views
    6,264

    If you read the adafruit instructions for bno055...

    If you read the adafruit instructions for bno055 https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/pinouts
    you'll see you can set the ADR pin high to change the I2C address from...
  19. Replies
    21
    Views
    618

    Thought I'd help beat the dead horse ... I...

    Thought I'd help beat the dead horse ... I hooked up Sparkfun BNO080 to T4.1 in SPI mode (PS0 and PS1 jumpered to 3v3) and ran the SPI EulerAngles example(17) and used pin 36 for CS. I commented...
  20. With PJRC wiznet adapter (WIZ850io) and T3.2, I...

    With PJRC wiznet adapter (WIZ850io) and T3.2, I successfully ran a sketch that initialized Ether, then initialized SD and listed SD directory, then sent UDP packets to/from NTP server. Adapter was...
  21. Replies
    4
    Views
    305

    Make sure your USB cable is not just a "charging...

    Make sure your USB cable is not just a "charging cable". see https://www.pjrc.com/teensy/troubleshoot.html
  22. Replies
    1
    Views
    197

    i had a similar problem with GPS and Teensy 4.1...

    i had a similar problem with GPS and Teensy 4.1 with ethernet. GPS would work ok until Ethernet was activated. I had to use another GPS (NEO-8MU) with active external antenna on a long cable. GPS...
  23. Replies
    3
    Views
    242

    Yes, the column heading for LC says Serial1-3, so...

    Yes, the column heading for LC says Serial1-3, so table probably reports worst case. LC Serial2 and Serial3 use F_BUS. Here's perl script for UART1 and UART2 (Serial2 and Serial3)

    #!...
  24. Replies
    3
    Views
    242

    Your LC numbers look correct for Serial1 (UART0)....

    Your LC numbers look correct for Serial1 (UART0). You can also verify error by setting Serial1 baud rate and then examining the count in UART0_BDH and UART0_BDL.

    void setup() {
    ...
  25. Replies
    4
    Views
    272

    Arduino and Teensy AVR cores implement millis()...

    Arduino and Teensy AVR cores implement millis() with TIMER0, study https://github.com/PaulStoffregen/ArduinoCore-avr/blob/master/cores/arduino/wiring.c
  26. Replies
    3
    Views
    271

    here is post on T4 TRNG...

    here is post on T4 TRNG from Teensy 4 beta test thread. Post also has a link to a low-level example on github. T4 TRNG is relatively slow for a hardware RNG, 13484 us for 512 bits.
  27. Replies
    31
    Views
    2,478

    @ddrown, your isr in examples/lwip_1588_input/...

    @ddrown, your isr in examples/lwip_1588_input/ needs asm volatile ("dsb");, otherwise the ISR fires twice for each PPS.

    https://github.com/ddrown/teensy41_ethernet
  28. Replies
    9
    Views
    669

    Hmmm, the ISR function in post #7 does all three....

    Hmmm, the ISR function in post #7 does all three. ISR is equivalent to CHANGE, then in the ISR you check the status flag to see if you have rising (RF) or falling (CMPF).
  29. Replies
    9
    Views
    669

    ? "both" and "only" seem mutually exclusive?? ...

    ? "both" and "only" seem mutually exclusive?? any how, you can enable interrupt on both edges of the PWM. There is only one ISR for the interrupt so you will need to check the status flag...
  30. What version of Arduino IDE and Teensyduino are...

    What version of Arduino IDE and Teensyduino are you using? what is the error message that you are getting from the SD lib test? If you run the following sketch on your T4.1 with a uSD in the...
  31. Replies
    145
    Views
    11,695

    I re-tested my simple echo test with 2048-byte...

    I re-tested my simple echo test with 2048-byte UDP packets ... worked for me.
  32. Replies
    145
    Views
    11,695

    I have successfully sent and received UDP packets...

    I have successfully sent and received UDP packets up to 2000 bytes, so I think FNET/NativeEthernet is doing IP fragmentation. I used the following function to send to a UDP echo server.

    void...
  33. Replies
    18
    Views
    864

    The output you provide suggests the Serial...

    The output you provide suggests the Serial connection is good, but that the GPS is not getting locked in. Does GPS have an LED that flashes when GPS is locked in?
    el_supremo's sketch in post #7...
  34. Replies
    145
    Views
    11,695

    It depends on the library. You may need to...

    It depends on the library. You may need to explore the FNET lib and look for TCP_NODELAY. The BSD socket lib has a socket option for TCP_NODELAY that disables Nagle. lwIP lib has a config option...
  35. see...

    see https://forum.pjrc.com/threads/60532-Teensy-4-1-Beta-Test?p=239712&viewfull=1#post239712
  36. Replies
    15
    Views
    631

    can you provide a complete simple sketch that...

    can you provide a complete simple sketch that demonstrates the problem?? Can you try your test with the Arduino/Teensy IDE ?
  37. yes, the ELECHOUSE lib is built on the AVR SPI. ...

    yes, the ELECHOUSE lib is built on the AVR SPI. The Teensy/ARM SPI requires different logic
  38. Normally, SPI does not "hang" -- even if you have...

    Normally, SPI does not "hang" -- even if you have nothing connected to SPI pins. I would get rid of all the while(digitalRead(MISO_PIN));, 1) because the while is probably causing the hang and 2)...
  39. careful, it looks like Nextions are 5v devices. ...

    careful, it looks like Nextions are 5v devices. Teensy 4 is NOT 5v tolerant, you may need level shifters? Maybe OK if you don't hook up Nextion Tx to T4.

    edit: at least on some Nextions, the...
  40. Replies
    5
    Views
    439

    see...

    see https://forum.pjrc.com/threads/60532-Teensy-4-1-Beta-Test?p=239712&viewfull=1#post239712
  41. Replies
    145
    Views
    11,695

    you didn't provide all of your sketch, so one...

    you didn't provide all of your sketch, so one can't tell if you are using TCP or UDP. TCP has several algorithms that affect data clustering (slow-start, Nagle, delayed ACK). At start of TCP...
  42. Replies
    4
    Views
    531

    server.available() returns a pointer or NULL, not...

    server.available() returns a pointer or NULL, not a boolean, so your test should be if (client) { ....

    see examples/ in NativeEthernet lib or read more closely the URL in the previous post
  43. Replies
    12
    Views
    1,109

    I hooked up Sparkfun ADXL345...

    I hooked up Sparkfun ADXL345 to T3.6 and made the speed change to the library as described in post #2, and it works for me.

    -1, -1, 31
    -1, -1, 31
    *** DOUBLE TAP ***
    *** TAP ***
    -1, -1, 31
    -2,...
  44. Thread: TeensyTransfer

    by manitou
    Replies
    140
    Views
    72,302

    when building teensytransfertool, in the IDE ...

    when building teensytransfertool, in the IDE Tools dropdown menu, you must first set USBType to Raw HID Then after build and load, windows should recognize the Raw HID device, and you can run...
  45. Those constants are for the AVR timers. For the...

    Those constants are for the AVR timers. For the Teensy timers you'll need to mess with pinouts/Teensy_KinetisK20.h
  46. Replies
    4
    Views
    531

    ping should work, you may need to configure...

    ping should work, you may need to configure netmask and broadcast and router IP. also your .Net example uses port 20, but WebServer will be on port 80
  47. Replies
    56
    Views
    23,809

    Re: slow PWM As Paul noted, one can use...

    Re: slow PWM

    As Paul noted, one can use EXT_CLK via XBAR to flexpwm timers to get a slower clock. Here is a proof-of-concept sketch using quad-timer to provide a 10khz clock via XBAR to flexpwm...
  48. Replies
    12
    Views
    1,109

    @Vucko, as Kurt suggests, photos of your...

    @Vucko, as Kurt suggests, photos of your wiring/soldering etc. would be beneficial.

    Other things to try:
    Add while(!Serial); after Serial.begin(9600); (I don't have ADXL345, so with nothing...
  49. I'm not sure Ethernet is the way to go to get ...

    I'm not sure Ethernet is the way to go to get 1 us control of your slaves. Any way to have digital connections from master to each of the slaves?

    T4.1 does support PTP, see...
  50. Replies
    56
    Views
    23,809

    Re: slow PWM with GPT I think you can run the...

    Re: slow PWM with GPT

    I think you can run the T4 GPT timer at low PWM frequency. The compare register is 32 bits so you should be able to get below 1 hz. I think you can only do 50% duty and the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4