!dASuPAbUCerhCYFqJs:matrix.org

nRF Rust

88 Members
Discussion medium for the nRF-rs organization on Github8 Servers

Load older messages


SenderMessageTime
14 Jan 2021
@therealprof:matrix.orgtherealprofBut you can certainly get rid of the middle man...21:50:00
@dirbaio:matrix.orgdirbaiodcx not supported by nrf-hal tho :C21:51:20
@daschl:matrix.orgdaschlI've just tried to find it, looks like I need to set the register manually21:53:01
@dirbaio:matrix.orgdirbaioyou can also get the hardware to handle the cs pin for you21:54:18
@dirbaio:matrix.orgdirbaioagain not supported :( 21:54:27
@dirbaio:matrix.orgdirbaio
In reply to @therealprof:matrix.org
That's the whole point of display-interface that it is easy to write optimized adapters without having to touch the display driver.
ooh I see, you could implement WriteOnlyDataCommand on top of nrf-hal to do more optimized stuff
without going through embedded-hal::blocking::spi
21:55:29
@dirbaio:matrix.orgdirbaionice!21:55:38
@daschl:matrix.orgdaschlok looks like I need to dive much deeper into that whole subject ... funny thing is there is a ili9341 crate already but it doesn't work for the adafruit display .. 21:57:28
@dirbaio:matrix.orgdirbaioSPI timing is a pain :D21:57:54
@daschl:matrix.orgdaschlalright guys as usual thanks much for all your help21:58:29
15 Jan 2021
@daschl:matrix.orgdaschlScreenshot 2021-01-15 at 15.40.39.png
Download Screenshot 2021-01-15 at 15.40.39.png
14:40:51
@daschl:matrix.orgdaschldoing it manually looks much better14:40:58
@daschl:matrix.orgdaschl
        //  Pin select for DCX signal
        spim.pseldcx.write(|w| {
            let w = unsafe { w.pin().bits(dc.pin()) }; // 02
            let w = w.port().bit(false); // port 0
            w.connect().connected()
        });
        // Pin select for chip select signal
        spim.psel.csn.write(|w| {
            let w = unsafe { w.pin().bits(cs.pin()) }; // 03
            let w = w.port().bit(false); // port 0
            w.connect().connected()
        });
        // number of command bytes before data
        spim.dcxcnt.write(|w| unsafe { w.dcxcnt().bits(0x01) });
14:41:10
@daschl:matrix.orgdaschlnow I combine the command and data and send it in one shot over SPI, d/c and cs pins are controlled by the nrf14:41:54
@daschl:matrix.orgdaschlit only works with spim3 though, 0-2 do neither support csn nor dcx14:42:17
@daschl:matrix.orgdaschl(just as an update for the reader who read the above and maybe is interested in a solution)14:43:22
@dirbaio:matrix.orgdirbaioNice! :D so it was the display not liking the pause?17:15:34
18 Jan 2021
@firefrommoonlight:matrix.orgfirefrommoonlight joined the room.11:07:30
@firefrommoonlight:matrix.orgfirefrommoonlightHey bros! Trying to broaden my horizons beyond Stm32. From the docs and product descriptions I've read, the nrf52 line appears to be focused on short-distance, low-power RF uses. Is this accurate? So, Stm32 is a good choice if you're not doing RF, and nrf if you are? Is the nrf53 too new to support a HAL? Thank you.11:08:45
@firefrommoonlight:matrix.orgfirefrommoonlight * Hey bros! Trying to broaden my horizons beyond Stm32. From the docs and product descriptions I've read, the nrf52 line appears to be focused on short-distance, low-power RF uses. Is this accurate? So, Stm32 is a good choice if you're not doing RF, and nrf if you are? Is the nrf53 too new to support a HAL? Thank you.11:09:15
@therealprof:matrix.orgtherealprof firefrommoonlight: nRF is indeed focused on on-lower RF. However they're super-flexible (compared to other series) so unless you need high computing power they're generally a very good choice. 11:14:02
@firefrommoonlight:matrix.orgfirefrommoonlightThank you. I'd love to use one on a future project11:32:12
20 Jan 2021
@wassasin:matrix.orgwassasin firefrommoonlight: I believe the devkits for the nrf5340 will release sometime next month 11:43:28
@wassasin:matrix.orgwassasinSo I would wait for that at least11:44:11
@wassasin:matrix.orgwassasinFurthermore for starting out I would recommend using a simpler CPU, i.e. the nRF5284011:45:46
@wassasin:matrix.orgwassasinThe nrf5340 is a dual core CPU, and that comes with a lot of extra possible problems11:46:31
@f_punk:matrix.orgf_punk
In reply to @wassasin:matrix.org
firefrommoonlight: I believe the devkits for the nrf5340 will release sometime next month
They are already available, at least on mouser. I received one just yesterday
11:48:35
@wassasin:matrix.orgwassasinOh really? :D11:48:52
@wassasin:matrix.orgwassasin buy 11:49:19
@wassasin:matrix.orgwassasinHas anyone here soldered a nrf by hand using a hot station?11:50:51

There are no newer messages yet.


Back to Room List