From e944000f20a425cdbb76b3683e294c5f21a64a1f Mon Sep 17 00:00:00 2001 From: Layla EL-GHOUL <layla.el@stud.fils.upb.ro> Date: Wed, 12 Mar 2025 17:15:20 +0000 Subject: [PATCH 1/2] added warning --- website/lab/02/index.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/lab/02/index.mdx b/website/lab/02/index.mdx index fba0a1d..ba7c26e 100644 --- a/website/lab/02/index.mdx +++ b/website/lab/02/index.mdx @@ -457,6 +457,11 @@ Make sure you follow these steps: Please make sure you comment out (using `#` in from of the line) all the Embassy's crates that you do not plan to use. +:::warning +To initialize the Embassy RP peripherals correctly, remember to add `use embassy_rp as _;` +or leave the initialization of the peripherals ,else the peripherals won't be initialized, which may cause errors or undefined behavior when accessing hardware components. +::: + :::info For sure, you will not use USB and WiFi. This is a trial and error job, just comment out all the creates that you think you won't use and -- GitLab From cf1b6673ef802a86ea9c948b44493bf81c1fab39 Mon Sep 17 00:00:00 2001 From: Layla EL-GHOUL <layla.el@stud.fils.upb.ro> Date: Thu, 13 Mar 2025 06:31:08 +0000 Subject: [PATCH 2/2] Apply 1 suggestion(s) to 1 file(s) Co-authored-by: Alexandru RADOVICI <alexandru.radovici@upb.ro> --- website/lab/02/index.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/lab/02/index.mdx b/website/lab/02/index.mdx index ba7c26e..87356fe 100644 --- a/website/lab/02/index.mdx +++ b/website/lab/02/index.mdx @@ -458,8 +458,12 @@ Please make sure you comment out (using `#` in from of the line) all the Embassy that you do not plan to use. :::warning -To initialize the Embassy RP peripherals correctly, remember to add `use embassy_rp as _;` -or leave the initialization of the peripherals ,else the peripherals won't be initialized, which may cause errors or undefined behavior when accessing hardware components. +Please make sure the `embassy_rp` crate is included in your build either: +- by importing it with `use embassy_rp as _;` +- or by initialising the peripherals + +This crate provides the `.start_block` section that is needed by the RP2350 to boot. Not including +this crate will prevent this section from being added and will prevent the RP2350 to boot. ::: :::info -- GitLab