Closed pcting closed 2 months ago
occasionally i see this error:
$ tinygo flash -target=nucleo-l476rg src/examples/blinky3/blinky3.go
xPack Open On-Chip Debugger 0.12.0+dev-01557-gdd1758272-dirty (2024-04-02-07:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
WARNING: interface/stlink-v2-1.cfg is deprecated, please switch to interface/stlink.cfg
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 500 kHz
Info : STLINK V2J33M25 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.255227
Info : [stm32l4x.cpu] Cortex-M4 r0p1 processor detected
Info : [stm32l4x.cpu] target has 6 breakpoints, 4 watchpoints
Info : [stm32l4x.cpu] Examination succeed
Info : starting gdb server for stm32l4x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Error: timed out while waiting for target halted
** Unable to reset target **
shutdown command invoked
error: failed to flash /tmp/tinygo3652766739/main.hex: exit status 1
Hello @pcting thank you for adding this new board/processor.
Did you actually mean to add the additional example? I'm pretty sure that is actually not needed. It would be better to just add the new board to the smoketests located here: https://github.com/tinygo-org/tinygo/blob/dev/GNUmakefile#L696-L731
Hello @pcting thank you for adding this new board/processor.
Did you actually mean to add the additional example? I'm pretty sure that is actually not needed. It would be better to just add the new board to the smoketests located here: https://github.com/tinygo-org/tinygo/blob/dev/GNUmakefile#L696-L731
ah, i wasn't aware of the smoketest
target. thanks! i'll remove the new blinky3.go example
@deadprogram i've cleaned up the unneeded example. let me know if anything else needs changing. thanks
i think i need to revisit the arduino pin mapping before we merge
i fixed the pin mapping; it should be good now
Thanks again @pcting and @sago35 now merging.
Adding support for STM32 L476RG datasheet: https://www.st.com/resource/en/datasheet/stm32l476je.pdf board layout: https://www.st.com/resource/en/user_manual/um1724-stm32-nucleo64-boards-mb1136-stmicroelectronics.pdf
Running
blinky3.go
Notes:Serial out prints out garbageit looks like the code flashes fine as the LED blinks every second as expected, but monitoring the serial port outputs garbage. i'm trying to figure out why.building something similar using platformio: