Dario Nieuwenhuis
502c188cf4
Merge pull request #3999 from embassy-rs/peripehral-v2
...
Remove Peripheral trait, rename PeripheralRef->Peri.
2025-03-27 15:30:40 +01:00
Dario Nieuwenhuis
d41eeeae79
Remove Peripheral trait, rename PeripheralRef->Peri.
2025-03-27 15:18:06 +01:00
Adrian Wowk
5777284304
rp: rename BOOTROM_BASE to BOOTRAM_BASE
...
Previously the constant pointing at the base of the bootram was
incorrectly called BOOTROM_BASE. According to the datasheet, the bootrom
is a 32K region starting at 0x00000000 while the bootram is a 1K region
of SRAM starting at 0x400e0000.
2025-03-26 19:05:27 -05:00
Caleb Jamison
e75903138a
Fix commented out code
2024-09-04 13:42:03 -04:00
Caleb Jamison
372270a9b9
rp235x flash support.
...
The 2350 doesn't have a boot2 like the 2040, but it does have the
concept of a xip setup function that could be customized. By default the
bootrom searches for the attached flash chip and provides an xip setup
func at the base of the bootram. That bootram is not executable, so it
still needs to be copied to ram like boot2 would be.
Currently does not use inline assembly.
Also switch to picotool, as elf2uf2 has not been patched to support the
2350.
2024-08-29 10:47:03 -04:00
Caleb Jamison
0a33edc997
Import rom_data for the rp235x, don't use intrinsics on rp235x
...
Many thanks to @thejpster for his work on the rom_data!
Working around boot2 is currently a bit hacky for the rp235x, that will
improve in upcoming rp235x flash pr.
2024-08-26 09:43:08 -04:00
Caleb Jamison
0b58ef8f1b
Fix commented out code
2024-08-13 00:54:41 -04:00
Caleb Jamison
778241fd71
Fix CI, rename private feature, address comments from dirbaio.
2024-08-12 04:32:31 -04:00
Caleb Jamison
b185e02a42
Initial rp235x support
...
Examples have been run, but there is not yet a test suite.
2024-08-08 21:35:21 -04:00
Dario Nieuwenhuis
a0f8948c1c
Update nightly, fix error with rp inline asm.
2024-07-16 16:40:54 +02:00
Alexander van Saase
e3e3728dae
rp/flash: implement embedded_storage_async::nor_flash::MultiwriteNorFlash
2024-05-18 23:28:37 +02:00
Dario Nieuwenhuis
a84b33995e
rp: remove mod sealed.
2024-04-05 00:48:46 +02:00
Rafael Bachmann
cf789be420
Merge branch 'embassy-rs:main' into barafael/minor_clippy_lints_rp
2024-03-25 14:43:18 +01:00
Dario Nieuwenhuis
eca9aac194
Fix warnings in recent nightly.
2024-03-20 16:39:09 +01:00
Rafael Bachmann
255ed29853
fix minor clippy lints in embassy_rp
2024-03-18 23:28:58 +01:00
Ulf Lilleengen
f4b77c967f
docs: document all embassy-rp public apis
...
Enable missing doc warnings.
2023-12-19 14:19:46 +01:00
Dario Nieuwenhuis
c6989dfbca
Remove nightly and unstable-traits features in preparation for 1.75.
2023-11-29 17:26:33 +01:00
Scott Mansell
c6d53e7bce
rp2040: move in_ram helper outside of Flash's impl
...
Allow it to be called from other modules.
2023-10-07 01:39:29 +02:00
Dario Nieuwenhuis
b948e37769
rp/flash: change naming to blocking_*, new_blocking.
...
- Needed for consistency with other drivers.
- Having two `new()` functions sometimes resulted in 'multiple applicable methods' errors.
2023-08-18 13:21:21 +02:00
Derek Hageman
7ed9e29326
rp: add async flash
...
Implement an async flash mode using the XIP background best effort
read interface. Only reads are actually async, write and erase remain
blocking.
2023-07-28 16:50:54 -06:00
Dario Nieuwenhuis
036e6ae30c
Rename embassy-hal-common to embassy-hal-internal, document it's for internal use only. ( #1700 )
2023-07-28 13:23:22 +02:00
Dario Nieuwenhuis
837ebe405f
rp: update rp-pac.
2023-06-16 01:41:07 +02:00
Dario Nieuwenhuis
4f03dff577
rp: add run-from-ram feature.
2023-06-06 00:06:32 +02:00
Dario Nieuwenhuis
162d485304
rp/flash: centralize USE_BOOT2 in a single const.
2023-06-05 23:41:26 +02:00
Dario Nieuwenhuis
70e1b976d8
rp/flash: fix missing clobbers, do not clobber frame pointer (r7).
2023-06-05 23:40:34 +02:00
Dario Nieuwenhuis
adf053a935
rp/flash: unify FLASH_BASE const.
2023-06-05 22:55:15 +02:00
Dario Nieuwenhuis
1a31b03976
ci: fix nrf, rp tests.
2023-05-29 22:01:19 +02:00
kalkyl
ab63f3832f
rp: Read flash unique id and jedec id
2023-05-16 11:21:17 +02:00
Dirk Stolle
0584312ef0
Fix some typos
2023-05-08 23:25:01 +02:00
kalkyl
31b54e0fbd
rustfmt
2023-04-27 17:09:16 +02:00
kalkyl
278818395e
rp: DMA behaviour during FLASH operations
2023-04-27 16:48:25 +02:00
kalkyl
eb1d2e1295
Pause CORE1 execution during flash operations
2022-12-13 04:02:28 +01:00
Ulf Lilleengen
bb89a2341c
feat: embassy-boot for rp2040
...
Add embassy-boot support for RP2040, with examples for the Raspberry Pi
Pico.
Co-authored-by: Mathias Koch <mk@blackbird.online>
2022-12-02 11:28:33 +01:00
Mathias
3c6c382465
Remove random delay from example, and move flash functions to allow using without embedded-storage in scope
2022-10-27 07:10:35 +02:00
Mathias
1669e39565
Buffer data to be written to flash in ram if it does not already reside in ram
2022-10-26 15:02:39 +02:00
Mathias
80e58426fc
Add flash example & flash HIL test
2022-10-26 12:24:04 +02:00
Mathias
ad0eb3f4bd
Implement flash padding to 256 under assumption that all QSPI NOR flashes are MultiwriteNorFlashes
2022-10-24 12:17:22 +02:00
Mathias
7152031229
Add flash ram helpers
2022-09-29 10:03:49 +02:00
Mathias
18dc0dea63
Drop rp2040-flash as dependency, as they pull in rp2040-hal for rom-data functions, which are now part of this HAL as well
2022-09-23 08:12:32 +02:00
Mathias
9d674f0212
First iteration attempt on implementing generic flash mutation access for RP2040
2022-09-23 07:59:10 +02:00
Mathias
feb840c503
First iteration attempt on implementing generic flash mutation access for RP2040
2022-09-16 13:20:22 +02:00