Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 12:22 PM
    @KurtE Downloaded your latest debug branch and gave it a try with my PS4. Seeing a couple of things: 1. If i press any button it looks like its trying to setLEDS, now this may be in the sketch, didn't check yet:...
    778 replies | 26188 view(s)
  • mjs513's Avatar
    Today, 11:59 AM
    Morning - just on my first cup of coffee. Thought about that as well but.. Going to type a discourse here because sometimes it helps me see what i am doing. According to the datasheet 2 things have to happen to...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    Yesterday, 09:18 PM
    @PaulStoffregen First hope all is well with everything going on and you are getting the boot loader chip done :) Hate to bother you but really stuck at this point. Looks like we are reading and writing to the...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    Yesterday, 09:13 PM
    @KurtE Really cool stuff - see you been busy today.
    778 replies | 26188 view(s)
  • mjs513's Avatar
    07-13-2020, 07:50 PM
    That’s good now power off and on and you will get the bad message. Yeah got me too at first but 0x2a is 42 decimal :). Still don’t know why data isn’t retained.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-13-2020, 06:05 PM
    Think that restriction is on a per Program Execute command. But even with that it doesn't explain why the data is not being retained by flash after power off. Even if I only do a single write and read operation...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-13-2020, 05:17 PM
    Worse than that - there is a major bug in the lib - as soon as I remove power the chip looses what we wrote !!!! has a test use this instead of check42(false) in setup! and you will see what I mean: ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-13-2020, 04:28 PM
    @KurtE - Welcome to the party :) @defragster - have fun with it. Think done for now until ......
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-13-2020, 01:09 PM
    Alcon Just pushed some more changes and changed some function names to protect the guilty :)
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-13-2020, 12:17 AM
    @defragster You went directly to the point. "code is now actually doing more complete read write" and reads. For instance, lets take the simple case of writing an array of 4096 bytes. Before was actually only...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-12-2020, 05:24 PM
    Actually not really. Corrected errors in data block transfers for mulitpage and fullpage writes/reads. Only about half or less of block was being written or read before. Probably affects full chip reads/writes more...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-12-2020, 02:15 PM
    All Just pushed a change to the driver. Should cover page crossings for any size array you want to use or any address start position. Made it so you dont have to do anything special except to call; ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-11-2020, 05:05 PM
    @defragster right now I using the IDE plus using SublimeText as the editor instead of the IDE editor. Did want to spend time on figuring out TSET just yet. Too many new things get me confused :) Using...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-11-2020, 11:57 AM
    Just did an update to the repository. Created one function call for flash writes which should address crossing page boundaries whether they are 2 partial writes. New Function: w25n01g_programDataLoad(0, buffer,...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-10-2020, 05:06 PM
    Actually found another issue! Had to do with crossing page boundaries. Since I decided to test with 4096 with is 2 pages of data you have to load 1 page write it and then load the second page and write. Reason...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-10-2020, 12:35 PM
    no more spew :) Fixe addressing with ecc turned on pageSize = dataBytes + eccBytes = 2048+64 = 2112 bytes. Made that adjustment and increased the x42 buffer to 4096: Begin Init Found W25N01G Flash Chip NAND...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-10-2020, 12:25 PM
    Got it now - now using DMA to transfer to the chip but for the transfers to and from the FIFO.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-10-2020, 01:23 AM
    Think DMA would only help if you are using SPI for transfers but I could be wrong here as opposed to QSPI. Maybe somebody else has a better explanation.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-10-2020, 01:20 AM
    Only thing I can think of is that it reading and blocks so times are probably going to be similar. Both are using QPI by the way. From what I was reading about this chip that seems to be what everyone is saying. ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-09-2020, 11:12 PM
    Thanks for testing @defragster and doing the sketch updates Actually did the same thing putting a check42 at the beginning of the sketch but didn't make it permanent. Not sure what else to do with it right now...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-09-2020, 03:53 PM
    Added check42: Begin Init Found W25N01G Flash Chip 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-09-2020, 01:05 PM
    @defragster Forgot to mention - designed so you start you addressing at 0. No need to account for flashbaseaddr - done in software :) EDIT: Oh forgot the most important thing - doesn't support direct memory...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-09-2020, 12:34 PM
    @KurtE Don't worry - still plenty I don't understand about this chip - Bad Block management and memory addressing :) Just pushed an up that will hopefully simplify the interface a bit and did a bit more clean up. ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-09-2020, 11:07 AM
    @defragster - Good Morning. Yes its running at the same clock speed as the PSRAM. If i remember right the max speed is 104Mhz. Same same for start address. Should still work with a PSRAM installed.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-09-2020, 02:06 AM
    So far used buffered reads tomorrow will test continuous reads/writes which make it more Nor flash like. But think done for today.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-09-2020, 12:18 AM
    All For now don't use the following 2 functions: w25n01g_randomProgramDataLoad w25n01g_pageProgram Reason: If we use randomProgram doesn't seem to update to the new column address so have to read up a bit more. ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 11:44 PM
    Funny, it doesn't like using the short cut load - pageProgram. If you change beefy load to: EDIT: Begin Init Found W25N01G Flash Chip 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b,...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 10:40 PM
    Been awhile since I/we played with this - but I was never good with the button mapping. If i remember we originally had them mapped out to more array elements but then we combined buttons. Be honest, i will leave...
    126 replies | 7042 view(s)
  • mjs513's Avatar
    07-08-2020, 10:32 PM
    Oops deleted one too many lines. Just add the following line to before the geometry structure in defines.h // typedef uint16_t flashSector_t; Going to push the fix up now.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 07:42 PM
    @defragster - thanks. But the credit for finding the issue that resulted in getting it to work goes to @ecurtz with the bug to writeRegisterFunction and correction for the addr's. Doing some clean up now. Still...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 06:44 PM
    @defragster After corrections: Begin Init Found W25N01G Flash Chip 0 Status of reg 0xa0: (HEX: ) 0x00, (Binary: )0
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 06:42 PM
    Actually a couple of errors. It appears that after I got it working and did the IDE save it didn't save all the changes. Not sure what happened. What you see was me playing around before i put it back. ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 04:14 PM
    Ok think I got it all fixed now thanks to your 2 finds. Going to attach it and push it to Github as well for more testing.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 04:04 PM
    Thanks missed that, thought I fixed them, wonder if i did that anyplace else. Oh by the way dont need the stop just checked.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 03:56 PM
    Wasn't sure you needed the add the STOP command. Looking at what we did for W25G128JV the LUTS didn't need the STOP. Not sure why you need so many. But it did fix the issue I was having with 0ing the PROT status. ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 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: ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-08-2020, 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: ...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-07-2020, 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...
    8 replies | 272 view(s)
  • mjs513's Avatar
    07-07-2020, 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...
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-07-2020, 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...
    114 replies | 1675 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...
    7 replies | 193 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 | 164 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...
    114 replies | 1675 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...
    114 replies | 1675 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...
    114 replies | 1675 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 :)
    114 replies | 1675 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.
    114 replies | 1675 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.
    114 replies | 1675 view(s)
  • mjs513's Avatar
    07-05-2020, 07:26 PM
    @gotty101 - glad you got it working - looks good in the photos.
    264 replies | 6629 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...
    114 replies | 1675 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...
    114 replies | 1675 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...
    114 replies | 1675 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 ...
    264 replies | 6629 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...
    264 replies | 6629 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.
    114 replies | 1675 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...
    264 replies | 6629 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
    114 replies | 1675 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)...
    114 replies | 1675 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 :)
    114 replies | 1675 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...
    114 replies | 1675 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?
    50 replies | 2418 view(s)
  • mjs513's Avatar
    06-30-2020, 12:21 AM
    Just thought you should know. Couldn't find much on it.
    778 replies | 26188 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...
    778 replies | 26188 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 | 2318 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...
    778 replies | 26188 view(s)
  • mjs513's Avatar
    06-29-2020, 07:57 PM
    Could be the dongle is ble?
    778 replies | 26188 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...
    778 replies | 26188 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 | 1436 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:...
    778 replies | 26188 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 | 468 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 | 147513 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 | 1436 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 | 1710 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 | 1710 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...
    114 replies | 1675 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 | 1710 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...
    264 replies | 6629 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 | 1882 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 | 1882 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 | 147513 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 | 1882 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 | 163 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 | 163 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 | 163 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,375
Posts Per Day
2.44
Last Post
T3.6 USB Host - Bluetooth Today 12:22 PM
General Information
Last Activity
Today 12:54 PM
Join Date
07-01-2014