!yafYEipFNsXDdwiHMT:matrix.org

RTIC - The hardware accelerated RTOS

775 Members
Welcome to the chat room for RTIC, the hardware accelerated RTOS written in Rust! | Documentation: https://rtic.rs/ | Discuss, coordinate, help: https://github.com/rtic-rs | Meeting-notes: https://rtic.rs/meeting | Code of conduct: https://www.rust-lang.org/conduct.html79 Servers

Load older messages


SenderMessageTime
23 Feb 2024
@rtic-bot:matrix.orgrtic-bot

PR merged: Fix nightly compiler CI failure

07:37:51
@rtic-bot:matrix.orgrtic-bot

PR merged: rtic-sync: Remove unstable flag, and add defmt derives

07:39:47
24 Feb 2024
@rtic-bot:matrix.orgrtic-bot

New PR: rtic-macros: fix #[cfg] for hardware and software tasks

12:10:20
@slushee:arcticfoxes.netSlushee

Hi! I'm trying to get RTIC to work on the RPi Pico and when trying to build with cargo +nightly run I get the following linker error:

flip-link: the native linker failed to link the program normally; please check your project configuration and linker scripts

I've made a temporary repo with the project in case it's of any use: https://gitlab.com/Slushee/delete-me

Am I missing something? or doing something wrong? (please @ me)

16:33:18
@slushee:arcticfoxes.netSlusheeOh nevermind I got it16:38:30
@slushee:arcticfoxes.netSlushee I was missing the critical-section-single-core feature on cortex-m 16:39:10
@slushee:arcticfoxes.netSlushee * I was missing the critical-section feature on cortex-m 16:47:31
@slushee:arcticfoxes.netSlushee * I was missing the critical-section-single-core feature on cortex-m 16:47:54
@slushee:arcticfoxes.netSlusheegreat, if I add that I get compile errors16:48:50
@slushee:arcticfoxes.netSlushee
error: You must set at most one of these Cargo features: restore-state-none, restore-state-bool, restore-state-u8, restore-state-u16, restore-state-u32, restore-state-u64
  --> /home/slushee/.cargo/registry/src/index.crates.io-6f17d22bba15001f/critical-section-1.1.2/src/lib.rs:64:1
   |
64 | compile_error!("You must set at most one of these Cargo features: restore-state-none, restore-state-bool, restore-state-u8, restore-state-u16, restore-state-u32, restore-state-u64");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:49:19
@slushee:arcticfoxes.netSlusheeIf I use rp-pico 0.7 instead of 0.8 it works17:04:39
@9names:matrix.org9names
In reply to @slushee:arcticfoxes.net

Hi! I'm trying to get RTIC to work on the RPi Pico and when trying to build with cargo +nightly run I get the following linker error:

flip-link: the native linker failed to link the program normally; please check your project configuration and linker scripts

I've made a temporary repo with the project in case it's of any use: https://gitlab.com/Slushee/delete-me

Am I missing something? or doing something wrong? (please @ me)

is that repo private?
23:04:47
@slushee:arcticfoxes.netSlushee I deleted it 😅
The problem is that I was using rp-pico 0.8.0 instead of 0.7
You can generate it yourself with https://gitlab.com/slusheea/rp2040-template with the multi-framework branch though
23:06:34
@slushee:arcticfoxes.netSlushee using the rp-pico and RTIC options on the cargo-generate 23:07:39
@slushee:arcticfoxes.netSlushee *

Hi! I'm trying to get RTIC to work on the RPi Pico and when trying to build with cargo +nightly run I get the following linker error:

flip-link: the native linker failed to link the program normally; please check your project configuration and linker scripts

I've made a temporary repo with the project in case it's of any use: https://gitlab.com/Slushee/delete-me (deleted)

Am I missing something? or doing something wrong? (please @ me)

23:08:40
25 Feb 2024
@9names:matrix.org9names

couple problems in your template:

  • device should be rp_pico:hal:pac
  • using multiple critical-section impls (either use cortex-m's if you're doing single core, or rp2040-hal's if you're doing dual core firmware)
  • you didn't have use defmt_rtt as _ inside your app

i'm not sure how your template worked for you with rp-pico 0.7 tbh.
working gist:
https://gist.github.com/9names/e576b0defeb8c122b26c5ab988266eb0

00:02:36
@slushee:arcticfoxes.netSlushee Ohh I didn't notice I forgot the ::hal::pac on the template 😅 and I added the critical-section-single-core later after seeing an article on ferrous syste, 00:24:54
@slushee:arcticfoxes.netSlushee * Ohh I didn't notice I forgot the ::hal::pac on the template 😅 and I added the critical-section-single-core later after seeing an article on ferrous syste,' 00:24:56
@slushee:arcticfoxes.netSlushee * Ohh I didn't notice I forgot the ::hal::pac on the template 😅 and I added the critical-section-single-core later after seeing an article on ferrous system's website 00:25:00
@slushee:arcticfoxes.netSlusheebut I totally forgot to add defmt_rtt! That did it, thank you so much!00:25:28
@slushee:arcticfoxes.netSlusheeRedacted or Malformed Event01:01:03
@sauce90hz:matrix.org@sauce90hz:matrix.org joined the room.03:43:35
@boiethios:matrix.orgFélix 🔻 changed their display name from Félix the Newbie to Félix 🔻.12:00:40
@sauce90hz:matrix.org@sauce90hz:matrix.org left the room.12:48:27
26 Feb 2024
@andelf:matrix.orgAndelf joined the room.04:41:43
@rtic-bot:matrix.orgrtic-bot

New PR: Update rp2040-pac requirement from >=0.2.0,<0.6 to >=0.2.0, <0.7

16:59:07
@avery71:matrix.orgAvery (she/they) joined the room.22:37:00
27 Feb 2024
@tana_ash:matrix.orgtana_ash joined the room.04:34:44
@tana_ash:matrix.orgtana_ash Hi, I am creating a program that use the channel feature of rtic-sync.
I assumed it was almost like std::sync::mpsc::channel except being async, but it generated error when using CAPACITY=0.
So, can I use rtic-sync channel as a 'rendezvous channel', like std channel with zero length?
04:51:25
@korken89:matrix.orgkorken89
In reply to @tana_ash:matrix.org
Hi, I am creating a program that use the channel feature of rtic-sync.
I assumed it was almost like std::sync::mpsc::channel except being async, but it generated error when using CAPACITY=0.
So, can I use rtic-sync channel as a 'rendezvous channel', like std channel with zero length?
Hi, that channel does not support a length of one - if you want that it sounds like a signal. rtic-sync does currently not have a signal implementation (PRs welcome!) but embassy-sync does. You can use that :)
07:11:25

There are no newer messages yet.


Back to Room ListRoom Version: 4