Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: mjs513

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    158
    Views
    3,273

    @KurtE Agreed. So now time me to ramble. ...

    @KurtE
    Agreed. So now time me to ramble.

    Right now we showed accessing a NAND (1Gb) is possible and you can read and write to it. But with out a FS, in my opinion, its really not all that...
  2. Replies
    158
    Views
    3,273

    Dhara is actually one of links in the second...

    Dhara is actually one of links in the second reference as well. I agree it does look interesting. But, as you said, think we have to wait until Paul decides on the abstraction layer he wants to...
  3. Replies
    158
    Views
    3,273

    Been doing some more reading (always a mistake...

    Been doing some more reading (always a mistake for me) on NAND filesystems. Thought i would share here.

    Interesting presentation on whats on there by Toshiba: ...
  4. Replies
    158
    Views
    3,273

    Alcon Was rummaging around and looking for...

    Alcon
    Was rummaging around and looking for Filesystems for NAND and came across this: https://github.com/ARMmbed/littlefs/issues/361 on using littleFS. Just a interesting post.
  5. Replies
    158
    Views
    3,273

    Ok you convinced me its back to 11 :)

    Ok you convinced me its back to 11 :)
  6. Replies
    158
    Views
    3,273

    Was experimenting as a result of getting ecc...

    Was experimenting as a result of getting ecc errors on reads. For instance: alot of times with the arrays i was using I would get an ecc error on the read with setting of 0x18 (looks like it was...
  7. Replies
    158
    Views
    3,273

    Ok just pushed a change to the lib. Added an...

    Ok just pushed a change to the lib.

    Added an example of writing a structure to the chip. PS: if you are going to logger you will need to self manage to write a buffer of multiple of 2048's. ...
  8. Replies
    158
    Views
    3,273

    Hmm interesting. Reading the datasheet that was...

    Hmm interesting. Reading the datasheet that was how I was interpreting it:
    But there are alot of things i dont know about this chip.
  9. Replies
    158
    Views
    3,273

    Yep - keep forgetting about that one - probably...

    Yep - keep forgetting about that one - probably because of the other issues. Just woke up so now time to get that fixed.

    Yeah - block erase is separate instruction from write's. From the...
  10. Replies
    158
    Views
    3,273

    Just pushed an update to use QUAD READs and...

    Just pushed an update to use QUAD READs and WRITEs.

    Last change until BB Management done.
  11. Replies
    158
    Views
    3,273

    @ecurtz - @defragster Just pushed up a library...

    @ecurtz - @defragster
    Just pushed up a library version of the NAND library. With @ecurtz's sketch - no mods and an added experimental sketch for testing ecc and bblut table.

    Still a work in...
  12. Replies
    158
    Views
    3,273

    Oh definitely! Made that CAS(11) change and...

    Oh definitely!

    Made that CAS(11) change and programExecute change and its now working with my version of readBytes/writeBytes! Going to do some testing and then post it and you can see what you...
  13. Replies
    158
    Views
    3,273

    Ok that got it: Non-Zero Test Read 0x00,...

    Ok that got it:


    Non-Zero Test Read
    0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
    0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19,...
  14. Replies
    158
    Views
    3,273

    Doesnt looking like its working for me. I ran...

    Doesnt looking like its working for me. I ran this in the setup:


    uint8_t page = 1;

    Serial.println("Non-Zero Test Write");
    for (uint16_t i = 0; i < 2048; i++) buffer[i] = i;
    ...
  15. Replies
    158
    Views
    3,273

    It looks like its persisting. Have to go through...

    It looks like its persisting. Have to go through you code to see what you did. Right now it looks like its only works if you stay on 1 page. Try this:

    //Serial.println("Test Write");
    for...
  16. Replies
    158
    Views
    3,273

    Yeah but that doesn't match the requirement in...

    Yeah but that doesn't match the requirement in the datasheet and it doesnt look like its using quad data loads either. As an experiment maybe should just use serial (PINS1) instead of QUAD loads and...
  17. Replies
    158
    Views
    3,273

    Welcome to my world and the joys of programing :)

    Welcome to my world and the joys of programing :)
  18. Replies
    158
    Views
    3,273

    Ok. First run through ran sketch using address 0...

    Ok. First run through ran sketch using address 0 and wrote data to address 0. Next I loaded the sketch with just reading the bytes at address 0 with no writes and as expected it worked:

    Test...
  19. Replies
    158
    Views
    3,273

    Dont think its working even with those changes. ...

    Dont think its working even with those changes. I changed your sketch slightly since 0xFF are defaults if there is no data to:


    //read address 3000 on start
    Serial.println("Test Read");
    ...
  20. Replies
    158
    Views
    3,273

    Morning - just on my first cup of coffee. ...

    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...
  21. Replies
    158
    Views
    3,273

    @PaulStoffregen First hope all is well with...

    @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...
  22. Replies
    158
    Views
    3,273

    That’s good now power off and on and you will get...

    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.
  23. Replies
    158
    Views
    3,273

    Think that restriction is on a per Program...

    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...
  24. Replies
    158
    Views
    3,273

    Worse than that - there is a major bug in the lib...

    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...
  25. Replies
    158
    Views
    3,273

    @KurtE - Welcome to the party :) @defragster -...

    @KurtE - Welcome to the party :)

    @defragster - have fun with it. Think done for now until ......
  26. Replies
    158
    Views
    3,273

    Alcon Just pushed some more changes and changed...

    Alcon
    Just pushed some more changes and changed some function names to protect the guilty :)
  27. Replies
    158
    Views
    3,273

    @defragster You went directly to the point. ...

    @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...
  28. Replies
    158
    Views
    3,273

    Actually not really. Corrected errors in data...

    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...
  29. Replies
    158
    Views
    3,273

    All Just pushed a change to the driver. Should...

    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...
  30. Replies
    158
    Views
    3,273

    @defragster right now I using the IDE plus using...

    @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 :)
    ...
  31. Replies
    158
    Views
    3,273

    Just did an update to the repository. Created...

    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:

    ...
  32. Replies
    158
    Views
    3,273

    Actually found another issue! Had to do with...

    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...
  33. Replies
    158
    Views
    3,273

    no more spew :) Fixe addressing with ecc turned...

    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...
  34. Replies
    158
    Views
    3,273

    Got it now - now using DMA to transfer to the...

    Got it now - now using DMA to transfer to the chip but for the transfers to and from the FIFO.
  35. Replies
    158
    Views
    3,273

    Think DMA would only help if you are using SPI...

    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.
  36. Replies
    158
    Views
    3,273

    Only thing I can think of is that it reading and...

    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...
  37. Replies
    158
    Views
    3,273

    Thanks for testing @defragster and doing the...

    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...
  38. Replies
    158
    Views
    3,273

    Added check42: Begin Init Found W25N01G...

    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,...
  39. Replies
    158
    Views
    3,273

    @defragster Forgot to mention - designed so you...

    @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...
  40. Replies
    158
    Views
    3,273

    @KurtE Don't worry - still plenty I don't...

    @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...
  41. Replies
    158
    Views
    3,273

    @defragster - Good Morning. Yes its...

    @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...
  42. Replies
    158
    Views
    3,273

    So far used buffered reads tomorrow will test...

    So far used buffered reads tomorrow will test continuous reads/writes which make it more Nor flash like. But think done for today.
  43. Replies
    158
    Views
    3,273

    All For now don't use the following 2 functions:...

    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...
  44. Replies
    158
    Views
    3,273

    Funny, it doesn't like using the short cut load -...

    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,...
  45. Replies
    158
    Views
    3,273

    Oops deleted one too many lines. Just add the...

    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.
  46. Replies
    158
    Views
    3,273

    @defragster - thanks. But the credit for finding...

    @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...
  47. Replies
    158
    Views
    3,273

    @defragster After corrections: Begin Init ...

    @defragster
    After corrections:

    Begin Init

    Found W25N01G Flash Chip
    0

    Status of reg 0xa0:
    (HEX: ) 0x00, (Binary: )0
  48. Replies
    158
    Views
    3,273

    Actually a couple of errors. It appears that...

    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...
  49. Replies
    158
    Views
    3,273

    Ok think I got it all fixed now thanks to your 2...

    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.
  50. Replies
    158
    Views
    3,273

    Thanks missed that, thought I fixed them, wonder...

    Thanks missed that, thought I fixed them, wonder if i did that anyplace else. Oh by the way dont need the stop just checked.
Results 1 to 50 of 70
Page 1 of 2 1 2