Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 03:19 PM
    You shouldnt have to. Let me give it a try and see if I can figure anything out. What I did see in play around WREN is 10 on entering but get reset to 8 so maybe thats why you have to go to usding rdrx1. EDIT: ...
    43 replies | 692 view(s)
  • mjs513's Avatar
    Today, 02:36 PM
    @defragster - @ecurtz At this point I am pretty much at a loss with the API. Went through it again and made some changes. So now i get all 0's instead of FF's. I did add CAS = 16 for column addressing: ...
    43 replies | 692 view(s)
  • mjs513's Avatar
    Yesterday, 04:21 PM
    Been a while since I played with this stuff but if you look at your data it isn't changing. A quick look at the data sheet brought back memories, but if you want the max data rate you are going to need to adjust...
    7 replies | 207 view(s)
  • mjs513's Avatar
    Yesterday, 11:31 AM
    @defragster saw it in an example. If I don't use it doesn't make a difference. Going to ask a couple of questions as a double check because I think I am confusing myself now. Q. FLSHSZ is defined in kilobytes...
    43 replies | 692 view(s)
  • mjs513's Avatar
    Yesterday, 12:52 AM
    @defragster Your soldering job is better than mine. The results you show are exactly what I am seeing. Not what I am doing wrong here. Made a few more changes as a test but same results. Thinks it may be with my...
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-06-2020, 09:49 PM
    @KurtE See you got back to playing with displays. Unfortunately have no idea where my one and only LC is so can't even give it a try. But as you said not sure with these small displays if you draw a couple of...
    4 replies | 125 view(s)
  • mjs513's Avatar
    07-06-2020, 06:14 PM
    @Xantra Just a quick answer to your question. As far as I know there is now library that supports the MX25L25635F in QSPI for the T4.1. You would have to develop your own using FLEXSPI which is not that intuitive. ...
    4 replies | 134 view(s)
  • mjs513's Avatar
    07-06-2020, 03:31 PM
    Yep. Just reread the section on Write Protection. As usual reading stuff wrong :) WP-E and SR1 are both 0 so that the device is in S/W protect mode and HOLD/WP are multiplexed as IO pins so think I am alright. Ok...
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-06-2020, 03:01 PM
    You got it - thats what I am trying to clear. The status register, 0xC0, contains the WEL bit that you use for writes, that is set for the writes. You do have to remember to disable it for reads. But the protection...
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-06-2020, 01:56 PM
    Think I know what the problem MIGHT be but not 100% sure. One of the things that have to be cleared, it looks like, are the write protection bits in the Protection Status Register. To clear I do a: // No...
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-06-2020, 01:28 PM
    Not sure which is worse, ADC_ETC or NAND :). Think ADC_ETC may have been worse. At least Paul has the PSRAM and FLASH code as samples to get an idea :)
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-05-2020, 11:42 PM
    Oops -- heres the attachment. Do you have an example sketch that I can use as reference for the calls to library? Just curious. Ok sounds good - going forward i will push it up there.
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-05-2020, 07:28 PM
    Unfortunately there is not an exact mirror. To give you an idea check the driver for betaflight: https://github.com/betaflight/betafl...f4135c04afe3fd. It implements both ways.
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-05-2020, 07:26 PM
    @gotty101 - glad you got it working - looks good in the photos.
    263 replies | 6261 view(s)
  • mjs513's Avatar
    07-05-2020, 05:29 PM
    @PaulStoffregen - Great explanation ! You can see some of what Paul is talking about if you look at the flexspi_ip_read, flexsp_ip_write and flexspi_ip_command functions in the sketch. Right now at least not getting...
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-05-2020, 11:01 AM
    @PaulStoffregen Thanks for getting back to me - know you are busier than a one-armed paper hanger right now. Gave me a lot to think about. Now to do some more reading and then back to playing - maybe I will have...
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-05-2020, 01:56 AM
    Ok playing around some more but think I am stuck on LUTs again. So anyone that is a LUT expert wondering if you all could help with a few things. In going through the existing code for PSRAM and FLASH I see...
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-04-2020, 04:17 PM
    @gotty101 You may have to change the display timing settings in the registers.h file. Or just a quick look at your lib looks like may be something with vsynch or vsynch functions that i dont see in our lib. I ...
    263 replies | 6261 view(s)
  • mjs513's Avatar
    07-04-2020, 01:32 PM
    @KurtE and @Manu As far as I can see both libs are in sync. The master in my fork was updated with all the changes in the branch where @KurtE and I did all the updates. @KurtE thanks for the compliment but you...
    263 replies | 6261 view(s)
  • mjs513's Avatar
    07-03-2020, 07:57 PM
    Way from any expert here but from what I read and have reviewed the answer is no LUTs are used with regular Serial. That one lib I referenced lets you do either/or.
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-03-2020, 07:55 PM
    Think that is one of the things we never got around too was checking all the examples sketches to see if they still worked. The lib was kind of overhauled. All the memory stuff was done by @morganS. Same thing for...
    263 replies | 6261 view(s)
  • mjs513's Avatar
    07-03-2020, 07:03 PM
    Ok it lives after a successful operation :) and some playing with LUTs, Raw Dump: Begin Init Status before Reset: * FLEXSPI2_RFDR0=00000000 Status 1: 00 Binary: 0 RESET ISSUED
    43 replies | 692 view(s)
  • mjs513's Avatar
    07-02-2020, 04:13 PM
    Quick status. Not sure I did this right, probably not or my chip is not on right :) Here is the start of using FLEXSPI with the NAND chip where the FLASH goes: #define LUT0(opcode, pads, operand)...
    43 replies | 692 view(s)
  • mjs513's Avatar
    06-30-2020, 03:56 PM
    @ecurtz Thanks for posting so I can at least do a verification that i did the soldering correct. Will also help when I try to use FLEXSPI :)
    43 replies | 692 view(s)
  • mjs513's Avatar
    06-30-2020, 02:45 PM
    Just by way of update and warning. Got my NAND chips from Digikey and just soldered up one to a T4.1. Soldering that chip is not easy, at least for me, it was a real challenge to get everything line up right. Lots...
    43 replies | 692 view(s)
  • mjs513's Avatar
    06-30-2020, 02:42 PM
    @KurtE Sorry was busy soldering up a couple more T4.1's. Was the hack we put for drawing from SD Card was in the sketch itself - we used drawRect for the scanline?
    47 replies | 2242 view(s)
  • mjs513's Avatar
    06-30-2020, 12:21 AM
    Just thought you should know. Couldn't find much on it.
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-29-2020, 10:16 PM
    Could very well be looking for a specific command. Someone identified it as "The dongle identifies as VID_0BDA&PID_8771" Someone else said its a "The adapter has a realtek rtl8761a". Probably start there. @KurtE will...
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-29-2020, 10:09 PM
    Received my 7in RA8875 display and hooked it up. Ran the ManyGauge example sketch with a T4.0 at 600Mhz without issue. Also ran benchmark.ino and FontTest4 with no problem at default SPI clock for the display. ...
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-29-2020, 08:12 PM
    Going to be interesting. Just reading the reviews and a few people complaint about it not pairing with the PS4 joystick. The very last review in the list was interesting. Seems you have to use there drivers otherwise...
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-29-2020, 07:57 PM
    Could be the dongle is ble?
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-29-2020, 05:02 PM
    The Rii keyboard/mouse may need to be paired with the keyboard object - remember that on my keyboard/mouse Rii i had to type "0000" on the keyboard then it would pair - man memory is getting tougher :) Think the new...
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-29-2020, 12:06 PM
    A simple solution to not checking the json is to go to "File => Preferences" and un-check the box that says "Check for updates on startup". That should prevent it from going to the internet to check the JSON.
    31 replies | 1287 view(s)
  • mjs513's Avatar
    06-29-2020, 12:01 PM
    @defragster Good Morning: May be the dongle itself. Reading the debug looks like it recognizes the dongle: *** Device Bluet bda:8771 - connected *** manufacturer: Realtek product: Bluetooth Radio Serial:...
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-28-2020, 12:45 PM
    mjs513 replied to a thread ILI9341 Speedup in General Discussion
    @KurtE implemented getTextBounds as well as using GFX fonts into his ILI9341_t3n library as well as having frame buffering support. Any potential of using that library in teensyduino instead of the ILI9341 library. If...
    8 replies | 447 view(s)
  • mjs513's Avatar
    06-27-2020, 10:16 PM
    mjs513 replied to a thread uNav INS in General Discussion
    Maybe this will make it a bit clearer, added some notes along the test curve:
    709 replies | 147255 view(s)
  • mjs513's Avatar
    06-27-2020, 09:56 PM
    Just saw b3 was released, right on schedule :) Noticed Adafruit GFX was not auto installed with Teensyduino so remember to install it from library manager. It will auto install Adafruit BusIO as well which it now...
    31 replies | 1287 view(s)
  • mjs513's Avatar
    06-27-2020, 05:24 PM
    @ftrias and @defragster Ok got it working. Just had the wrong file in the hardware/tools. Wasn't expecting another a GDB cmd window to pop open either, probably should read the readme better.
    70 replies | 1539 view(s)
  • mjs513's Avatar
    06-27-2020, 04:15 PM
    @ftrias Sorry for the delay in responding - keep getting sidetracked. Anyway I followed these instructions in the readme: Just for clarity the teensy_debug file I copy to 'hardware/tools' is teensy_debug.py or...
    70 replies | 1539 view(s)
  • mjs513's Avatar
    06-27-2020, 04:02 PM
    @ecurtz Thanks for starting this thread, kept meaning too but kept getting side tracked with other things :) Anyway @defragster posted a NXP Community question on using NAND: FlexSpi NOR and NAND Flash...
    43 replies | 692 view(s)
  • mjs513's Avatar
    06-27-2020, 02:49 PM
    @ftrias Ok since I also install via the zip file, so I ran the following from the command prompt ffter I downloaded and put all files in the Arduino Libraries folder.: teensy_debug -i=f:\Arduino-1.8.13 But I keep...
    70 replies | 1539 view(s)
  • mjs513's Avatar
    06-27-2020, 02:41 PM
    @gotty101 Ok lets start at the beginning. 1. You need to reinstall the RA8876 library from github: https://github.com/mjs513/Ra8876LiteTeensy. Then delete the RA8876Lite that you installed for Due. The two...
    263 replies | 6261 view(s)
  • mjs513's Avatar
    06-27-2020, 01:09 PM
    Thanks - missed the updates to MTP_T4 :) See the logger example now.
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-27-2020, 11:23 AM
    Thanks @mborgerson. Wouldn't be the first time I edited the some of the core files :) Oh if I can ask you one more question - can this be used with a T4.0 using an external card reader? Besides the SDConfig...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-27-2020, 12:58 AM
    mjs513 replied to a thread uNav INS in General Discussion
    @brtaylor Well finally got the whole test bed set up with a simple logger and a button to end logging and close the file. Plot is a bit confusing but put a little plot of the lat/long from google maps. Basically...
    709 replies | 147255 view(s)
  • mjs513's Avatar
    06-26-2020, 10:03 PM
    Thank you for the updated zip. PS. I noticed that you had a custom MTP Responder Library for you logger when I was going through it. Like how you used the pointer for the file system instead of the default. Didn't...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-26-2020, 09:55 PM
    Glad that worked but not sure why still the problem with i2c. Guess i will be buying for testing.
    6 replies | 150 view(s)
  • mjs513's Avatar
    06-26-2020, 08:31 PM
    Are you using the latest IDE/TD (1.83 and 1.53beta2)? At one point there was alot of work done to prove i2c comm? One of the things i did to debug I2C as a test was to put some delays after Wire.send etc, something...
    6 replies | 150 view(s)
  • mjs513's Avatar
    06-26-2020, 08:18 PM
    Just a glance at the library it seems all its doing is sending bytes through I2C using Wire which is pins 18/19. Would suggest that you leave the CPU clock at 600Mhz and edit the .cpp file to put a...
    6 replies | 150 view(s)
  • mjs513's Avatar
    06-26-2020, 02:11 PM
    @KurtE Very true. The only other place that I see the use of QuadTimers is when you do AnalogWriteFrequency: void analogWriteFrequency(uint8_t pin, float frequency) { const struct pwm_pin_info_struct *info; if...
    10 replies | 207 view(s)
  • mjs513's Avatar
    06-26-2020, 11:05 AM
    @janbbeck In the Teensy 4 core you will a file called startup.c, in there you will see that it calls pwm_init (which is in pwm.c) when the T4.x starts up. To save some time here is what pwm_init and quadtimer_init :...
    10 replies | 207 view(s)
  • mjs513's Avatar
    06-25-2020, 08:58 PM
    Very cool indeed. Oxygen and kerosene, reminds me of Goddard's first rocket, Liquid Oxygen and gasoline. Congratulations! Not sure if you have seen this guys efforts but its fun too: https://bps.space/about/
    2 replies | 180 view(s)
  • mjs513's Avatar
    06-25-2020, 05:52 PM
    Probably should start a new thread for NAND memory. as for MTP change = that mode wasn't put into the 1.53 core so we have to edit it each time.
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-25-2020, 01:22 PM
    @PaulStoffregen Was just using MTP responder with T4.0 and remembered an issue we were have with using MTP above 450 Mhz. Basically above 450Mhz MTP responder would not work. The fix was relatively easy but took a...
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-25-2020, 12:17 PM
    @PaulStoffregen Thanks for the info Paul. Website updates and documentation have to be first as the site does need some updating. That's going to be a job and a half. When you dangle little tidbits I get...
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-25-2020, 11:20 AM
    Good Morning - sorry i missed this last night. Sounds like a plan. Know its early but any thoughts on which NAND chips you are looking at or what FLASH Chips yet or should I just be patient. Think i know the...
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-24-2020, 11:50 PM
    @PaulStoffregen - are you playing on pulling in The spiff library. If so be careful which branch. If you want I can pull it into a separate repository.
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-24-2020, 09:37 PM
    SPIFFS are not set up for PSRAM, only for FLASH, never tested with 2 FLASH Chips though. I would be reluctant to use PSRAM for logging data though, if you were to loose power you would loose whatever data you saved. ...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-24-2020, 08:25 PM
    @mborgerson - @defragster Just as a test I used the SDFat-beta BufferedPrint example and used it to log the data to the SD Card on SPI and it worked without a problem. So question is what really needs to be...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-24-2020, 06:33 PM
    Makes sense for an on demand application to me. The issue I am having may be associated that I am trying to use an external card reader on SPI and SDIO.
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-24-2020, 04:56 PM
    I did make a couple of changes but right now its hanging on File open using an external Card reader on a T4.0 bool DataLogger::OpenDataFile(const char *filename) { Serial.print("Opening FIle ");...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-24-2020, 04:24 PM
    @mborgerson Believe me I say I understand your fundamental rules. Been there and done that. In some cases though you need to process the data real-time so say an autonomous vehicle can make decisions on obstacles...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-24-2020, 12:13 PM
    @mborgerson - Hope you enjoyed your camping trip and got some good data out of it :) Thanks for posting the additional examples. I have been using a modified Bolderflight GPS by Chirs O. Actually lets you set some...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-23-2020, 07:23 PM
    Oops, my bad that version didn;t have the datalogger in it = my bad . sorry
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-23-2020, 07:09 PM
    I attached it in post #56 but here is the latest i am working with. You know you can just hard code the GPS lat, long etc instead of attaching a GPS.
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-23-2020, 07:01 PM
    @defragster Seems to hanging on this line: cptr((void*)collectPtr); // call data collection function in datalogger::TimeChore
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-23-2020, 06:13 PM
    @defragster -- seems to hang as soon as it trys to write the first pack. May have to do something else
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-23-2020, 03:27 PM
    @KurtE The only things that don't seem to work are Rumble and LEDs? Can't seem to break the code on that.
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-23-2020, 02:30 PM
    @KurtE Once I commented the println's in the rx_data section (right at the beginning), looks like its working without any changes necessary to the structure. Bottom line: looks like you got it resolved. Give it...
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-23-2020, 02:00 PM
    Ethernet both work. The NativeEthernet library does require an additional library to be installed. Its dependent on the FNET library. Seems relatively easy to work with. Used it for the temperature measurements with...
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-23-2020, 01:43 PM
    Yeah but seem to keep getting distracted with other fun stuff for some reason :)
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-23-2020, 01:18 PM
    @KurtE - @PaulStoffregen Merge Completed! No need for warning in the file - @KurtE removed references to extMem_t4 as well. Thanks Kurt
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-23-2020, 01:06 PM
    @KurtE - @Paul Just did the same thing and getting the same errors. Could have sworn we fixed those errors a while ago. Wil wait for the PR
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-23-2020, 12:52 PM
    Nice Paul. Mine is a bit more complicated since I set it up to be multi-purpose for all the displays we play with: But sometimes simple is better, i tend to get carried away I liked your little wired boards that...
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-23-2020, 12:45 PM
    Not a problem will do as soon as I get another cup of coffee :)
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-23-2020, 12:42 PM
    @KurtE Yep - early morning - guess i am a morning person :) Was thinking along the same lines as you, started doing the same thing. The one thing that will have to be adjusted is the structure for the data the...
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-23-2020, 11:58 AM
    Simple answer is yes. More complicated answer is that with one PSRAM chip extram_t4 reserves the lower 4 MBs for user to use for EXTRAM, etc and the upper 4MBs for other purposes. Also addresses if you have no PSRAM...
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-23-2020, 11:34 AM
    Morning @defragster Thanks for looking I will give it a try. BTW heres the latest piece of code I am using with Brian's updated uNavIns. Oh, think I figured out what the primary cause of yaw drift is - the GPS.
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-23-2020, 11:30 AM
    Morning @KurtE Was playing with your update this morning. Think I isolated the problem. Based on what you currently have the report id is 0x14 but the code only seems to accept rpt 0x01. If I look at the other...
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-23-2020, 02:25 AM
    Yeah was just playing with that a bit. Funny thing is that USBHost shield recognizes it as 360 and its working but cant see any differences from the xbox one s. Didnt try that ???? But my eyes are closing now.
    773 replies | 25709 view(s)
  • mjs513's Avatar
    06-23-2020, 02:23 AM
    @defragster Guess thats exactly what I am looking for: 'LogThisNow( _record_ )' - too bad
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-23-2020, 02:21 AM
    Yes they do from what I remember. Not sure if you want to pull that stuff in yet.
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-22-2020, 11:20 PM
    Ok going through the examples seems everything is based on a timer call back. Question is if I just want to log data every 200ms based on the data available test in a loop: if ((newIMUData == 1 && rtk.upDated ==...
    86 replies | 1718 view(s)
  • mjs513's Avatar
    06-22-2020, 11:14 PM
    Updated ILI9488, HX8357 and RA8876 with the GFX font changes.
    75 replies | 2145 view(s)
  • mjs513's Avatar
    06-22-2020, 09:10 PM
    @KurtE and @PaulStoffregen Went ahead and did the merge of the PR and added the GPIOX(true) for Adafruit displays in the "begin" function.
    75 replies | 2145 view(s)
More Activity
About mjs513

Basic Information

About mjs513
Location:
New York
Interests:
Robotics, Image Processing
Occupation:
Aerospace Eng (Retired)

Statistics


Total Posts
Total Posts
5,340
Posts Per Day
2.43
Last Post
NAND flash support in 1.54 Today 03:19 PM
General Information
Last Activity
Today 03:22 PM
Join Date
07-01-2014