!dASuPAbUCerhCYFqJs:matrix.org

nRF Rust

255 Members
Discussion medium for the nRF-rs organization on Github27 Servers

Load older messages


SenderMessageTime
17 Jun 2024
@jamesmunns:beeper.comJames Munnsjesus oof owie14:36:42
@jamesmunns:beeper.comJames Munns diondokter was this the fix for all the spooky stuff you've been chasing recently? 14:37:01
@dirbaio:matrix.orgdirbaiobtw nordic's docs say the shmem stuff must be in the lower 128k of ram14:37:12
@dirbaio:matrix.orgdirbaiobut the addrs there are in the upper 128k14:37:33
@diondokter:matrix.orgdiondokter
In reply to @jamesmunns:beeper.com
diondokter was this the fix for all the spooky stuff you've been chasing recently?
Yep
14:38:30
@jamesmunns:beeper.comJames Munns
In reply to @diondokter:matrix.org
Yep
jeeeeeeeeeez
14:38:40
@jamesmunns:beeper.comJames Munns Is that lifetime documented in their API? 14:40:16
@diondokter:matrix.orgdiondokterThe zephyr code Jonathan looked at when he started this library had this being a stack variable too. Then they updated the library, but no doc changes14:40:25
@diondokter:matrix.orgdiondokter
In reply to @jamesmunns:beeper.com
Is that lifetime documented in their API?
Nooopppeee
14:40:30
@dirbaio:matrix.orgdirbaio

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0-rc2/nrfxlib/nrf_modem/doc/ug_nrf_modem_porting_os.html

The Modem library needs a region of RAM within the first lower 128KB to share with the modem.

14:40:35
@dirbaio:matrix.orgdirbaio ah, sorry; 0x2001_0000 is in the lower 128kb 🤦‍♂️ 14:41:20
@jamesmunns:beeper.comJames Munns honestly, this would make a REALLY good blog post diondokter: I see a lot of "borrow checker wouldn't help for embedded" noise, this is like literally an IDEAL case where Rust would have made it clear from the function signature 14:41:20
@diondokter:matrix.orgdiondokter
In reply to @jamesmunns:beeper.com
honestly, this would make a REALLY good blog post diondokter: I see a lot of "borrow checker wouldn't help for embedded" noise, this is like literally an IDEAL case where Rust would have made it clear from the function signature
Definitely! That's a good idea.
Debugged this with wassasin and I think we spent a total of 20 mandays on it or so
14:42:49
@jamesmunns:beeper.comJames Munnsyeah, Erik pinged me and I spent an hour on it, it would have taken me a lot to find that too14:43:41
@diondokter:matrix.orgdiondokterSo we found out that a channel write in the middle of nowhere affected stuff today. Makes sense since that config pointer pointed to somewhere in the task pool14:44:37
@diondokter:matrix.orgdiondokterGlad we're done haha14:44:47
@jamesmunns:beeper.comJames MunnsYeah, get that marketing value out of dev time spent, at least lol14:45:21
@diondokter:matrix.orgdiondokterAlright, released14:47:45
@thejpster:matrix.orgthejpsterjust wanted to say "yikes" on https://github.com/nrf-rs/nrfxlib/pull/29. Also the CHANGELOG URLS need changing.14:55:51
@fuse117:matrix.orgfuse117 nrf-modem only works with the nrf9160, correct? i can't work with the nrf9161? 20:12:02
@dirbaio:matrix.orgdirbaionobody has tried it yet20:12:58
@fuse117:matrix.orgfuse117sorry, the nrf9151. 20:13:09
@dirbaio:matrix.orgdirbaioit could work, the C lib is the same for all modems20:13:29
@fuse117:matrix.orgfuse117i tried it as is with the nrf9151, but it doesn' work. i haven't dug into it yet. 20:14:11
@fuse117:matrix.orgfuse117the 9160 uses mfw version 1.* while the 9151 (and the 9161 and 9131) use mfw version 2.*. i am not familiar with these codebases, but i would assume some breaking changes across major versions20:16:43
@diondokter:matrix.orgdiondokterIt should work, especially for the nrf9161 (though I've never tried it). The 9151 has more changes. It should still work, but it would not surprise me if it needs a newer nrfxlib. The Rust wrapper is now at 2.4.120:17:41
@diondokter:matrix.orgdiondokter

@fuse117

20:18:01
18 Jun 2024
@wassasin:matrix.orgwassasinDebugging it was crazy because the celltower would lock us out regularly, and any change in the code could lead to the problem not triggering because it would change the way and timing the task pool is used08:53:15
@wassasin:matrix.orgwassasinAnd that the error occurs in the closed source library does not help either :')08:56:06
@fuse117:matrix.orgfuse117where does nordic archive their secure partition manager hex files?21:21:05

Show newer messages


Back to Room ListRoom Version: 4