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

Search:

Type: Posts; User: joepasquariello

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thanks. I should have searched more. Will let you...

    Thanks. I should have searched more. Will let you know if we decide to go this route. Remember the days when you could actually call an applications engineer at a chip manufacturer and get an answer...
  2. This forum and the PJRC website are fantastic...

    This forum and the PJRC website are fantastic resources for working with Teensy. Just follow the instructions to install Arduino and TeensyDuino. There are a few very simple tutorials. I recommend...
  3. Teensy 4.x with Industrial-Temp iMXRT1062

    Teensy 4.x uses the "D" (Commercial, 0 to 95C) variant of the 1062. If designing a custom PCB, can the "C" (Industrial, -40 to 105C) variant be used with no effect on software? If so, would PJRC be...
  4. Okay. While you're testing the flash theory, you...

    Okay. While you're testing the flash theory, you can separate from any issues that might exist in your code by filling up flash with data instead of code. You could start with the basic Blink sketch...
  5. Frank's explanation is good. Depending on what...

    Frank's explanation is good. Depending on what platform you're using, and what you need to do on each interrupt, you may be able to go much higher than 2000 Hz with interrupts. One easy way to test...
  6. The amount of flash for each Teensy is documented...

    The amount of flash for each Teensy is documented on the PJRC site (T3.6=1MB, T4.0=2MB, and T4.1= 8MB). For FlasherX, what matters is the CODE size, not the FILE size. FlasherX will use however much...
  7. If you have another T4.1, you can test the...

    If you have another T4.1, you can test the power-related theory. If you can always load/run a blink program after you do the 15-second reboot, then I'd say it's a software issue, and unless your code...
  8. Do I understand correctly that you can load and...

    Do I understand correctly that you can load and run a simple Blink program normally, but loading your own program causes this odd behavior? If so, then I would guess that either your code is somehow...
  9. After the 15-second hold/reset, did you try...

    After the 15-second hold/reset, did you try building/loading a very simple sketch, such as Blink? If not, that would be worthwhile.
  10. Wow, great work. We do something similar, but all...

    Wow, great work. We do something similar, but all UART-based, not I2C. We use a variation of the BISYNC protocol with 16-bit CRC and DLE-escaped byte stuffing. Device addresses and function codes are...
  11. Replies
    2
    Views
    284

    The closest I know of is this T4.1 expansion...

    The closest I know of is this T4.1 expansion board by BurgessWorld. It doesn't have MikroBus connectors, but it has most (all?) of what you want, i.e. Ethernet, USB, easy access to all pins. It also...
  12. Replies
    3
    Views
    112

    If you have #include "Wire.h" in your code and...

    If you have #include "Wire.h" in your code and your Arduino IDE is building for Teensy Micromod, then yes, you would be using WireIMXRT.h. Looks to me like 136 is just the size of the RX/TX buffers...
  13. I spent some time today thinking about streams,...

    I spent some time today thinking about streams, and I looked at Stream.h in the Teensy cores and a few of the classes derived from Stream, such as HardwareSerial, Client, etc. As an example, I...
  14. I looked at the 1170 manual, and I'm not sure...

    I looked at the 1170 manual, and I'm not sure that POSDPER is what you're looking for. I think it's just a fine time measurement of the time between reads of POSD, as opposed to the time between...
  15. Okay, that helps. First, as far as I know, you...

    Okay, that helps. First, as far as I know, you are the first to try to do this over I2C. If you look at the original FlasherX.ino sketch, you'll see that update_firmware gets called once and only...
  16. I'm not sure of your setup. You say you're...

    I'm not sure of your setup. You say you're passing the file through a T3.6. To what? If the code shown is from the T3.6 that is receiving on Serial, it's incomplete, and you're calling...
  17. Replies
    6
    Views
    264

    Yes, those are defined in i2c_t3.h. What tools...

    Yes, those are defined in i2c_t3.h. What tools are you using, Frank? IIRC you are using PlatformIO. It probably has some good search tools. I use the Arduino IDE to build, but I use Notepad++ for...
  18. My guess is the time you're measuring is very...

    My guess is the time you're measuring is very short because you are measuring the time to write the data to a buffer, as opposed to the time for the data to actually go out on the wire. I think if...
  19. Replies
    16
    Views
    364

    Are you using T4.x? If so, the Wire library has...

    Are you using T4.x? If so, the Wire library has calls to yield() within the while loops that "block" (from the caller's perspective). If you use a threading library that overrides yield() to move on...
  20. Replies
    7
    Views
    167

    I did some work a few months ago on producing 3...

    I did some work a few months ago on producing 3 complementary pairs of PWM signals, and to do that, I had to get into lower level code. For 3 synchronized complementary pairs, you need 3 pairs of A/B...
  21. Would static const array be okay? That should...

    Would static const array be okay? That should scope but not be on the stack.
  22. Replies
    11
    Views
    287

    Just wanted to comment that I've used several of...

    Just wanted to comment that I've used several of BurgessWorld's breakout boards with very good results. Great quality, very fast response. They also do custom work.
  23. Excellent tutorial. Thank you.

    Excellent tutorial. Thank you.
  24. Replies
    7
    Views
    279

    @manicksan, thanks, I have no doubt that...

    @manicksan, thanks, I have no doubt that PlatformIO is superior to Arduino IDE. I use Notepad++ for all of my editing, and just use the Arduino IDE to build. The main reasons I stick with this method...
  25. Replies
    7
    Views
    279

    Yes, PlatformIO has a learning curve. Somebody...

    Yes, PlatformIO has a learning curve. Somebody will be able to tell you how to add a folder to your search path. I have decided to stick with the Arduino IDE, which allows sub-folders in the sketch...
  26. Replies
    8
    Views
    582

    This is good advice. No need to add another MCU...

    This is good advice. No need to add another MCU to get more digital I/O.
  27. Replies
    1
    Views
    159

    Here is one that came up by googling "Teensy...

    Here is one that came up by googling "Teensy SerialFlash Datalogger".

    https://github.com/LAtimes2/DataLogger
  28. Also, v2.1 of FlasherX was released just a couple...

    Also, v2.1 of FlasherX was released just a couple of days ago (see message #166 in this thread). If you're not already using it, update before you begin your modifications.
  29. FlasherX is designed to communicate with the...

    FlasherX is designed to communicate with the client (PC or whatever is sending the code) via RX/TX on a serial port. By default, that is USB (Serial). If you want to use UART (Serial1), you must...
  30. Replies
    8
    Views
    582

    To stop the repeating print, you can use logic to...

    To stop the repeating print, you can use logic to print only when the position changes. Let's say the pins are 1-10. You can define "previous_pin" as 0, set "current_pin" to the pin number of the...
  31. I don't understand your test. Is the T3.6 running...

    I don't understand your test. Is the T3.6 running the FlasherX sketch, or is it running the code you show? For this to work, the T3.6 would have to be running FlasherX.ino. After the last hex record,...
  32. Replies
    8
    Views
    582

    What are you trying to do? If you say more about...

    What are you trying to do? If you say more about your project and your objectives, you might get some good suggestions.
  33. Thanks for writing this up.

    Thanks for writing this up.
  34. FlasherX v2.1

    v2.1 requires TD 1.54 or higher.

    Changes relative to v2:

    update FlashTxx.cpp to delete local T4x wait/write/erase to use functions exposed in TD 1.54
    (eepromemu_flash_write() in TD...
  35. That's great! Can you tell us more about your...

    That's great! Can you tell us more about your implementation? I'm curious if you are using a packetized protocol, and if so, did you roll your own or use an existing library? I'm working toward an...
  36. One more comment on pulse counting versus period...

    One more comment on pulse counting versus period measurement. The T4.x quad timers have a feature that is not exposed in the FreqMeasureMulti library, and that is the ability to define the number of...
  37. You'll probably get a variety of responses to...

    You'll probably get a variety of responses to this question. I'll give you my thoughts.

    Yes, you can set interrupt priorities, and interrupts can be nested, so if you plan to do pulse counting (as...
  38. For T4.0 and T4.1, some of the upper flash is...

    For T4.0 and T4.1, some of the upper flash is reserved for a recovery "blink" program. This reduces the flash available for user programs, so there is less than 2MB available on T4.0 and less than...
  39. You're on the right track, though I haven't...

    You're on the right track, though I haven't studied teensy_size enough to say whether you are right in the details. You do need to multiply your float values by 100 to get percent.
  40. The source code is here...

    The source code is here (https://github.com/PaulStoffregen/teensy_size). Not sure where this gets called in the build process or how you could customize it for your own preferences. Someone else will...
  41. The info above is showing you how much is used...

    The info above is showing you how much is used and how much is free (not used) in each section:

    Teensy 4.1 total FLASH is 8MB = 8*1024*1024 = 8388608 bytes. You have 8065028 free, so % used is...
  42. Replies
    8
    Views
    308

    Yes, gravity depends on location, but 1 g for the...

    Yes, gravity depends on location, but 1 g for the OP's purpose is not defined as local gravity, but as "standard gravity" at the earth's surface (9.80665 m/s^2), and the output of the sensor, for a...
  43. Hmmm. It's not uncommon for 3-axis accelerometers...

    Hmmm. It's not uncommon for 3-axis accelerometers to have lower resolution on the Z axis. I wonder it that is what's going on.
  44. Replies
    8
    Views
    308

    You're right, it's pretty confusing. First,...

    You're right, it's pretty confusing. First, "counts" are just the value you would read from an accelerometer data register. 1 count and 1 LSB and 1 digit are all the same thing. "g" (gravity) and...
  45. Serial.printf("\nChecking for MPU6050 IMU at I2C...

    Serial.printf("\nChecking for MPU6050 IMU at I2C Addr 0x%x\n", MPU6050_I2C_ADDR);
    Serial1.printf("\nChecking for MPU6050 IMU at I2C Addr 0x%x\n", MPU6050_I2C_ADDR);


    Something like this?


    ...
  46. Thanks. The T4.x flash functions...

    Thanks. The T4.x flash functions (wait/write/erase_sector) were taken from cores\Teensy4\eeprom.c. They were not from before T4.1, but I'm not sure which version of TeensyDuino that was. In any case,...
  47. Replies
    6
    Views
    323

    Here is a small program that puts a 4MB array...

    Here is a small program that puts a 4MB array into T4.1 program flash and accesses it at runtime. You can experiment with how frequently you access the array.



    #include "Arduino.h"

    // nested...
  48. Replies
    6
    Views
    323

    Are you asking about external flash in T4.x? ...

    Are you asking about external flash in T4.x? Don’t see how you could define a “variable” in external flash in T3.x.
  49. Excellent. Thanks for that info on T3 and T4...

    Excellent. Thanks for that info on T3 and T4 registers
  50. Yes, it's something like that. I'll have to dig...

    Yes, it's something like that. I'll have to dig into TimeLib to see how that works. Probably an IntervalTimer. I see that T4.x rtc.c has different registers, but it looks like something similar could...
Results 1 to 50 of 352
Page 1 of 8 1 2 3 4