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

Search:

Type: Posts; User: joepasquariello

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Definitely. I should be able to create...

    Definitely. I should be able to create FlasherX-SD, FlasherX-Ethernet, etc., with no changes to FlashTxx.cpp/h.

    FlashTxx.cpp uses macros FLASH_BASE_ADDR, FLASH_SIZE, FLASH_WRITE_SIZE, and...
  2. Interrupts are disabled and hsrun disabled only...

    Interrupts are disabled and hsrun disabled only during the actual flash write/erase operations, which are quite short. When the transfer is complete, interrupts are disabled for the entire duration...
  3. Michael, yes, I agree. I'll start with the...

    Michael, yes, I agree. I'll start with the on-board SD for T3.5, T3.6, T4.1. I've barely used SD, so I may leave it to others to go beyond that.
  4. defragster, yes, I finally looked at...

    defragster, yes, I finally looked at kinetis_hsrun_disable(), and it's only relevant for CPU_F > 120 MHz, so, the calls to hsrun_disable/enable in FlashTxx.cpp don't do anything on LC, T3.2, or T3.5,...
  5. Thanks, Jon. My use of the Stream class was...

    Thanks, Jon. My use of the Stream class was purely to allow switching between Serial (USB) and Serial1 (UART) without touching update_firmware(). I intend to develop Flasher capability for Ethernet...
  6. FlasherX - OTA updates for Teensy LC, 3.x, 4.x

    FlasherX is a merge of Flasher3 and Flasher4 by Jon Zeeff, with some new features and updates. It works for Teensy LC, 3.2, 3.5, 3.6, 4.0, and 4.1, with a few caveats. I tested 3 transfer methods for...
  7. Replies
    5
    Views
    171

    The Modbus RTU client uses the default RS485...

    The Modbus RTU client uses the default RS485 object from ArduinoRS485, and that library uses macros for default TX/RX pin assignments. The library documentation isn't very complete, but it looks like...
  8. Replies
    86
    Views
    7,223

    @defragster, point taken, and I agree with you. I...

    @defragster, point taken, and I agree with you. I was merely adding a voice to the comments by @beermat and @RoSchmi.
  9. Replies
    86
    Views
    7,223

    I'm also interested in any improvements to...

    I'm also interested in any improvements to @vjmuzik NativeEthernet and the eventual merging of native ethernet support into TeensyDuino.
  10. Replies
    5
    Views
    319

    Very interesting. Nice work, @Fenichel.

    Very interesting. Nice work, @Fenichel.
  11. Okay, good. Glad it's working for you.

    Okay, good. Glad it's working for you.
  12. In the begin() function, you are referencing the...

    In the begin() function, you are referencing the "X" registers in the cases for the "A" and "B" timers. Check again versus what is in my earlier post, and I think that will be enough to allow you to...
  13. @chase1873, back to your original question, how...

    @chase1873, back to your original question, how to do something like FreqCount on multiple channels. I don't see any libraries with that capability, but you could do it via the T4.x Quad Timer...
  14. Per my post above, I experimented with enabling...

    Per my post above, I experimented with enabling the edge count/compare capability for the FlexPWM timers in FreqMeasureMultiIMXRT.cpp, and I got it to work. I'm sure this feature can be folded into...
  15. I tested with a fix that is pending for...

    I tested with a fix that is pending for FreqMeasureMulti (see below), and I got good results on 3 channels up to 500 kHz, or one channel up to 2 MHz, but definitely this library as is cannot handle 4...
  16. Replies
    58
    Views
    3,250

    Just a reminder of a pull request on...

    Just a reminder of a pull request on FreqMeasureMulti with a bug fix for incorrect read of capture registers for T4.x

    https://github.com/PaulStoffregen/FreqMeasureMulti/pull/13
  17. dropshot, if you're okay with the "upper half of...

    dropshot, if you're okay with the "upper half of flash" approach, see the link below for a solution for T3.x. The reason I wanted it was the same as yours, i.e. to be able to update an embedded...
  18. Seconding brtaylor's comment. Since you have the...

    Seconding brtaylor's comment. Since you have the R-Pi in the system, much better to use it, especially if you plan to go from Teensy 3.6 to Teensy LC.
  19. Replies
    5
    Views
    327

    The application board has a reset chip (DS1332A)...

    The application board has a reset chip (DS1332A) that holds low the reset line of the original processor module until the 3.3V is above some value. We can't use that signal the same way with T41, but...
  20. Replies
    5
    Views
    327

    Thanks very much. Is there any problem with...

    Thanks very much. Is there any problem with connecting the T4.1 to a board that has a separate 3.3V supply? The supply on the board is what will be powering the I/O devices to which the T4.1 is...
  21. Replies
    5
    Views
    327

    T4.1 External Power Question

    I'm a software person trying to learn more about hardware design. I want to build an adapter to use T41 in place of another processor module. The adapter will have a socket for T41, and it will plug...
  22. Pull Request actually just issued last night....

    Pull Request actually just issued last night. That was my first pull request, and I had to figure out what I was doing. What I did on 3-23 was open an "Issue".
    ...
  23. You can also measure within your code using...

    You can also measure within your code using millis(), micros(), or ARM_DWT_CYCCNT for clock cycle resolution.

    uint32_t start, stop, delta, min=0xFFFFFFFF, max=0;
    loop() {
    start = micros();
    ...
  24. Just issued a Pull Request on Paul's GitHub...

    Just issued a Pull Request on Paul's GitHub repository for FreqMeasureMulti.

    Please disregard my comment in previous message about initialization of INIT and VALx registers in function begin()....
  25. Will do. I'll wait a day and see if I get any...

    Will do. I'll wait a day and see if I get any other feedback here.

    The initialization of VAL0-VAL5 in begin() seems to be unnecessary, as those registers are associated with PWM and not with the...
  26. I'm rather new to this. Do I simply put this same...

    I'm rather new to this. Do I simply put this same info in the pull request?
  27. I tested the 3-PWM example sketch. Here is the...

    I tested the 3-PWM example sketch. Here is the output before the fix:

    60.02, 100.03, 199.90
    59.97, 100.04, 200.07
    60.03, 99.95, 200.07
    59.97, 100.04, 199.97
    60.02, 99.95, 199.90...
  28. FreqMeasureMulti for T4.x -- Bug Report/Fix

    I'm pretty sure I have found and fixed a bug in FreqMeasureMultiIMXRT.cpp. Please take a look.

    In FreqMeasureMulti::isr(), when the capture interrupt occurs (as opposed to the overflow...
  29. Yes, you can use the approach within Flasher3 for...

    Yes, you can use the approach within Flasher3 for your OTA solution. Think of Flasher3 not as a production solution, but as an example of how to write new firmware to Flash once you have (somehow)...
  30. Replies
    16
    Views
    2,849

    luni, thanks very much for the update. I'm...

    luni, thanks very much for the update. I'm running it now and it's working fine. The data below shows the rollover. Note the delta stays the same during rollover.

    Just one note, where you have...
  31. What Frank said. If you need to do updates via...

    What Frank said. If you need to do updates via Ethernet, work on getting Ethernet communication working, and you'll be able to combine with Flasher to do firmware updates that way.
  32. Replies
    16
    Views
    2,849

    @luni, great library. Thanks very much for making...

    @luni, great library. Thanks very much for making this available. I am using EncSim to simulate output of an optical encoder on a generator, and I need the signal to continue forever, as opposed to...
  33. Replies
    178
    Views
    30,910

    Oops. You're right.

    Oops. You're right.
  34. Replies
    178
    Views
    30,910

    The differences between A0 (A) and A1 (B) silicon...

    The differences between A0 (A) and A1 (B) silicon are described in this document

    https://www.nxp.com/docs/en/nxp/application-notes/AN12146.pdf
  35. Increase Code Size with const arrays

    I needed large hex files for testing on T3.x, and used this approach to increase code size. Thought I'd share in case anyone can use such a thing. Is there a shorter/easier method?

    //nested arrays...
  36. I've built a new version of Flasher to allow the...

    I've built a new version of Flasher to allow the largest possible upload by identifying empty sectors from the top of existing firmware to the bottom of flash reserve. This eliminates the need to...
  37. @gonzales, yes, you're right. I simply replaced...

    @gonzales, yes, you're right. I simply replaced FLASH_SIZE/2 with FLASH_BUF_ADDR everywhere. In that case, the original code should have been (FLASH_SIZE - FLASH_SIZE/2 - RESERVE_FLASH) and the new...
  38. @the_boss, yes, you could adapt this serial...

    @the_boss, yes, you could adapt this serial download/flash process to Ethernet. The same person (jonr) who wrote the original Flasher program for T3.x has also written Flasher4, for T4.x, which you...
  39. In the SMALL program source code, you should have...

    In the SMALL program source code, you should have FLASH_BUFFER_ADDR = (FLASH_SIZE / 4)
    In the LARGE program source code, you should have FLASH_BUFFER_ADDR = (3 * FLASH_SIZE / 4)

    Is that what you...
  40. Here is Flasher3d.zip. This version lets you set...

    Here is Flasher3d.zip. This version lets you set FLASH_BUFFER_ADDR (in file FlashT3x.h). I have only tested on T3.2 so far. The size of Flasher3d is about 42K, so I have set FLASH_BUFFER_ADDR =...
  41. Yes, it's possible. I did a test by replacing all...

    Yes, it's possible. I did a test by replacing all instances of (FLASH_SIZE / 2) with a new macro FLASH_BUFFER_ADDR. First, I defined FLASH_BUFFER_ADDR = (FLASH_SIZE / 2), so that's the same as...
  42. @gonzales, you are on the right track. Code size...

    @gonzales, you are on the right track. Code size limit is 1/2 of flash size, but the hex file is much larger due to all of the overhead of the hex file format. If you have the hex file on your SD...
  43. Replies
    205
    Views
    18,697

    Thanks for the info, @mlewus. I'm sure it's just...

    Thanks for the info, @mlewus. I'm sure it's just a matter of investing the time to get past the initial hurdles. One of these days I'll give it another go.
  44. Replies
    205
    Views
    18,697

    @mlewus and @mkingforger, can you comment on the...

    @mlewus and @mkingforger, can you comment on the process of updating your VSCode/PlatformIO environment when there is a new release of Arduino and/or TeensyDuino? I tried VSCode/PlatformIO twice,...
  45. Replies
    16
    Views
    1,053

    Thank you. I'm glad I asked.

    Thank you. I'm glad I asked.
  46. Replies
    16
    Views
    1,053

    I'm not experienced in electronic design, but...

    I'm not experienced in electronic design, but I've been curious about using Teensy 4.x in retrofit applications with 5V devices, including SPI. NXP's latest level shifters support 5V to either 3.3V...
  47. The hex lines below from a T3.6 hex file show the...

    The hex lines below from a T3.6 hex file show the 4-byte record at AD78 that breaks the 64-bit alignment. Further below are lines from the symbol file. AD78 is .fini (language cleanup code), which is...
  48. Thanks for letting us know, Frank. That's good...

    Thanks for letting us know, Frank. That's good news. I'd like to understand why the hex files always have the same pattern of record lengths ...16,16,16,8,4,16,16,16... There must be reason those...
  49. Flasher3c.zip is attached. This update accepts...

    Flasher3c.zip is attached. This update accepts the as-built Teensy hex files and so avoids the need to pre-process to get 64-bit aligned hex records for T35/T36. The differences from Flasher3b are...
  50. Thanks for letting us know, Frank. I will update...

    Thanks for letting us know, Frank. I will update IntelHex to handle larger files so that you don't have to hand edit.
Results 1 to 50 of 121
Page 1 of 3 1 2 3