A
Reaction score
10

Latest activity Postings About

    • A
      Thanks for the support! I will try to incorporate RS-232 on my next circuit design. Right now, it doesn't have the space or connections for the needed RS-232 transceiver, like the MAX3232. I will try to solve the issue with the diodes and the...
    • A
      Yes, just like that. It should be on the teensy4 side between the part being protected and the connector. You are protecting against invalid voltages on the connector so it needs to be after the connector. It's a serial port, it's not that high...
    • A
      Does the connector have a design that ensures the ground pins mate first? Generally when hot plugging you want ground to connect first then power and only then the signals. If power and your data signals somehow connect before the ground it can...
    • A
      AndyA reacted to WMXZ's post in the thread Schematic different with Like Like.
      @AndyA. The prev message (WillimamsimC) seems ChatGPT generated an should, MHO, be considered Spam
    • A
      Thanks a lot! Wish I would have known this feature long time ago... Paul
    • A
      Windows 95 would have been the first time they did that. I'm fairly certain windows 3.11 still used the dos term and called them directories. So the jokes on you, it's only been 29 years... I remember telling someone to enter something on the...
    • A
      I'd agree that most source control tools involve a learning curve and hassle that simply isn't worth it for a lot of casual projects. But source control is a bit like backups, it's unnecessary, annoying and not worth it until it's too late. And...
    • A
      AndyA replied to the thread CANFD buffer only reading 8bytes..
      In the setup code add the line myFD.setRegions(64);
    • A
      AndyA replied to the thread Schematic different.
      Most development programming is done via JTAG or something like the ARM single wire debug interface. In effect the programming circuit is built into the main chip together with a fairly powerful debug interface. This saves the cost of an extra...
    • A
      No. Windows has plenty of source control tools available, it would be impossible to do any meaningful development on windows if it didn't. And every version of windows / MS-DOS ever released has had directores. I suspect this is a terminology...
    • A
      Same way you would for anything else. Source control tools like git archive all the requested files / directories, they don't care what the files are. All you need to do is start the archive one directory higher up the tree.
    • A
      The approach I've adopted is to have a different sketchbook location directory for each project. These may contain a couple of related sketches for the same hardware (e.g. for one I have a bootloader and a main application) but are different for...
    • A
      If there was only one or two uarts 512 bytes would be fine. But there are 8 ports, two buffers per port that's 8k of RAM which is completely wasted for most applications. That's enough memory that you don't want to just throw it away to make life...
    • A
      AndyA replied to the thread Multiple SPI at the same time.
      The standard SPI functions block for the time taken to send the data since they are also reading the reply. The actual hardware has a buffer so if the only time critical situations are fairly short writes you could write the data into that...
    • A
      There are two buffers for each direction for each uart, one in the physical hardware and a software buffer that is managed in the libraries. The physical hardware buffers are 4 bytes long, as bytes are received they are automatically placed in...
    • A
      It is certainly possible. At one point I created a USB rickroll device, it would pretend to be a keyboard and turn on caps lock. When capslock was turned off (because someone was using the computer) it would detect the LED change, wait 30 seconds...
    • A
      No, it'll just work.
    • A
      Assuming you're using the arduino IDE then in the tools menu there is an option to select the CPU speed. For other tool chains there should be a similar option somewhere. Assuming you pick from the list given by the tools then everything else...
    • A
      Any reason you need to clock it at 600MHz? Unless you're using CAN FD the maximum data rate on a CAN bus is pretty low. To be fair, even with CAN FD it's still fairly low in comparison to what the Teensy processor can handle. You could probably...
    • A
      Any reason you didn't look at using the FlexIO interface to reduce the CPU loading slightly? If you pick the correct pins you can get 16 bits wide that way. I've used that to run an 8 bit parallel bus at 120 MHz without any issues, in theory it...
    • A
      The Teensy using the wrong port doesn't explain the junk output. You should at least be getting "Message Received:". Double check the baud rate settings on your terminal that is viewing the output.
    • A
      AndyA replied to the thread Teensy 4.1 "dual boot" capability?.
      And one further addition found due to it not working in a different system: If there is data coming in constantly on external interfaces you also need to disable all user space interrupts before rebooting. But not by using __disable_irq(). Post...
    • A
      AndyA replied to the thread absence.
      If you want to manually trigger the set series of actions then a physical button is probably the easiest way to do it. They can't detect something that's not on the computer. If you want the PC running the game to trigger a set series of actions...
    • A
      I had recently wanted to reset EEPROM in a T4.1 for a similar reason, but within my application. The code shown below does that using functions in eeprom.c and runs in a little under one second, but keep in mind it is not equivalent to the full...
    • A
      Thanks. All tested and working as expected :-)
    • A
      Yes, hold the pushbutton for 15 seconds. Watch the red LED near USB. When you see a quick blink, you're at 13 seconds which is the beginning of a 4 second window to release the button and trigger full erase and restore of the original LED...
    • A
      I have an application that uses the EEPROM library for storing various settings. Since the teensy has been used for development it will already contain data in the eeprom if I update the code. I'd like to verify that everything works correctly on...
    • A
      AndyA replied to the thread Teensy 4.1 "dual boot" capability?.
      One additional detail. Before jumping to the new application include the line SYST_CSR = 0; // turn off system tick For simple applications this isn't needed. But if your application includes ethernet support then it'll crash on startup without...
    • A
      When not selected the outputs of that part are high impedance, do you have pullups/downs on the data lines for the individual LED chains? If not when not selected they will be floating, I could believe that in that situation crosstalk / glitches...
    • A
      Their idle state is to maintain the current colour. So as long as you don't need need a fast update rate it doesn't matter if the signal is sitting in an idle state while you talk to the other strips. You just need to make sure you wait until the...
    • A
      Start with the silly questions: Did you try removing the ; after if (digitalRead(1) == HIGH) ? You're currently completely ignoring that if and always setting EngFail to 0. You enable the pullup on the input but then check for the input being...
    • A
      Given 8 possible outputs you would need 3 pins of addressing and 1 pin of data as an absolute minimum unless you add some form of external memory either in the form of a processor or a latch of some sort. You could do it in 4 pins using...
    • A
      AndyA replied to the thread Teensy 4.1 "dual boot" capability?.
      Partly in case you need it and partly for anyone finding this thread later on, here's a somewhat stripped down block of code. If your second application was built to start at an address 0x100000 into the flash (when it was built FLASH in the .ld...
    • A
      AndyA replied to the thread Teensy 4.1 "dual boot" capability?.
      Yes, you could make it so that the code for mode 1 checks for the mode 2 flag and jumps to that code on startup. That would indeed cut it down to only 2 applications you need to build. The nice thing about doing it this way is that once the...
    • A
      May be a little overkill but how about something like this: Read the pressed() value for each key (true if it's just been pressed) and the isPressed() value (true if it's currently being pressed) By using both pressed and isPressed you only see...
    • A
      AndyA replied to the thread Teensy 4.1 "dual boot" capability?.
      @TravisSmith Not sure how helpful this would be for you but I've been working on a bootloader type application for T4.1 We have self updating firmware (using the flasherX library) but needed a way to recover if power failed half way through an...
    • A
      We're already using ESP32's in a number of places, generally using the espressif environment rather than arduino. A lot of the places we've used them we don't even have wifi / bluetooth, one of their big selling points. They are cheap, relatively...
    • A
      Probably not, more experienced developers will be used to good debug tools. Once you get used to having a full IDE with debugger it's hard to go back. We have hit similar issues. Using teensy makes it easy to get started and get the core...
    • A
      Sorry, no experience on the Mac side. :-(
    • A
      I think that SDIO Storage 0 254 sdio 0 0 is indicating that the built in SD card interface is mounting the card correctly, taking a quick look at the example code I think the second error is attempting to mount an SPI connected SD card which you...
    • A
      Sorry not sure on why you're not seeing it. The example for MTP_Teensy worked for me without any issues but that was on a PC. Could you test connecting it to with a windows box just in case it's a MAC related issue? You'll probably find it not...
    • A
      I'd probably still use sendEvent for that although this may be a good fallback option. Another element of this is making some horrible hacks to the USB drivers so that the USB device type can be changed on the fly. We don't normally want to...
    • A
      Teensy's USB stack doesn't really support fully reinitializing all its internal variables. With that in mind, here's an imperfect way. extern "C" void usb_init(void); void setup() { while (!Serial) ; // wait Serial.println("Hello World...
    • A
      Thanks, that got it.
    • A
      Possibly. But ideally I'd like to trigger this from the teensy itself. This is part of an attempt to automate some testing systems, the more I can build into the teensy rather than relying on operators or software running on the PC the better...
    • A
      Unfortunately not, I need to keep the rest of the system running, but make the host PC think it's been removed and re-connected.
    • A
      I know this is a bit of an odd question but does anyone know of a way that I could force windows to re-scan / re-enumerate the teensy 4 USB device as if the cable had been disconnected and re-connected? I've tried re-initialising the USB...
    • A
      I'm hardly an expert on this but I think you need to use the tone functionality not the notefreq function. notefreq is designed to find the main frequency of a sound. You are looking for a tone made up of two different frequencies, it'd not going...
    • A
      I assume R3 is fitted so that the enable input isn't floating? Unfortunately I can't see any obvious smoking guns. :-( Everything below this is more personal opinion than facts, it's intended as feedback rather than criticism so please don't...
  • Loading…
  • Loading…
Back
Top