Skip to content

LittleFS mounted on RAM - STM32F429zi #54166

Discussion options

You must be logged in to vote

Using the following (added to the dts) or as a overlay file (for a 32kB filesystem), and enable the flash simulator (CONFIG_FLASH_SIMULATOR=y):

/ {
	soc {
		flash_controller2: flash-controller@2 {
			compatible = "zephyr,sim-flash";
			reg = <0x00000000 DT_SIZE_K(32)>;

			#address-cells = <1>;
			#size-cells = <1>;
			erase-value = <0xff>;

			flash_sim0: flash_sim@0 {
				status = "okay";
				compatible = "soc-nv-flash";
				erase-block-size = <512>;
				write-block-size = <1>;
				reg = <0x00000000 DT_SIZE_K(32)>;

				partitions {
					compatible = "fixed-partitions";
					#address-cells = <1>;
					#size-cells = <1>;

					lfsram_partition: partition@0 {
						label = "lfsram";
					…

Replies: 3 comments 21 replies

Comment options

You must be logged in to vote
2 replies
@erwango
Comment options

erwango Jan 30, 2023
Collaborator

@GeorgePriestner-Eaton
Comment options

Comment options

You must be logged in to vote
16 replies
@Laczen
Comment options

Laczen Apr 26, 2023
Collaborator

@vachagan-petrosyan
Comment options

@Laczen
Comment options

Laczen Apr 26, 2023
Collaborator

@Laczen
Comment options

Laczen Apr 26, 2023
Collaborator

Answer selected by GeorgePriestner-Eaton
@vachagan-petrosyan
Comment options

@Laczen
Comment options

Laczen Apr 27, 2023
Collaborator

@GeorgePriestner-Eaton
Comment options

@Laczen
Comment options

Laczen Apr 28, 2023
Collaborator

Comment options

You must be logged in to vote
3 replies
@dman82499
Comment options

@Laczen
Comment options

Laczen Apr 10, 2024
Collaborator

@dman82499
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants