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

Search:

Type: Posts; User: ecurtz

Search: Search took 0.00 seconds.

  1. Replies
    158
    Views
    3,275

    After my patented "see what's on GitHub" search...

    After my patented "see what's on GitHub" search process I also thought dhara looked interesting, but whatever Paul is planning in terms of the new file abstraction might make a big difference in the...
  2. Replies
    158
    Views
    3,275

    This is how I understand it. Any of this could be...

    This is how I understand it. Any of this could be wrong.

    On the 1062 side
    CAS is where the 1062 divides a 32 bit address into the column and the page.
    The value in the LUT defines how many bits...
  3. Replies
    158
    Views
    3,275

    If CAS isn't set, isn't it going to fail on any...

    If CAS isn't set, isn't it going to fail on any address with bit 12 set because those aren't real pages, but ECC sections? What issue were you trying to fix with that change?
  4. Replies
    158
    Views
    3,275

    Unfortunately that's not how NAND flash works,...

    Unfortunately that's not how NAND flash works, you can clear bits from a 1 to 0 but not the other way, so you can't erase a single page, you have to use the block erase command.
  5. Replies
    158
    Views
    3,275

    Unfortunately erase is per block, so it has to be...

    Unfortunately erase is per block, so it has to be separate from the write.
    setTimeout() is treating timeoutAt as a time, but waitForReady() is using it as if it was a period.
  6. Replies
    158
    Views
    3,275

    There's a bug I forgot to mention in setTimeout /...

    There's a bug I forgot to mention in setTimeout / waitForReady. It should probably be updated to just use an ElapsedMillis object and a numerical timeout value? Anyway the version in GitHub is wrong.
  7. Replies
    158
    Views
    3,275

    Excellent. Hopefully that will be enough of a...

    Excellent. Hopefully that will be enough of a working baseline to build up the missing features.
  8. Replies
    158
    Views
    3,275

    Try erasing sector 0 (or the entire chip) first....

    Try erasing sector 0 (or the entire chip) first. The addressing was changed so it's unclear what would have been on there previously.
  9. Replies
    158
    Views
    3,275

    I thought it was broken when I tried to set...

    I thought it was broken when I tried to set Column bits to 11 but I think I had just messed up the ECC during my previous testing. So I think that will work with the caveat that we'll have to do some...
  10. Replies
    158
    Views
    3,275

    Hmm, the column address is 12 bits, but it only...

    Hmm, the column address is 12 bits, but it only "needs" 11 (maybe so you can access the ECC data?) But that means there's no continuous addresses.
  11. Replies
    158
    Views
    3,275

    Staying with a single page write to try and...

    Staying with a single page write to try and tackle one issue at a time. There's something address related to the odd/even pages.

    uint8_t page = 2;

    Serial.println("Non-Zero Test Write");
    ...
  12. Replies
    158
    Views
    3,275

    There were some problems with the timeouts in the...

    There were some problems with the timeouts in the read stuff, so the page wouldn't always make it to the buffer. I think this is another incremental improvement. I seem to be able to write and erase,...
  13. Replies
    158
    Views
    3,275

    This code is definitely loading into the buffer...

    This code is definitely loading into the buffer because when I use it for read() I can get back the test sequence that's somewhere on my chip. Who knows where that data might be, but it's saved and...
  14. Replies
    158
    Views
    3,275

    I don't have the 1050 manual, but from the link...

    I don't have the 1050 manual, but from the link you posted on page 1 it appears to be using 24bit page address with no dummy bits in the sample code LUT.
  15. Replies
    158
    Views
    3,275

    Well great, apparently some random thing I did...

    Well great, apparently some random thing I did during testing was what managed to get the ProgramExecute working because I 100% for sure have the data stored somewhere on my chip.
  16. Replies
    158
    Views
    3,275

    Try address 0 instead of 3000, as I said I'm not...

    Try address 0 instead of 3000, as I said I'm not at all confident about the page addresses, but I currently boot with no write code enabled and get the test sequence...
  17. Replies
    158
    Views
    3,275

    Made a tiny bit of progress. It seems that the...

    Made a tiny bit of progress. It seems that the operand on the commands using the page address is wrong. It was originally 0x20. I thought it should be 0x10, since it's only two bytes, but that...
  18. Replies
    158
    Views
    3,275

    It isn't currently formatting, but the chip is...

    It isn't currently formatting, but the chip is initially formatted, and we don't appear to be disturbing that yet. As far as I can tell nothing is actually making it from the on chip buffer to the...
  19. Replies
    158
    Views
    3,275

    Sorry I've been AWOL, but I don't think we need...

    Sorry I've been AWOL, but I don't think we need Paul just yet. I see a couple bugs and/or potential things to try still, so I'll see if I have any luck playing with it.

    Several methods using...
  20. Replies
    158
    Views
    3,275

    It looks like you are trying to write twice to...

    It looks like you are trying to write twice to the same page out of order, which I think is forbidden.

    memset(buffer, 0xFF, 2048);
    for (uint16_t i = 0; i < 2048; i++) buffer[i] = i;
    ...
  21. Replies
    158
    Views
    3,275

    I was assuming that it's possible to use TFDR0...

    I was assuming that it's possible to use TFDR0 and RFDR0 with DMA transfers, but I haven't actually investigated. I'll see if I can figure it out from the datasheet.

    EDIT: Yeah, you can, per page...
  22. Replies
    158
    Views
    3,275

    According to the datasheet writing within the...

    According to the datasheet writing within the chip is approximately 10x slower than reading, but I'm not sure how much of the time is the transfer which is probably the same speed either way. I...
  23. Replies
    158
    Views
    3,275

    Happy to contribute a little. It will be useful...

    Happy to contribute a little. It will be useful to have the support in the official library, so win / win. I think I've successfully read the bad block tables with my normal SPI code, but I haven't...
  24. Replies
    158
    Views
    3,275

    flexspi_ip_write in the current GitHub code is...

    flexspi_ip_write in the current GitHub code is definitely wrong, looks like a copy/paste error?
  25. Replies
    158
    Views
    3,275

    STOP is different than 0 which is what it's all...

    STOP is different than 0 which is what it's all initialized to, but I'm not sure if that matters - the bug was skipping over a LUT entry, from 40 to 42.
  26. Replies
    158
    Views
    3,275

    Ok, found a bug in the writeStatusRegister LUT,...

    Ok, found a bug in the writeStatusRegister LUT, this is still hacked up, but a big step toward working.
    20896
  27. Replies
    158
    Views
    3,275

    If you're referring to the write enable bit in...

    If you're referring to the write enable bit in the status register it automatically gets reset every time you do a "write" command (which is actually a couple different things) "A write disable state...
  28. Replies
    158
    Views
    3,275

    This is seriously hacked up and I'm only trying...

    This is seriously hacked up and I'm only trying to write to the on chip buffer and read it back, not even attempting to store the page, but it's doing a little bit better than the stuff from GitHub....
  29. Replies
    158
    Views
    3,275

    Got my new board and making a tiny bit of...

    Got my new board and making a tiny bit of progress. It seems like FLEXSPI2_IPCR0 always needs to have an address in the range of flashBaseAddr, probably because that's how it determines the chip...
  30. Replies
    158
    Views
    3,275

    The ability to write to the protection register...

    The ability to write to the protection register is controlled by 3 bits of the status register as shown on the chart on page 16 of the datasheet.
  31. Replies
    158
    Views
    3,275

    You have to use the write enable command (0x06)...

    You have to use the write enable command (0x06) to set that bit, you can't do it by writing to the status register.

    EDIT: Actually maybe that's just for the regular writes and you need to use the...
  32. Replies
    158
    Views
    3,275

    Looks like you forgot to include the new code? I...

    Looks like you forgot to include the new code? I should have a new Teensy with the chip on it by the end of the week.
  33. Replies
    158
    Views
    3,275

    I understand this, but I thought the basic...

    I understand this, but I thought the basic commands encoded into the lookup table would still mirror the traditional method?
  34. Replies
    158
    Views
    3,275

    I assume you've looked at the example LUTs in...

    I assume you've looked at the example LUTs in sections 27.6.5 and 27.6.3 in the reference manual? I'm trying to get the HW guy to build me up a 4.1 so I can help, since I think the WSON package is...
  35. Replies
    158
    Views
    3,275

    Great job! Can anyone confirm that my reading of...

    Great job! Can anyone confirm that my reading of the datasheet that "regular" SPI can't use the lookup tables and so we'll need two versions of the low level calls correct?
  36. Replies
    158
    Views
    3,275

    As I said I unfortunately began by hacking on a...

    As I said I unfortunately began by hacking on a GPL codebase so I shouldn't just post code without carefully verifying that it's actually stuff that I wrote, but here are a few snippets to help get...
  37. Replies
    158
    Views
    3,275

    NAND flash support in 1.54

    Paul mentioned adding some "official" NAND flash support in the 1.53 Beta #2 thread, initially targeting the Winbond W25N01GVZE1G. Since I'm using that in my current project and I haven't seen a...
Results 1 to 37 of 37