Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions _demo/embed/esp32c3/write/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "github.com/goplus/lib/c"

func main() {
c.Printf(c.Str("Hello from ESP32-C3 via USB Serial JTAG!\n"))
}
8 changes: 4 additions & 4 deletions internal/crosscompile/compile/libc/libc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ func TestGetNewlibESP32Config_LibConfig(t *testing.T) {
t.Errorf("Expected Name '%s', got '%s'", expectedName, config.Name)
}

expectedVersion := "esp-4.3.0_20250211-patch3"
expectedVersion := "esp-4.3.0_20250211-patch4"
if config.Version != expectedVersion {
t.Errorf("Expected Version '%s', got '%s'", expectedVersion, config.Version)
}

expectedUrl := "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch3.tar.gz"
expectedUrl := "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch4.tar.gz"
if config.Url != expectedUrl {
t.Errorf("Expected Url '%s', got '%s'", expectedUrl, config.Url)
}

expectedArchiveSrcDir := "newlib-esp-4.3.0_20250211-patch3"
expectedArchiveSrcDir := "newlib-esp-4.3.0_20250211-patch4"
if config.ResourceSubDir != expectedArchiveSrcDir {
t.Errorf("Expected ResourceSubDir '%s', got '%s'", expectedArchiveSrcDir, config.ResourceSubDir)
}

// Test String() method
expectedString := "newlib-esp32-esp-4.3.0_20250211-patch3"
expectedString := "newlib-esp32-esp-4.3.0_20250211-patch4"
if config.String() != expectedString {
t.Errorf("Expected String() '%s', got '%s'", expectedString, config.String())
}
Expand Down
6 changes: 3 additions & 3 deletions internal/crosscompile/compile/libc/newlibesp.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func withDefaultCCFlags(ccflags []string) []string {
// GetNewlibESP32Config returns the configuration for downloading and building newlib for ESP32
func GetNewlibESP32Config() compile.LibConfig {
return compile.LibConfig{
Url: "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch3.tar.gz",
Url: "https://github.com/goplus/newlib/archive/refs/tags/esp-4.3.0_20250211-patch4.tar.gz",
Name: "newlib-esp32",
Version: "esp-4.3.0_20250211-patch3",
ResourceSubDir: "newlib-esp-4.3.0_20250211-patch3",
Version: "esp-4.3.0_20250211-patch4",
ResourceSubDir: "newlib-esp-4.3.0_20250211-patch4",
}
}

Expand Down
Loading
Loading