KurtE
Reaction score
743

Latest activity Postings About

    • KurtE
      Already did msg 17:)
    • KurtE
      POINTERS WORK! - skipped this for reading example code ... found and tested ... It is now back and working on the original board from @KenHahn Downloaded the ZIP and pulled JUST the SerialFlashChip.cpp file to this system and it works...
    • KurtE
      https://github.com/PaulStoffregen/SerialFlash/pull/99
    • KurtE
      Did you try my GitHub version in msg #11, I changed reference to pointer and begin method sets it to address of reference passed in. Like many of our other libraries
    • KurtE
      Back to my question about reference versus pointer... For the heck of it, try my quick and dirty fork/branch: https://github.com/KurtE/SerialFlash/tree/use_ptr_not_reference Again unclear to me what assigning one reference to another, but for...
    • KurtE
      Looking at SerialFash library, my c++ stuff is a bit vague on some stuff. In particular object references. That is the cpp file has: static SPIClass& SPIPORT = SPI; and the begin method has: bool SerialFlashChip::begin(SPIClass& device...
    • KurtE
      Interesting how the quote of this ... But wondering about: SPI1.setCS(FLASH_CS); Is the Serial Flash library assuming that the CS pin is controlled by SPI? That is asserted/deasserted I believe on each byte? Especially since you also have: if...
    • KurtE
      It has been a while since I have played with the touch. Wonder if it or the flash chip are holding onto the MISO signal? Would also double check that CS pins are correct at the time you are trying to access each of them. Also, when I have...
    • KurtE
      Hi and Welcome, Looks like you chose an ILI948x board that is setup to run in parallel mode. Most of the Arduino libraries have been setup to update the display using SPI. A while ago, a few of us experimented with setting up some parallel...
    • KurtE
      For those who may want to look at the posted data, you can download the software without having to own one of their logic analyzers https://www.saleae.com/pages/downloads
    • KurtE
      As @joepasquariello mentioned - SPI works full duplex... And there are lots of examples of code that uses DMA. For example, most of our display drivers have DMA output. Most of them don't do much if any DMA input. The SPI library has a DMA...
    • KurtE
      KurtE replied to the thread Arduino : Downloading index.
      quickly is a relative term 😆. Still can take a while. But least it will complete. There is also the ability to disable all of this. I don't remember the settings (have not used it), nor once you disable the automatic how you trigger it to...
    • KurtE
      KurtE replied to the thread Arduino : Downloading index.
      By default, it downloads the indexes each time you start the IDE where the delta time is > timeout from the last download. It does not take 5 minutes to download the Teensy, it simply does not update the message from downloading the last index...
    • KurtE
      Glad it is working
    • KurtE
      // configure the 8 port C output pins GPIO9_PSR = 0xFF; //changed GPIOC_PCOR maybe incorrect pinMode(15, OUTPUT); //C0 pinMode(22, OUTPUT); //C1 pinMode(35, OUTPUT); //C2 //was 23 pinMode(9, OUTPUT); //C3 pinMode(10, OUTPUT); //C4...
      • 1732805584644.png
    • KurtE
      KurtE reacted to yeahtuna's post in the thread Help understanding ResolveLibrary() with Like Like.
      It was c++\5.4.1. Changed it back and all is fine again. I'm not sure if it was me, the cat, a buggy OneDrive update, or something else. Thanks for the help guys. I was pulling my hair out yesterday.
    • KurtE
      I would try something like: https://www.pjrc.com/teensy/td_157/TeensyduinoInstall.exe
    • KurtE
      That directory name does not look right c 1\5… maybe should be \c\15.4.1? sorry not at computer
    • KurtE
      Ordered one: https://www.amazon.com/Hosyond-480x320-Display-ST7796S-Mega2560/dp/B0CKRJ81B5 Looks like same pinout as ILI9341 and ILI9486 displays, so should be easy to plug in...
    • KurtE
      Which display is this? Have a link to it? You might try the one: // OR use this initializer (uncomment) if using a 2.0" 320x240 TFT: //tft.init(240, 320); // Init ST7789 320x240 EDIT: What display is this? 320x480 sounds more...
    • KurtE
      KurtE replied to the thread Teensy 4.0 - Corrupted Serial Data.
      Sorry, I have not done much of anything with CAN. Hopefully one of other members who use it can give some advice. Not sure if you are allowed to still edit the above message header, but maybe mentioning CAN might get more attention from those...
    • KurtE
      Two parts here I think: Vendor/Product ID: I don't know about the file usb_private.h... That was a long time ago. But with current releases, I believe that is defined in usb_desc.h With board manager, the board installs are in the "Arduino15"...
    • KurtE
      Sorry, I still do not understand your setup... That is, the github project I linked to above has the following stuff in the src directory In cases like this, it is hard to know what is going on, without seeing more of the build output. For...
      • 1732280187715.png
      • 1732280550559.png
      • 1732280773707.png
    • KurtE
      It works fine for me. Have done most of our stuff with the T4.x... Unclear what you mean by the above statement. How did you put them in the Arduino Libraries? That is did you simply copy those two files into another directory or, did you for...
    • KurtE
      KurtE replied to the thread Teensy Loader stand alone.
      Note: The first time I searched for it, which is not difficult to find... I then pinned it in my file explorer: Nice thing with having several of the places you might go to here, if you have Windows Terminal installed, you can then simply...
      • 1732214704800.png
      • 1732214956279.png
    • KurtE
      KurtE reacted to defragster's post in the thread Teensy Loader stand alone with Like Like.
      "Windows / Start Key" + "R" In the "Run' box enter : %LocalAppData% This Opens File Explorer to 'your_user' Then something like: "C:\Users\your_user\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\0.60.3\teensy_post_compile.exe"
    • KurtE
      KurtE reacted to onre's post in the thread Unix on Teensy 3.5 with Like Like.
      First, a disclaimer: I'm doing this for fun, not because it made any particular sense. For background, I've dabbled with embedded systems as a hobby for some time. I've mostly made things that work together with my modular synthesizer setup...
    • KurtE
      KurtE replied to the thread Print signed int.
      0xffff is 65535 on a 32 bit signed integer.. You might try it on int32_t
    • KurtE
      Just did that here the other day and it worked - with the BIGBUFFER edit as noted - T_4.1 default is 512 and the code in the example won't connect - once I swapped those lines it worked. // USBSerial userial(myusb); // works only for those...
    • KurtE
      Quick and dirty experiment. I programmed a T41 with: uint32_t loop_count = 0; elapsedMillis emBlink; void setup() { // put your setup code here, to run once: pinMode(LED_BUILTIN, OUTPUT); while (!Serial && millis() < 4000) {}...
    • KurtE
      Unless someone else like @PaulStoffregen beats me to it, I will try to take a look soon. Currently playing around with the GIGA, and seeing how hard it would be to support something like Dual Serial... I now have a test sketch with copies of...
    • KurtE
      KurtE replied to the thread SerialUSB1 faster than Stream*.
      Note: The Print Class (which Stream ... derives from), has the method: virtual size_t write(const uint8_t *buffer, size_t size); I don't believe that the class: class usb_serial2_class : public Stream ... extern usb_serial2_class SerialUSB1...
    • KurtE
      Haven't used it yet in any projects but based on testing using Madgwick Fusion algorithm seems to work well. With the other filters I tested I never fine tuned the gains for the combo so jury is out with using those but expect them to work when...
    • KurtE
      Let us know how it works out for you. Oh, by the way I ordered a set of these cables from Amazon to make it easier to connect to the Teensy: https://www.amazon.com/dp/B074MDM36N?ref=ppx_yo2ov_dt_b_fed_asin_title
    • KurtE
      It should work, however, by default, the USBSerial object only supports those Serial ports that are USBLS or USBFS (i.e. buffer size == 64) So if you plug in a T4.x into it, it probably won't connect. However if you change: to using...
    • KurtE
      I agree with Mark... But in addition, you might also show a picture of the setup. For example it might show that one or more pins have not been soldered, or there is a short...
    • KurtE
      Here is a quick and dirty sketch that emulated your input data... class FOO : public Stream { public: FOO(const char *sz) : _psz(sz) {} virtual int available() { return strlen(_psz); } virtual int read() {...
    • KurtE
      You can probably get more people involved in this conversation if you invest just a small amount of extra effort to make running your programs easier for everyone. First, copy the whole program. It's easy, just Ctrl-A to select all and Ctrl-C...
    • KurtE
      As I mentioned in the previous post. Your file does not contain 4 bytes of data, but instead it contains the Ascii representations of your 4 numbers: Like the code that generated this file did something like: file output of the string "254...
    • KurtE
      I am guessing your file is wrong... Also your current test sketch is outputting each character 8 times... So: if you take the first set of characters you have: 50 53 52 32: Which as ASCII characters are: '2' '5' '4' space. So whatever...
    • KurtE
      Thanks Kurt. Almost forgot. I put together a sketch that combines several AHRS methods that can be tested with the MPUT-9250 or the M5Stack Board: // Set filter type: // 0 = Madgwick implementation of Mahoney DCM // 1 = Madgwick Gradient...
    • KurtE
      Great stuff
    • KurtE
      Lately been trying to consolidate/organize my IMU efforts and decided to grab a couple of new sensors that are used on the Nano Sense V2, the BMI270/BMM150 specifically. For reference Sparkfun has a BMI270 sensor and Waveshare has a BMM150...
    • KurtE
      Lets talk calibration now that I slept. 6-point Calibration: Back in 2018 while experimenting with using @brtaylor's uNav INS code @Don Kelly developed a 6 point cal tool for the MPU-9250 which he updated in following posts. I have since...
    • KurtE
      KurtE reacted to mjs513's post in the thread MTP file size limits. with Like Like.
      Ok for those of you interested here is some output from the mods so far Note other than reconfiguring haven't looked at code yet but looks like RAM1 and prog storage is off. Also SD card not detected (micromod sdio) RAMDISK Storage 46080 bytes...
    • KurtE
      KurtE replied to the thread MTP file size limits..
      Makes sense to me... Sorry, there are probably lots of other details from before that I have forgotten. More on this below: Personally, I would suggest that may be premature... If it were me, I would suggest to maybe start off, inverting...
    • KurtE
      KurtE reacted to mjs513's post in the thread MTP file size limits. with Like Like.
      Just a bit of warning about use of "Store" or StorageID. From what I remember its only really demonstrated in mpt-test-integrityV2. Why was this? As mentioned in an earlier post the storage index is automatically placed on the first...
    • KurtE
      KurtE reacted to PaulStoffregen's post in the thread rawhid can't used at MacOS Sonoma with Like Like.
      Wow, that file is so old it's compiled for 32 bit Intel and 32 bit Power PC chips! Pretty sure it can't possibly work on MacOS newer than Mojave (10.14). It was probably last actually tested (by me) in the days when Apple named their MacOS...
    • KurtE
      Sorry, I am not really setup to do Mac host development. My only Mac is a 12+ year old iMac. Also, as this thread and corresponding pull request is something like three years old and has not been merged, my assumption is that it probably won’t...
    • KurtE
      KurtE replied to the thread MTP file size limits..
      It has been a few years since I played with that part of the code. So there are lots of details that I foggy on. I remember the original code would fail if the first storage added was not in place or Read only or out of disk space... For...
  • Loading…
  • Loading…
Back
Top