Skip to content

time.Tick() Ticker functions won't compile on RP Pico #2657

Closed
@bmentink

Description

@bmentink

Is the Ticker functions implemented on RP Pico? Whenever I try to use them, I get this loader error about missing libs.

tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by tick.go:39 (/usr/local/go/src/time/tick.go:39)
>>>               /tmp/tinygo88041620/main.o:(tinyproj/bldc.test$gowrapper)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo88041620/main: exit status 1

As a simple test, I am running the following function:

func test() {
	for tick := range time.Tick(3 * time.Second) {

		fmt.Println(".", tick)
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions