From 991d757eff2aa6a36bfef74e239cdc1bdf84043f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20=22xq=22=20Quei=C3=9Fner?= Date: Thu, 21 Sep 2023 10:19:02 +0200 Subject: [PATCH] Adds more working devices. --- .github/workflows/build.yml | 2 -- build.zig | 25 +++++++++++++++++++++++++ build.zig.zon | 20 ++++++++++++++++++++ ezpkg.sh | 8 ++++++-- 4 files changed, 51 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1935023..af725e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,6 @@ on: branches: [main] pull_request: branches: [main] - schedule: - - cron: '0 0 * * *' jobs: build: diff --git a/build.zig b/build.zig index 9ed2c21..3aeb293 100644 --- a/build.zig +++ b/build.zig @@ -1,6 +1,9 @@ const std = @import("std"); const rp2040 = @import("rp2040"); const stm32 = @import("stm32"); +const lpc = @import("lpc"); +const gd32 = @import("gd32"); +const nrf5x = @import("nrf5x"); pub fn build(b: *std.Build) void { const microzig = @import("microzig").init(b, "microzig"); @@ -28,6 +31,28 @@ pub fn build(b: *std.Build) void { .{ .name = "stm32f4discovery", .target = stm32.boards.stm32f4discovery }, .{ .name = "stm3240geval", .target = stm32.boards.stm3240geval }, .{ .name = "stm32f429idiscovery", .target = stm32.boards.stm32f429idiscovery }, + + // NXP LPC + // TODO: Add checksum postprocessing + .{ .name = "lpc176x5x", .target = lpc.chips.lpc176x5x }, + .{ .name = "mbed-lpc1768", .target = lpc.boards.mbed.lpc1768 }, + + // GigaDevice GD32 + .{ .name = "gd32vf103xb", .target = gd32.chips.gd32vf103xb }, + .{ .name = "gd32vf103x8", .target = gd32.chips.gd32vf103x8 }, + .{ .name = "sipeed-longan_nano", .target = gd32.boards.sipeed.longan_nano }, + + // Nordic Nrf5x + .{ .name = "nrf52832", .target = nrf5x.chips.nrf52832 }, + .{ .name = "nrf52840", .target = nrf5x.chips.nrf52840 }, + .{ .name = "nrf52840-dongle", .target = nrf5x.boards.nordic.nRF52840_Dongle }, // TODO: Add support for DFU files! + + // Espressif ESP + // .{ .name = "nrf52832", .target = nrf5x.chips.nrf52832 }, + // TODO: Add support for Espressif Update Binaries + + // Microchip ATmega + // TODO: Fix compiler bugs }; for (available_targets) |dest| { diff --git a/build.zig.zon b/build.zig.zon index e44e0ba..1180edb 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -14,5 +14,25 @@ .url = "https://github.com/ZigEmbeddedGroup/stmicro-stm32/archive/cb2893707efa6aa289fa72f02959ad5f2d9db2a1.tar.gz", .hash = "12208cab5f60ef97cac4165ad694f3ba0c7b28f279538c1539b74f7c152f34fe306d", }, + .lpc = .{ + .url = "https://github.com/ZigEmbeddedGroup/nxp-lpc/archive/be4280a8b55690e8446fd4c3186dcd6673118cd3.tar.gz", + .hash = "1220891bc5fa43b30cd024a628f8915f54691e5664d2a34e6653bf92722b222b7c7e", + }, + .gd32 = .{ + .url = "https://github.com/ZigEmbeddedGroup/gigadevice-gd32/archive/9324753cc3b8e7afe83fcda085bcfe76681a3be3.tar.gz", + .hash = "122043ff4dcbc342f25dbb936b0d9eaa701ac3509e2cbe6764be37b90d31c7a385d0", + }, + .nrf5x = .{ + .url = "https://github.com/ZigEmbeddedGroup/nordic-nrf5x/archive/0ab136860ccf7eb1d07969c3ef523f3cd898e2ff.tar.gz", + .hash = "1220980da06f9634dcff06afefa7aa111bd030018fea49f79e86657dab69621e1d08", + }, + .esp = .{ + .url = "https://github.com/ZigEmbeddedGroup/espressif-esp/archive/f7e47d07996565036501f55ed781a5f6e786b2f7.tar.gz", + .hash = "12209b0365f56df4ce83b1300da86bef605bd299e94b87f373571351f71fa2ccd461", + }, + .atmega = .{ + .url = "https://github.com/ZigEmbeddedGroup/microchip-atmega/archive/46dfd08ad13e0a9a84351cfd595b1e6e341d4839.tar.gz", + .hash = "1220b2df269bf997b77bebcebea63a8e39aea354a7075cf99878423e304394bc28eb", + }, }, } diff --git a/ezpkg.sh b/ezpkg.sh index 577c8b4..caafa03 100755 --- a/ezpkg.sh +++ b/ezpkg.sh @@ -5,5 +5,9 @@ exec ezpkg \ microzig.uf2=/home/felix/projects/zeg/uf2 \ microzig.regz=/home/felix/projects/zeg/regz \ rp2040=/home/felix/projects/zeg/device-support-package/rp2040 \ - stm32=/home/felix/projects/zeg/device-support-package/stmicro-stm32 - \ No newline at end of file + stm32=/home/felix/projects/zeg/device-support-package/stmicro-stm32 \ + lpc=/home/felix/projects/zeg/device-support-package/nxp-lpc \ + gd32=/home/felix/projects/zeg/device-support-package/gigadevice-gd32 \ + esp=/home/felix/projects/zeg/device-support-package/espressif-esp \ + nrf5x=/home/felix/projects/zeg/device-support-package/nordic-nrf5x \ + atmega=/home/felix/projects/zeg/device-support-package/microchip-atmega \ No newline at end of file