Ron Evans
6e97079367
target: add Pimoroni Pico Plus2 ( #4735 )
...
* machine: separate definitions for ADC pins on rp2350/rp2350b
Signed-off-by: deadprogram <ron@hybridgroup.com >
* targets: add support for Pimoroni Pico Plus2
Signed-off-by: deadprogram <ron@hybridgroup.com >
---------
Signed-off-by: deadprogram <ron@hybridgroup.com >
Co-authored-by: Patricio Whittingslow <graded.sp@gmail.com >
2025-02-21 09:56:52 +01:00
soypat
9c7bbce029
rp2350: add pll generalized solution; fix ADC handles; pwm period fix
2025-02-21 09:56:52 +01:00
soypat
0ec1cb1e19
machine/rp2350: extending support to include the rp2350b
2025-02-21 09:56:52 +01:00
Scott Feldman
e7118e5bda
add comboat_fw tag for elecrow W5 boards with Combo-AT Wifi firmware
2025-02-21 07:22:17 +01:00
Ron Evans
150d9d1c6b
fix: correctly handle id lookup for finalizeRef call
...
Modify the ID used for looking up the reference, based on suggestion made by @prochac
Also use console.error in the caase that the reference is not found, since it is now actually
known to be an error.
2025-02-20 22:17:38 +01:00
Laurent Demailly
8fe039156b
fix: Avoid total failure on wasm finalizer call
2025-02-20 22:17:38 +01:00
deadprogram
190c20825f
targets: turn on GC for TKey1 device, since it does in fact work
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2025-02-14 12:49:20 +01:00
HattoriHanzo031
d55a89f96a
board: support for NRF51 HW-651 ( #4712 )
...
NRF51: Support for NRF51 HW-651 board
* smoketest
* removed redundant flash-method
* smoketest fix
* description and links
* link fix
2025-01-30 05:46:52 +01:00
Elias Naur
080a6648e9
targets: match Pico2 stack size to Pico
...
Took me a while to debug weird crashes after switching from Pico to
Pico2.
2025-01-26 17:04:04 +08:00
vaaski
4f39be9c3b
targets: esp32c3-supermini ( #4518 )
2025-01-20 21:44:58 +01:00
Scott Feldman
7305a44f0c
targets: add support for Elecrow Pico rp2350 W5 boards ( #4706 )
...
https://www.elecrow.com/pico-w5-microcontroller-development-boards-rp2350-microcontroller-board.html
Just the basics to get several test to work (blinky1, flash).
This board has an rtl8720d Wifi/bluetooth chip wired to UART1, but the
rtl8720d firmware installed is the AT cmd set, not the RPC interface
used by the rtl8720dn driver, so no wifi support at the moment.
---------
Co-authored-by: Yurii Soldak <ysoldak@gmail.com >
2025-01-20 15:36:03 +01:00
Scott Feldman
74effd2fa9
targets: add support for Elecrow Pico rp2040 W5 boards ( #4705 )
...
https://www.elecrow.com/pico-w5-microcontroller-development-boards-rp2040-microcontroller-board-support-wifi-2-4ghz-5ghz-bluetooth5.html
Just the basics to get several test to work (blinky1, flash).
This board has an rtl8720d Wifi/bluetooth chip wired to UART1, but the
rtl8720d firmware installed is the AT cmd set, not the RPC interface
used by the rtl8720dn driver, so no wifi support at the moment.
2025-01-20 13:48:51 +01:00
Ayke van Laethem
9e9768b51d
all: add support for LLVM 19
2025-01-20 06:15:33 +01:00
Volodymyr Pobochii
b15adf23f8
machine: add support for waveshare-rp2040-tiny ( #4683 )
2025-01-14 01:53:40 +01:00
deadprogram
c4cfc01ba3
targets: add support for Pimoroni Tiny2350 board
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-12-19 10:12:57 +01:00
Patricio Whittingslow
37f35f8c91
Add RP2350 support ( #4459 )
...
machine/rp2350: add support
* add linker scripts for rp2350
* add bootloader
* begin melding rp2040 and rp2350 APIs
* add UART
* add rp2350 boot patching
* Fix RP2350 memory layout (#4626 )
* Remove rp2040-style second stage bootloader.
* Add 'minimum viable' IMAGE_DEF embedded block
* Create a pico2 specific target
* Implement rp2350 init, clock, and uart support
* Merge rp2 reset code back together
* Separate chip-specific clock definitions
* Clear pad isolation bit on rp2350
* Init UART in rp2350 runtime
* Correct usb/serial initialization order
* Implement jump-to-bootloader
* test: add pico2 to smoketests
---------
Signed-off-by: deadprogram <ron@hybridgroup.com >
Co-authored-by: Matthew Mets <matt.mets@cibomahto.com >
Co-authored-by: Matt Mets <matt@blinkinlabs.com >
Co-authored-by: deadprogram <ron@hybridgroup.com >
2024-12-18 19:36:30 +01:00
Ron Evans
17302ca762
targets: add implementation for Tillitis TKey device ( #4631 )
...
* initial implementation for Tillitis TKey device
* add UART implementation for TKey
* add Pin interface implementation for TKey touch sensor
* add RNG interface implementation for TKey
* add helpful machine package functions to return identifiers such as name and version for TKey
* use built-in timer for sleep timing on TKey
* modify UART implementation for TKey to implement Serialer interface
* implement BLAKE2s ROM function call for TKey device
* handle abort by triggering TKey device fault using illegal instruction to halt CPU
* simplify TKey implementation by inheriting from existing riscv32 target
* return error for trying to configure invalid baudrates on UART
* add tkey to builder test
* be very specific for features passed to LLVM for specific config in use for TKey
* handle feedback items from TKey device code review
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-12-14 14:26:03 +01:00
Ayke van Laethem
258dac2324
wasm: tidy up wasm_exec.js a bit
2024-11-14 11:02:54 -08:00
Damian Gryski
91563cff1f
targets/wasm_exec: call process.exit() when go.run() returns
2024-11-14 09:16:25 +01:00
Ayke van Laethem
ceb7891986
wasm: correctly return from run() in wasm_exec.js
...
Instead of hanging forever, it should return the exit code from os.Exit.
2024-11-08 11:55:38 +01:00
Randy Reddig
0edeaf657f
tinygo: revise and simplify wasmtime argument handling ( #4555 )
2024-10-28 17:57:24 +01:00
Ayke van Laethem
0f95b4102d
wasm: use precise GC for WebAssembly (including WASI)
...
With a few small modifications, all the problems with `-gc=precise` in
WebAssembly seem to have been fixed.
I didn't do any performance measurements, but this is supposed to
improve GC performance.
2024-10-23 09:13:30 +01:00
Ayke van Laethem
e615c25319
targets: add WaveShare ESP-C3-32S-Kit
...
I've had this board for a while now, but never added proper TinyGo
support. So here is a PR to do just that.
2024-10-22 11:21:48 +01:00
Ayke van Laethem
4ef5109a07
wasm: add //go:wasmexport support to js/wasm
...
This adds support for //go:wasmexport with `-target=wasm` (in the
browser). This follows the //go:wasmexport proposal, meaning that
blocking functions are not allowed.
Both `-buildmode=default` and `-buildmode=c-shared` are supported. The
latter allows calling exported functions after `go.run()` has returned.
2024-10-18 10:07:21 +01:00
deadprogram
62c1555aa8
targets: add bulk memory flags to wasm-unknown target since basically every runtime has it now
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-10-09 08:18:58 +01:00
Randy Reddig
453a1d35c3
compiler, runtime: enable go:wasmexport for wasip2 ( #4499 )
...
* compiler: prefer go:wasmexport over go:export
* runtime, targets/wasip2: enable -buildmode=c-shared for wasip2
* runtime: rename import from wasi_run to wasiclirun (PR feedback)
2024-10-04 17:36:47 -07:00
Ayke
9da8b5c786
wasm: add //go:wasmexport support ( #4451 )
...
This adds support for the `//go:wasmexport` pragma as proposed here:
https://github.com/golang/go/issues/65199
It is currently implemented only for wasip1 and wasm-unknown, but it is
certainly possible to extend it to other targets like GOOS=js and
wasip2.
2024-10-04 15:33:47 -07:00
Randy Reddig
d4729f92bd
targets/wasip2: add wasmtime -S args to support network interfaces
2024-09-17 11:24:13 +02:00
Ayke van Laethem
c931bc7394
wasip2: do not export the _start function
...
It seems to have been replaced with the Component Model `run` function.
2024-09-06 08:54:20 +02:00
Warren Guy
1f3e0004a9
add board: RAKwireless RAK4631 ( #4454 )
...
targets: add rak4631
2024-09-05 11:49:36 +02:00
deadprogram
16950780d3
targets: remove import-memory flag from wasm-unknown target to fix #4319
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-08-17 18:16:39 +02:00
Kobayashi Shunta
841abb0903
feat: add node: specifier
2024-08-09 20:30:58 +02:00
Damian Gryski
9cb263479c
wasi preview 2 support ( #4027 )
...
* all: wasip2 support
Co-authored-by: Randy Reddig <randy.reddig@fastly.com >
2024-07-02 07:02:03 -07:00
deadprogram
880e940417
targets: add cyw43439 tag to badger2040-w and also add new pico-w target for wireless support
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-06-11 07:57:58 +02:00
Ayke van Laethem
81ce7fb738
LLVM 18 support
2024-05-24 19:12:26 +02:00
deadprogram
ee3a05f1de
targets: add support for Badger2040 W
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-05-13 20:10:36 +02:00
Johann Freymuth
1d9f26cee1
targets: add support for m5paper
2024-05-12 16:09:27 +02:00
Elias Naur
2b3b870bfe
mksnanov3: limit programming speed to 1800 kHz
...
Both of my development boards exhibit stability problems when
programming at the default 4000 kHz speed of the target/stmf32d4x
OpenOCD configuration.
Note that the speed limit must be set by an event handler, because it
is hard-coded by a similar event handler in stmf32f4x.cfg:
$_TARGETNAME configure -event reset-init {
# Configure PLL to boost clock to HSI x 4 (64 MHz)
...
# Boost JTAG frequency
adapter speed 8000 <-- resolves to 4000 kHz by the SWD interface
}
While here, replace the reference to the deprecated "stlink-v2"
configuration.
2024-04-27 13:02:20 +02:00
Patrick Ting
22bf045c9a
add stm32 nucleol476rg support
2024-04-19 20:50:00 +02:00
Randy Reddig
cfcc894855
targets: add wasi.json that inherits wasip1.json
...
PR feedback
2024-03-27 16:01:40 +01:00
Randy Reddig
8e8ad9004f
all: replace target=wasi with target=wasip1
...
This eliminates the 'wasi' build tag in favor of 'GOOS=wasip1', introduced in Go 1.21.
For backwards compatablity, -target=wasi is a synonym for -target=wasip1.
2024-03-27 16:01:40 +01:00
Patrick Lindsay
b6fdbee14e
Begin implementing support for Adafruit ESP32 Feather V2
2024-03-27 11:55:25 +01:00
Ayke van Laethem
7c546525ea
wasm-unknown: add math and memory builtins that LLVM needs
...
This new library is needed for wasm targets that aren't WASI and don't
need/want a libc, but still need some intrinsics that are generated by
LLVM.
2024-03-26 12:20:50 +01:00
Jonathan Böcker
a7ddb33bea
Add pca10059-s140v7 as a target
2024-03-23 10:23:07 +01:00
deadprogram
c66836cf3a
targets: add support for Thumby
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-02-23 14:00:57 +01:00
deadprogram
ad30085b93
targets/wasm_unknown: use proper defaults for GC
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-02-17 10:18:00 +01:00
deadprogram
5879d785a9
target/wasm_unknown: remove bulk memory and use imported memory for extreme tinyness
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-02-15 17:54:18 +01:00
deadprogram
186018abeb
runtime, targets: some WIP on wasm unknown in part from PR #3072
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-02-15 17:54:18 +01:00
BCG
828b9614c2
nrf52840: generic board support ( #4121 )
...
machine/nrf52840: generic board support
2024-02-12 10:37:19 +01:00
=
cc3e785692
Remove unused value
2024-01-29 16:23:35 +01:00