17 May 2024 |
James Munns | yep, but there's like 2-3 different "flavors" of quad commands, like pp4io and some other ones | 18:33:42 |
Benn | though its the standard Write Status Register with 0x40 set | 18:33:45 |
James Munns | and not all chips support all commands | 18:33:46 |
James Munns | Redacted or Malformed Event | 18:34:45 |
James Munns | Download Screenshot 2024-05-17 at 20.35.43.png | 18:35:57 |
James Munns | Download Screenshot 2024-05-17 at 20.36.28.png | 18:36:38 |
James Munns | Okay, so are you settingREADOC to either READ4O or READ4IO and WRITEOC to PP4O ? | 18:37:56 |
James Munns | I guess you said reads are failing, and haven't tried writes, so it's probably not that | 18:38:13 |
Benn | the mBed/arduino example i have uses 0x6b (so QREAD) and 0x32 (PP4O) which is what i'm trying | 18:38:48 |
Benn | i did try writing via quad and then restarting to try to read, which also didn't work (looked like the write did not go through) | 18:40:08 |
Benn | * i did try writing via quad and then restarting to try to read via dual, which also didn't work (looked like the write did not go through) | 18:40:38 |
James Munns | this was my qspi driver last time I tried to do qspi on the nrf52: https://github.com/anachro-rs/powerbus/blob/7968bceaa58d5d546f981286616c6b4dcfad3102/anachro-qspi/src/lib.rs#L92 | 18:40:41 |
James Munns | tho i'm sure embassy's qspi driver probably works better | 18:41:01 |
James Munns | https://infocenter.nordicsemi.com/topic/errata_nRF52840_Rev3/ERR/nRF52840/Rev3/latest/err_840_new.html has some gross errata IIRC, but most of them apply to XIP mode I think? | 18:42:05 |
Benn | isnt that just single line though? line 155 sets FASTREAD | 18:43:00 |
James Munns | Yeah, I think I turned it off for reasons? honestly its been a couple of years š
| 18:43:26 |
Benn | i see read4io commented out | 18:43:27 |
Benn | honestly i'm fine with dual line, my workload here is not read/write heavy. mostly just for durably storing config | 18:44:00 |
James Munns |
Switch to single pair, slower comms for now to work around bad assembly
oh, I had a bad board
| 18:44:07 |
James Munns | it did work with the commented out settings, minus the QSPI errata in XIP mode tho, for sure | 18:45:03 |
20 May 2024 |
thejpster | would it be possible to get a new release of nrf-usbd, and then get a bump on nrf-hal that uses it? I'm using the nrf-hal to do radio and USB things (and I haven't ported the radio driver to embassy yet), and I'm stuck on usbd-serial 0.1 and usbd-device 0.2 because that's what nrf-usbd supports. | 17:54:31 |
thejpster | I see nrf-usbd has been updated, it just needs a release | 17:54:50 |
thejpster | also, TIL what composite_with_iads() does, and why Windows gets sad without it | 17:55:12 |
Andrew Walbran | Seems like a good idea | 23:57:24 |
21 May 2024 |
Andrew Walbran | I've sent a couple of PRs to update other dependencies and tidy things up a bit, want to review them? | 17:08:32 |
Andrew Walbran | https://github.com/nrf-rs/nrf-usbd/pull/19 | 17:08:34 |
Andrew Walbran | https://github.com/nrf-rs/nrf-usbd/pull/20 | 17:08:41 |
Andrew Walbran | then https://github.com/nrf-rs/nrf-usbd/pull/21 for the release | 17:08:58 |
22 May 2024 |
Andrew Walbran | any more changes to get in before I cut a release of nrf-usbd ? | 10:15:58 |
23 May 2024 |
Benn | In the nrf-softdevice examples (the keyboard one especially) how are the services supposed to be used? Iām thinking of things like āI have a task that is watching pin state for button pressesā or āI have a task monitoring battery chargeā and wondering how I either use the service to notify the central device or pass an event to the service | 00:01:03 |