Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • KurtE's Avatar
    Yesterday, 09:53 PM
    Sorry I am not sure what exactly you are asking. If I am understanding correctly, you somehow have an RPI that is connected to a Teensy, and you wish for the Teensy to plugged into another computer? and act like a...
    1 replies | 17 view(s)
  • KurtE's Avatar
    Yesterday, 05:29 PM
    Hard for anyone to help you without any additional information. Like: What library is take2? Do you have a link for it? What example programs? Maybe include unless again they come directly from the take2 library...
    1 replies | 17 view(s)
  • KurtE's Avatar
    Yesterday, 04:02 PM
    It has been awhile since I downloaded previous versions, but: Again not sure which platform you are using, by example windows, current download: https://www.pjrc.com/teensy/td_146/TeensyduinoInstall.exe So to try...
    17 replies | 247 view(s)
  • KurtE's Avatar
    Yesterday, 02:14 PM
    Which version are you trying out? The version installed by Teensyduino? Which appears to match Paul's version: https://github.com/PaulStoffregen/Adafruit_RA8875 Which github says is something like 55 commits behind...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    Yesterday, 01:48 PM
    @defragster - Thanks, with PWM it is pretty easy as the tables were already there, just needed to add 6 new items at the end. Most of the information for these table entries are in my excel document. and @others,...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    Yesterday, 01:10 PM
    Sometimes hard to say without seeing more data. Some of the first steps I typically advise is to compile the usbhost_t3 library to output debug information. You can do that by editing USBHost_t36.h file and about...
    3 replies | 40 view(s)
  • KurtE's Avatar
    06-15-2019, 10:04 PM
    Interesting question is how best to handle libraries like these. Sumo toy has not logged in for something like 2 years. Also has not updated many of these for several more... Edit: And if by chance sumotoy(Max) is...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-15-2019, 04:05 PM
    If you are talking about: https://www.pjrc.com/teensy/techspecs.html The line: talking about I2C ports? An I2C port has two pins associated with it: SCL (clock) and SDA (data) Each of these ports can connect to...
    3 replies | 35 view(s)
  • KurtE's Avatar
    06-15-2019, 03:00 PM
    @mjs513 - Thanks, I knew they were, as they show up in my excel document: 34 SD_B0_03 2.15 Serial5(8) RTS SPI2(1) MISO PWM1_B1 IO-07 DATA1 35 SD_B0_02 3.14 Serial5(8) CTS SPI2(1) MOSI PWM1_A1 IO-06 DATA0...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-15-2019, 02:18 PM
    Fixed PWM pins for SDCards: https://github.com/PaulStoffregen/cores/pull/381 Tested with: void setup() { pinMode(13, OUTPUT); analogWriteFrequency(34, 100); analogWriteFrequency(35, 100); ...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-15-2019, 01:15 PM
    @PaullStoffregen and @others ... Again looking at backside of card... Reminds me that all of those SD card pins are PWM capable and looking at pwm.c the tables only go up to pin 33... Not sure what would happen...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-14-2019, 11:14 PM
    As mentioned the SPI library only supports master mode. But the chips do support slave mode. If you do a search on google like: teensy spi slave You will see several thread that hit, plus a few libraries: Like:...
    14 replies | 137 view(s)
  • KurtE's Avatar
    06-14-2019, 08:33 PM
    The ISR page you mentioned is for the older Teensy 2 which is also AVR based. Yes Teensy 3.x (and soon to be Teensy 4) also support Interrupts and have a set of interrupts... The SPCR, SPSR, SPDR objects that...
    14 replies | 137 view(s)
  • KurtE's Avatar
    06-14-2019, 02:51 PM
    The ribbon is installed pointing toward the USB input plug. He did a hard bend down of the cable and then it runs back under the T4, where he has a matching connector on breakout board the front (usb connector). It...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-14-2019, 02:44 PM
    @mjs513 - Thanks. I guess the real question is should HardwareSerial stuff try to use the same settings as pinMode would give by default. Or should it go to some "Fast" mode? @PaulStoffregen and all... This...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-14-2019, 02:49 AM
    OK, I updated the serial port code to enhance the internal tables (structures) to allow two RX and two TX pins... The ports default to using the first one defined... It appears to work. While testing this with my...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-13-2019, 07:32 PM
    Easier - Maybe - But should not take me much time, to update the code/tables to make it work. I will try to get that done in the next few days.
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-13-2019, 05:17 PM
    @marcmerlin - Many of us have been there, done that... (more or less) - I have seen magic smoke more than once... Example try plugging in 12v wall wart into an UP board who want's 5v... (Same connectors on both wall...
    49 replies | 12170 view(s)
  • KurtE's Avatar
    06-13-2019, 01:29 PM
    Thanks Paul, Will try that if trying to solder on new connector fails... Found some reasonably cheap ones up on Amazon, which should arrive tomorrow. I figured if that failed, (too much of the pads gone?), would...
    2 replies | 61 view(s)
  • KurtE's Avatar
    06-13-2019, 01:21 PM
    @PaulStoffregen - Back side of card. Probably need the warning like T3.6, that no pins are 5v tolerant.... Also I noted: you put in the Serial5 alternate Tx/Rx pins... I suppose I should probably implement that...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-13-2019, 01:03 PM
    Comments to some of the other comments.. ili9341_t3 - Does not compile... I made a version of it that will run on T4..... I have a version that does run on T4... In Pull Request:...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-13-2019, 12:50 PM
    I was going to suggest doing something else with PWM pins as well. First suggestion was to simply mark with P instead of PWM... Or maybe just a PWM color band right next to the digital pin marking... ...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-13-2019, 12:26 AM
    Sorry, I know this is off topic... But yesterday we purchased new deck furniture... And one part had some crushed leg ends... So I thought I would get out my older Printrbot Metal 3D printer and and tried to hook it...
    2 replies | 61 view(s)
  • KurtE's Avatar
    06-12-2019, 02:08 PM
    Adding empty inline functions for T3 might not be bad idea... Will probably need to document this pretty well, as I am not sure how many places this will hit. If it were just DMAMEM - than user had already...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-12-2019, 01:47 PM
    @PaulStoffregen - I probably should just look ;) But I know one of the issues before was if you did something like: DMAMEM uint8_t frame_buffer; ... memset (frame_buffer, 0, sizeof(frame_buffer); do DMA to...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-12-2019, 01:39 PM
    Did quick check with Serial repeater test app, and reenabled the call to availableForWrite and it runs!
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-11-2019, 11:59 AM
    Unless there has been a very recent update, Paul has only implemented USB serial...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-10-2019, 12:48 PM
    Sorry, I am not sure what you are asking? Would really help to actually have an idea of which library or libraries you are having issues with? The Arduino build process has a set of directories it looks for...
    3 replies | 85 view(s)
  • KurtE's Avatar
    06-09-2019, 11:41 PM
    Hi @wwatson - It has been awhile since we played with it, but Mike does have the driver: https://github.com/mjs513/ILI9488_t3 Which I believe I tested on SPI2 of the T4 (I think it was with the T4B1...) maybe should...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-09-2019, 04:47 PM
    You might do a search on the forum: like __throw_bad_alloc You will find postings like: https://forum.pjrc.com/threads/53358-Undefined-Compiler-Errors-help-can-t-figure-out-why?highlight=__throw_bad_alloc
    2 replies | 86 view(s)
  • KurtE's Avatar
    06-09-2019, 02:37 PM
    @all I thought I would look at the loop timing, with how much time is being used, in particular how much time is added by calling yield() and where the time is used and how to make quicker... Right now playing with...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-08-2019, 10:58 PM
    Sounds good - Mine shipped From Seed on 6/4, but update says that today: Depart from facility to service provider. (USPS) Not sure how long it will take.... I probably should do a parts list and make an order to...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-08-2019, 07:28 PM
    @mjs513 and... I would have probably missed it as well, except my T3.6 board uses SPI1 and I tried to compile the edited version of the simple client/server I previously updated to run on SPI1... Edit: Will...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-08-2019, 07:18 PM
    I thought I might take a quick look at some of the avr_emulation code for SPI that is not currently implemented. I hope it is fine, but I am finding that some of this code is using some of the functions like: void...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-08-2019, 05:11 PM
    Probably not an issue. As many of us read most/all messages coming in. And for example I have not tried to answer this one as I have never done anything with midi nor some of the other libraries, so figured I would...
    4 replies | 123 view(s)
  • KurtE's Avatar
    06-08-2019, 04:42 PM
    RadioHead - Appears to work for RFM95 However did not allow SPI1 and SPI2 to be used, so updated code to allow this: https://github.com/PaulStoffregen/RadioHead/pull/31 I have the simple Client Server code...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-08-2019, 01:14 PM
    @mjs513 and ... Not sure how much help I can be with some of the Analog things... But will give my $.02 worth of comments :D Hopefully someone who uses it more, can give hopefully give at least $.03 ...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 09:25 PM
    @PaulStoffregen @mjs513, @defragster... In the previous program I posted, that did: void serialEvent() { Serial.println("serialEvent called"); uint8_t buffer; uint8_t cb = min (min((int)sizeof(buffer),...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 08:49 PM
    No should not be related as they use completely different sets of code. That is Teensy3 boards use the code in the cores\teensy3 and T4 code uses cores\teensy4... Once I get this simple test program to work, I...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 07:37 PM
    SerialEvent(s) and main() loop call yield... I have been playing with it today and trying to get all the SerialEvent(x) calls to work. This includes updating the main loop to not do debug prints, plus have it...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 06:39 PM
    Yep - I keep going back to my Excel document... But a Card would be Nice... Although I still go to my T3.6 document at times than card as to get more precise information like which CS pin is what... More Alternate...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 05:39 PM
    Hi @mjs513 - looks like it should work. Currently don't have any hardware to easily test... I did not install any Pogo pins on 26/27 - I think I have some still around here somewhere... But on test boards, I don't...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 02:25 PM
    @mjs513... Wonder in changes: in pins_arduino.h that now have: #if defined(__IMXRT1052__) || defined(__IMXRT1062__) Should just be removed from #if... As I think this file is only used for 1052/1062... Also I...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 01:20 PM
    Note: Page 482 was from first version of the 1052 reference manual. I believe that this is now page: 2457 in the current 1062 manual. Edit: I may be also missing it, but I think the analog.c code does need some...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 12:54 PM
    Hi @defragster (and others) - As I mentioned I thought some of these items could be removed or replaced (reworded). That is, there is code in place that is about 10 or do from the bottom of list #6 is (I think...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 02:02 AM
    SPI - There are several items in that first list, that I think we can remove/replace... Things like: minimal code works SPI minimal code in beta3 SPISettings not used, clock fixed at 12.5 MHz, #428 SPI1 &...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-07-2019, 12:43 AM
    Again with many things like this, it might help if you posted Photos and/or actual wiring diagrams, so maybe someone will see something obvious. For example it has been a long time since I have used any of the...
    4 replies | 88 view(s)
  • KurtE's Avatar
    06-06-2019, 10:09 PM
    The first thing I would probably do, is to try using your SPISettings to see if they help. That is: I would add a call to: beginTransaction... Something like: SPI.beginTransaction(SPISettings(30000000, MSBFIRST,...
    4 replies | 88 view(s)
  • KurtE's Avatar
    06-06-2019, 09:34 PM
    @defragster - And of course if all else fails... Reboot!
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-06-2019, 08:23 PM
    FYI - I updated to new beta and it looked like it updated the firmware in both the new T4B2R as well as the T4B2 brownout... Note: T4B1 I already have sitting on shelf. So far I have only done a few tests. Like...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-06-2019, 01:25 PM
    Sorry, many of the things I mentioned in my previous posting and questions in your last posting are things that probably only you can answer as only you know what your goals are, the form of the data, and the desired...
    5 replies | 118 view(s)
  • KurtE's Avatar
    06-06-2019, 12:57 AM
    Actually it can do multiple devices at same time: Again don't know which Teensy you are using: Hopefully a 3.x? Also don't know how you have Nano connected to Teensy? Maybe a hardware Serial port? But if your...
    5 replies | 118 view(s)
  • KurtE's Avatar
    06-06-2019, 12:15 AM
    Hi and welcome, I guess the first question would be, is what do you mean by HID commands? That is a Teensy can output HID data like several different HID devices, such as keyboard, mouse, joystick... There are...
    5 replies | 118 view(s)
  • KurtE's Avatar
    06-05-2019, 05:50 PM
    Just an FYI - Saleae does have a discount for hobby people... https://blog.saleae.com/saleae-discounts/ Example you can get a logic 8 for: $199
    16 replies | 351 view(s)
  • KurtE's Avatar
    06-05-2019, 05:43 PM
    Note: many of these clones would actually direct their customers to use the Saleae software on their clones. Or in some cases they themselves copied down older versions of the Logic software that they would then...
    16 replies | 351 view(s)
  • KurtE's Avatar
    06-05-2019, 05:37 PM
    There is actually most of the information about what will be the new board contained within this thread: Examples: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=200758&viewfull=1#post200758 Where...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-05-2019, 02:48 PM
    You should look at the first page, to get a summary of information. Also note in the first posting of this thread:
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-05-2019, 01:18 PM
    Again always hard to answer questions like this without enough details, like seeing the code. Could be hardware incompatibility or software bug or... Example: I don't remember if some of the ST7735 boards have...
    6 replies | 117 view(s)
  • KurtE's Avatar
    06-05-2019, 12:39 PM
    Depending on what it is you wish to do, having a Logic Analyzer can help a lot in understanding things and debugging stuff. I too am a hobbyist, and I personally own a couple of the Saleae logic analyzers and they...
    16 replies | 351 view(s)
  • KurtE's Avatar
    06-05-2019, 12:16 PM
    Again not sure what it is you are needing to do to set the registers.... In my earlier case it was for the above, it was to setup to use half duplex to support Robotis Dynamixel servos. At the time I punted on T3.5/6...
    12 replies | 255 view(s)
  • KurtE's Avatar
    06-04-2019, 02:54 PM
    About the only place I know of is, ordering a breakout board from tall dog on Tindie: https://www.tindie.com/products/loglow/teensy-3536-breakout-revision-a-standard/ You can order an assembled with sockets board.... ...
    1 replies | 103 view(s)
  • KurtE's Avatar
    06-04-2019, 02:49 PM
    Nope, you did not miss something :D yes on T3.5 all of them are the same and T3.6 the 6th is the LPUART
    12 replies | 255 view(s)
  • KurtE's Avatar
    06-04-2019, 01:42 PM
    Maybe try the math: Arduino typical code for map: return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; return ) Y = map(127,0,127,3,0) return (127-0)*(0-3)/(127-0) + 3 = 127*-3/127 +3 = 0. ...
    6 replies | 184 view(s)
  • KurtE's Avatar
    06-04-2019, 01:20 PM
    EEPROM side note - probably not worth investigating... With eeprom_read_byte - it always scans the complete used part of the sector to find the last time a value was set: uint8_t eeprom_read_byte(const uint8_t...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-04-2019, 12:57 PM
    I am glad that fixed it! I was wondering, which is why in the last test run, I printed out LUT60-63 and that was going to be my next thing to try but got hit by another diversion... What made me wonder about this...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-03-2019, 08:09 PM
    @PaullStoffregen - Sounds good, again not sure if any of this data is interesting or not, but test program that I am trying right now is still like ones earlier: #include <EEPROM.h> void setup() { ...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-03-2019, 04:54 PM
    Not that it matters, but I don't think ESP32 is 5v tolerant either. For example if you look at the different places on net, like: https://learn.sparkfun.com/tutorials/esp32-thing-hookup-guide/hardware-overview It...
    49 replies | 12170 view(s)
  • KurtE's Avatar
    06-03-2019, 03:10 PM
    I don't see any obvious ways. It is interesting that with the i2c_t3 library the default sizes are 259 bytes and wire it is 32... Wonder if maybe we should make the default in wire maybe depend on which processor...
    2 replies | 74 view(s)
  • KurtE's Avatar
    06-03-2019, 01:38 PM
    I think you need someone who has retropie experience? Have you tried running it with some other type joystick? Do you still have it available? Again I am only guessing on some of this stuff. But if it were...
    15 replies | 185 view(s)
  • KurtE's Avatar
    06-03-2019, 12:39 PM
    @manitou @Paul - I reread that thread posting... Looks like a whole can of worms, and will probably need someone (Paul) who understands the inner workings to figure out what is different with the FlexSPI configuration...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-02-2019, 05:54 PM
    @mjs513 - So I moved around my digitalWriteFasts... static void flash_wait() { digitalWriteFast(8, HIGH); FLEXSPI_LUT60 = LUT0(CMD_SDR, PINS1, 0x05) | LUT1(READ_SDR, PINS1, 1); // 05 = read status FLEXSPI_LUT61...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-02-2019, 05:33 PM
    @mjs513 - Sometimes I see hang other times it just does not do the write... Will try to localize... Edit: Put digitalWriteFast calls at start and end of flash_wait and flash_write, when new program loaded it...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-02-2019, 02:14 PM
    I have done sort of a Kludge in the past... Something like: if (pserial == &Serial1) s_pkuart = &KINETISK_UART0; else if (pserial == &Serial2) s_pkuart = &KINETISK_UART1; else if (pserial == &Serial3)...
    12 replies | 255 view(s)
  • KurtE's Avatar
    06-02-2019, 02:00 PM
    @Paul @mjs513 @manitou and ... Thought I would try with Serial4 connected to see if anything interesting... First run after programming... CCM_CCGR6: fcff3fc3 CCM_CCGR7: ffffffff byte 0 49 input 50 byte 0 50...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-02-2019, 01:17 PM
    With EEPROM issue, thought I would try a combo of app, where you type in like the above apps, and add the dump in from my other app... So: #include <EEPROM.h> void setup() { Serial.begin(9600); while...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    06-01-2019, 09:12 PM
    Note: I tried some simple test of it, like: #include <MIDI.h> // Serial hardware UART 1&6 MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midiA); MIDI_CREATE_INSTANCE(HardwareSerial, Serial6, midiF); // Change...
    12 replies | 296 view(s)
  • KurtE's Avatar
    06-01-2019, 06:29 PM
    Actually this may not surprise me. On Teensy 3.6 the hardware for Serial6 has a complete different sub-system associated with it. That is Serial6 used LPUART0 (Chapter 62 of the PDF manual), whereas Serial1-5...
    12 replies | 296 view(s)
  • KurtE's Avatar
    06-01-2019, 03:14 PM
    I have been playing around a little more with the EEPROM mucking with and dump program to get an idea to make sure that pages are being properly redone when full... Also added some reasonably simple code to mark in...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    05-31-2019, 05:37 PM
    @mjrc - looks good, I probably should go through my parts bins (for some more parts like this to test ;) :D) @Paul... I played around some with the EEPROM test program I did to help debug the EEPROM on OpenCM9.04...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    05-30-2019, 11:26 PM
    Might help to know more about your setup, like which teensy, and what computer are you running this too? Windows? Mac? Linux? ... The problem is more typically on the host side where that fast of output, is...
    11 replies | 183 view(s)
  • KurtE's Avatar
    05-30-2019, 09:40 PM
    Back when I was hacking on the OpenCM version of EEPROM, I hacked up a simple test: #define MAX_INDEX 64 uint8_t inc_value = 0; // default to just index... #include <EEPROM.h> void setup() { // put your setup...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    05-30-2019, 05:22 PM
    With this code the problem has nothing to do with Serial1... The simple issue with this code is: SPI.begin - By default pins: 11, 12, 13 are initialized to be in SPI mode I.e. pin 13 is not in digital output...
    11 replies | 170 view(s)
  • KurtE's Avatar
    05-30-2019, 04:59 PM
    @mjs513, ... Glad you got it party way working... I was in process of hooking up everything on breadboard... But other stuff... The things I was going to try was to make sure of was to verify the states of pins 6...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    05-30-2019, 03:02 PM
    Hook ups... I am assuming 9 for DC? Reset? LED? direct or resistor or ... Might take awhile... Other stuff going on as well
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    05-30-2019, 02:02 PM
    Maybe need to see what pin is connected to what and program... To try to wire one up...
    3337 replies | 358528 view(s)
  • KurtE's Avatar
    05-29-2019, 05:31 PM
    Sorry, not much help here... But my impression is that RetroPie is configurable: https://github.com/RetroPie/RetroPie-Setup/wiki/Controller-Configuration So again unclear what all you need to do with your...
    15 replies | 185 view(s)
More Activity
About KurtE

Basic Information

Statistics


Total Posts
Total Posts
4,683
Posts Per Day
2.36
Last Post
Mouse/Keyboard Program - Controlled from Pi - Not a bread board Yesterday 09:53 PM
General Information
Last Activity
Today 04:07 AM
Join Date
01-12-2014