Skip to content

Commit 05a8232

Browse files
committed
fixes
1 parent f1429a4 commit 05a8232

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

port/raspberrypi/rp2xxx/build.zig

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,13 @@ pub fn init(dep: *std.Build.Dependency) Self {
176176
},
177177
}),
178178
.pico_flashless = chip_rp2040.derive(.{
179-
.entry = .{ .symbol_name = "_entry_point" },
180-
.linker_script = .{
181-
.generate = .none,
182-
.file = b.path("ld/rp2040/ram_image_linker.ld"),
183-
},
184179
.ram_image = true,
180+
// we do not need any modifications to the default generated linker script
181+
.linker_script = .{},
185182
.board = .{
186183
.name = "RaspberryPi Pico (ram image)",
187184
.url = "https://www.raspberrypi.com/products/raspberry-pi-pico/",
188-
.root_source_file = b.path("src/boards/raspberry_pi_pico.zig"),
185+
.root_source_file = b.path("src/boards/raspberry_pi_pico_flashless.zig"),
189186
},
190187
}),
191188
.pico2_arm = chip_rp2350_arm.derive(.{
@@ -196,7 +193,6 @@ pub fn init(dep: *std.Build.Dependency) Self {
196193
},
197194
}),
198195
.pico2_arm_flashless = chip_rp2350_arm.derive(.{
199-
.entry = .{ .symbol_name = "_entry_point" },
200196
.ram_image = true,
201197
.linker_script = .{
202198
.file = b.path("ld/rp2350/arm_ram_image_sections.ld"),
@@ -214,6 +210,17 @@ pub fn init(dep: *std.Build.Dependency) Self {
214210
.root_source_file = b.path("src/boards/raspberry_pi_pico2.zig"),
215211
},
216212
}),
213+
// .pico2_riscv_flashless = chip_rp2350_riscv.derive(.{
214+
// .ram_image = true,
215+
// .linker_script = .{
216+
// .file = b.path("ld/rp2350/arm_ram_image_sections.ld"),
217+
// },
218+
// .board = .{
219+
// .name = "RaspberryPi Pico 2 (ram image)",
220+
// .url = "https://www.raspberrypi.com/products/raspberry-pi-pico2/",
221+
// .root_source_file = b.path("src/boards/raspberry_pi_pico2.zig"),
222+
// },
223+
// }),
217224
},
218225
.waveshare = .{
219226
.rp2040_plus_4m = chip_rp2040.derive(.{
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub const xosc_freq = 12_000_000;

0 commit comments

Comments
 (0)