Comments (4)
Quickly verified that there's no issue with the arduino itself by using the arduino IDE with a blink example:
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
works as expected
from tinygo.
Tinygo error seems to come from here https://github.com/tinygo-org/tinygo/blob/dev/main.go#L972
flashUF2UsingMSD
called with options here https://github.com/tinygo-org/tinygo/blob/dev/main.go#L484
issue seems to be the config.Target.FlashVolume
that's part of the config built here https://github.com/tinygo-org/tinygo/blob/dev/main.go#L374
So we're calling the Flash
function if the option is flash
https://github.com/tinygo-org/tinygo/blob/dev/main.go#L1635
the config is built https://github.com/tinygo-org/tinygo/blob/release/builder/config.go#L14 because what in there is related to this https://github.com/tinygo-org/tinygo/blob/dev/main.go#L1514
target: https://github.com/tinygo-org/tinygo/blob/release/builder/config.go#L38
Okay, so we have the flash volume in there
Line 53 in 6384eca
Okay so we load from https://github.com/tinygo-org/tinygo/blob/release/targets/nano-rp2040.json
and then the inherits https://github.com/tinygo-org/tinygo/blob/release/targets/rp2040.json
okay, but where does the flashvolume come from? This is kinda where I'm getting lost
from tinygo.
Via Slack:
you probably need to manually kick-in the bootloader the first time flashing that particular board
Hold down the BOOTSEL button while plugging the board into USB.
you only need to do that once. afterwards, tinygo will detect it is being flashed and kick into bootloader mode
usually if the rp2040 board has already been flashed with something like arduino, it will also work without manual bootloader
from tinygo.
local machine issue: fixed by reboot
from tinygo.
Related Issues (20)
- tinygo can't compile GO app to wasm file HOT 1
- wasm and wasm-unknown: allocator always allocates 2 pages (2x64k) HOT 7
- tinygo source displeases linters HOT 1
- What happened to `-wasm-abi=generic`? HOT 1
- Enhancing TinyGo Build-Tags with Board-Specific Feature Tags
- latest versioning of compatible matrix of tinygo/go HOT 2
- TinyGo Program blocks forever with os.Pipe, go proc, and a sleep; same program returns as expected with go
- Error to find build id on OpenBSD
- Unable to find headers for building HOT 2
- Undefined os/signal symbols
- First write to WS2812 Led 0 sets green to 0xff (seen on RP2040 boards) HOT 12
- Support LLVM 18 HOT 4
- `reflect.Type.NumMethod()` returns 0 for interface types, impacting CBOR unmarshalling
- Very long indexing in IDE GoLand.
- hid-keyboard not working on nvidia agx orin HOT 11
- Does tinygo not support TLS features?
- Compiling programs SIGKILL on latest arm mac HOT 1
- tinygo build -gc none fails HOT 1
- `Type.AssignableTo` panics with "reflect: unimplemented: AssignableTo with interface"
- Is there a GOMEMLIMIT analog in TinyGo? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinygo.