
This currently doesn't work with `tinygo flash` yet (even with `-programmer=openocd`), you can use pyocd instead. For example, from the Bluetooth package: tinygo build -o test.hex -target=microbit-v2-s113v7 ./examples/advertisement/ pyocd flash --target=nrf52 test.hex I intend to add support for pyocd to work around this issue, so that a simple `tinygo flash` suffices.
14 строки
400 Б
Text
14 строки
400 Б
Text
|
|
MEMORY
|
|
{
|
|
FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 0x1C000, LENGTH = 0x80000 - 0x1C000
|
|
RAM (xrw) : ORIGIN = 0x20000000 + 0x1e20, LENGTH = 0x20000 - 0x1e20
|
|
}
|
|
|
|
_stack_size = 4K + __softdevice_stack;
|
|
|
|
/* These values are needed for the Nordic SoftDevice. */
|
|
__app_ram_base = ORIGIN(RAM);
|
|
__softdevice_stack = DEFINED(__softdevice_stack) ? __softdevice_stack : 0;
|
|
|
|
INCLUDE "targets/arm.ld"
|