nRF Rust

106 Members
Discussion medium for the nRF-rs organization on Github10 Servers

Load older messages

8 Apr 2021
@dirbaio:matrix.orgdirbaioAnd make sure you're not using the same number spi / twi 18:51:18
@dirbaio:matrix.orgdirbaioThey're the same peripheral actually 18:51:33
@thejpster:matrix.orgthejpsterThat's ... unexpected20:12:14
@therealprof:matrix.orgtherealprofAre there any really usable "shortcuts"? They're a total minefield which you're pretty much certain to step on, especially when trying to write unified code for different chips.22:08:29
9 Apr 2021
@robyoung:matrix.orgrobyoung joined the room.06:53:50
@therealprof:matrix.orgtherealprofYeah, isn't that what Nordic calls those combined actions (it's been some time).08:42:17
@therealprof:matrix.orgtherealprofBasically you'd use a shortcut by doing a register write and then the chip would internally do various things, e.g. wait for the bus to be ready before trying to transmit, rather than the developer having to busy poll a register and then doing another write to do the transmit.08:44:35
@therealprof:matrix.orgtherealprofProblem is there so many errata (and probably even unknown issues) with them and different ones in different chips that it makes them pretty much unusable in my experience.08:45:24
@thejpster:matrix.orgthejpsterAh, I see. I don't think the UARTE HAL driver uses any of them currently.10:21:28
@thejpster:matrix.orgthejpsterI've applied the "anomaly workaround" from the upstream C hal but ... now the code is stuck waiting for endtx or txstopped, which never comes.10:22:04
@thejpster:matrix.orgthejpsterAnd nothing comes out of the UART.10:22:14
@thejpster:matrix.orgthejpsterAh, no. The board was clearly just stuck - nothing was coming out of the bootloader either. It seems OK now.10:24:32
@thejpster:matrix.orgthejpsterUgh. The latest nrf_modem library seems to do a bunch of IPC stuff that the only one didn't, which I now have to implement.11:17:48
11 Apr 2021
@barafael:matrix.orgbarafaelThrough a journey of bad soldering, I have lost access to the SWD pins of my already soldered bga nrf52840. Is there any other way to get programs on there, like boot pins and a UART?20:49:51
@dirbaio:matrix.orgdirbaiothere's no builtin bootloader :(20:54:37
In reply to @dirbaio:matrix.org
there's no builtin bootloader :(
OK, goodbye cute little board, then. There is a functioning program on there, but yeah...
@dirbaio:matrix.orgdirbaio there are bootloaders in the sdk but I don't think the chip comes with any from factory 20:59:19
12 Apr 2021
@robyoung:matrix.orgrobyoungDoes anyone know where I can find examples or docs on using the timer compare interrupt? I am trying to convert this code to latest version of nrf-hal but I'm really struggling https://github.com/therealprof/microbit/blob/ac4fe9047f40e672cafce2ad8c7a34dfbd808d73/src/display/timer.rs#L36-L6419:20:35
@dirbaio:matrix.orgdirbaiocurrent nrf-hal seems to support only cc0 interrupts19:26:00
@dirbaio:matrix.orgdirbaioyou'll have to use the PAC directly19:28:44
@robyoung:matrix.orgrobyoungDo you know where I might find more info on how to do that?19:32:51
@dirbaio:matrix.orgdirbaiothe PAC just does reading/writing registers19:34:38
@dirbaio:matrix.orgdirbaiowhat the registers do is documented in the nrf product specifications https://infocenter.nordicsemi.com/topic/ps_nrf52840/timer.html?cp=4_0_0_5_2919:34:51
@dirbaio:matrix.orgdirbaioand checking the source of the old hal may help too 19:38:05
@robyoung:matrix.orgrobyoungAhh, that's really helpful thank you.19:55:30
13 Apr 2021
@jaredwolff:matrix.orgjaredwolff joined the room.03:08:25
14 Apr 2021
@hanno:braun-odw.euHanno Braun joined the room.13:21:41
@hannobraun:matrix.orgHanno Braun left the room.13:21:54

There are no newer messages yet.

Back to Room List