<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/ports/nrf, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>nrf/drivers/usb: Add USBD_IRQHandler which calls tud_int_handler.</title>
<updated>2021-02-13T02:52:53+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-13T02:52:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=701fdcacafe017c88c8cf18f64d8c26f25987e97'/>
<id>701fdcacafe017c88c8cf18f64d8c26f25987e97</id>
<content type='text'>
This is needed for TinyUSB to process USB device IRQs.

Related to #6325.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is needed for TinyUSB to process USB device IRQs.

Related to #6325.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ports: Update to build with new tinyusb.</title>
<updated>2021-02-12T01:50:36+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-08T12:47:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=035d16126ac2e4ea9b9c1c33a15104cd952897a1'/>
<id>035d16126ac2e4ea9b9c1c33a15104cd952897a1</id>
<content type='text'>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>all: Rename BYTES_PER_WORD to MP_BYTES_PER_OBJ_WORD.</title>
<updated>2021-02-04T11:46:42+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-04T05:39:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=ad4656b861f94277bed9647ca176e662ce5119e3'/>
<id>ad4656b861f94277bed9647ca176e662ce5119e3</id>
<content type='text'>
The "word" referred to by BYTES_PER_WORD is actually the size of mp_obj_t
which is not always the same as the size of a pointer on the target
architecture.  So rename this config value to better reflect what it
measures, and also prefix it with MP_.

For uses of BYTES_PER_WORD in setting the stack limit this has been
changed to sizeof(void *), because the stack usually grows with
machine-word sized values (eg an nlr_buf_t has many machine words in it).

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "word" referred to by BYTES_PER_WORD is actually the size of mp_obj_t
which is not always the same as the size of a pointer on the target
architecture.  So rename this config value to better reflect what it
measures, and also prefix it with MP_.

For uses of BYTES_PER_WORD in setting the stack limit this has been
changed to sizeof(void *), because the stack usually grows with
machine-word sized values (eg an nlr_buf_t has many machine words in it).

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ports: Remove def of MP_PLAT_PRINT_STRN if it's the same as the default.</title>
<updated>2021-02-04T11:39:17+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-04T03:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=7c4435459261f1ea93577938b1ab281239d159e7'/>
<id>7c4435459261f1ea93577938b1ab281239d159e7</id>
<content type='text'>
To simplify config, there's no need to specify MP_PLAT_PRINT_STRN if it's
the same as the default definition in py/mpconfig.h.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To simplify config, there's no need to specify MP_PLAT_PRINT_STRN if it's
the same as the default definition in py/mpconfig.h.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nrf/README: Add use of "make submodules" in alternative build paragraph.</title>
<updated>2021-01-30T03:32:55+00:00</updated>
<author>
<name>Chris Hemingway</name>
</author>
<published>2021-01-24T14:40:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=993ab6aa2c2e8eadcfdf64371bfddaa8304f26cb'/>
<id>993ab6aa2c2e8eadcfdf64371bfddaa8304f26cb</id>
<content type='text'>
Add "make submodules" to commands when building for the first time.
Otherwise, on a first time build, the submodules have not been checked out
and a lot of `fatal error: nrfx.h: No such file or directory` errors are
printed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add "make submodules" to commands when building for the first time.
Otherwise, on a first time build, the submodules have not been checked out
and a lot of `fatal error: nrfx.h: No such file or directory` errors are
printed.
</pre>
</div>
</content>
</entry>
<entry>
<title>nrf: Change selected boards to utilize pre-flashed bootloader.</title>
<updated>2020-12-07T19:04:50+00:00</updated>
<author>
<name>Glenn Ruben Bakke</name>
</author>
<published>2020-12-03T20:22:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=d0b8554df477ca1b9daf634d01604e3f760909ca'/>
<id>d0b8554df477ca1b9daf634d01604e3f760909ca</id>
<content type='text'>
The nrf52840-mdk-usb-dongle and pca10050 comes with a pre-flashed
bootloader (OpenBootloader).

This commit updates the boards "mpconfigboard.mk" to use DFU as
default flashing method and set the corresponding BOOTLOADER
settings such that nrf52840_open_bootloader_1.2.x.ld linker
script is used.

The default DFU flashing method can be disabled by issuing "DFU=0"
when invoking make. This will lead to "segger" being used as default
flashing tool. When using "DFU=0", the linker scripts will not
compensate for any MBR and Bootloader region being present, and might
overwrite them if they were present.

The commit also removes the custom linker script specific to
nrf52840-mdk-usb-dongle as it now points to a generic.

Updated nrf52840-mdk-usb-dongle's README.md to be more clear on
how to deploy the built firmware.

The port README.md has also been updated. In the list of target
boards a new column has been added to indicate which bootloader
is present on the target board. And for consistency, changed all
examples in the README.md to use "deploy" instead of "flash".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The nrf52840-mdk-usb-dongle and pca10050 comes with a pre-flashed
bootloader (OpenBootloader).

This commit updates the boards "mpconfigboard.mk" to use DFU as
default flashing method and set the corresponding BOOTLOADER
settings such that nrf52840_open_bootloader_1.2.x.ld linker
script is used.

The default DFU flashing method can be disabled by issuing "DFU=0"
when invoking make. This will lead to "segger" being used as default
flashing tool. When using "DFU=0", the linker scripts will not
compensate for any MBR and Bootloader region being present, and might
overwrite them if they were present.

The commit also removes the custom linker script specific to
nrf52840-mdk-usb-dongle as it now points to a generic.

Updated nrf52840-mdk-usb-dongle's README.md to be more clear on
how to deploy the built firmware.

The port README.md has also been updated. In the list of target
boards a new column has been added to indicate which bootloader
is present on the target board. And for consistency, changed all
examples in the README.md to use "deploy" instead of "flash".
</pre>
</div>
</content>
</entry>
<entry>
<title>nrf/boards: Add linker script for nrf52840 Open Bootloader 1.2.0.</title>
<updated>2020-12-07T19:04:50+00:00</updated>
<author>
<name>Glenn Ruben Bakke</name>
</author>
<published>2020-07-16T21:23:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=7f405236a3355467a37cb16762939d6362352089'/>
<id>7f405236a3355467a37cb16762939d6362352089</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>nrf/Makefile: Add support for flashing with nrfutil.</title>
<updated>2020-12-07T19:04:50+00:00</updated>
<author>
<name>Glenn Ruben Bakke</name>
</author>
<published>2020-07-16T21:17:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=634f6df32485457dd1c236633cffd49177aaf826'/>
<id>634f6df32485457dd1c236633cffd49177aaf826</id>
<content type='text'>
An additional Makefile parameter NRFUTIL_PORT can be set in order
to define the serial port to used for the DFU (Default: /dev/ttyACM0).

The "nrfutil" that is used as flasher towards OpenBootloader is
available for installation through Python "pip".

In case of SD=s140, SoftDevice ID 0xB6 is passed to nrfutil's package
generation which corresponds to SoftDevice s140 v6.1.1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An additional Makefile parameter NRFUTIL_PORT can be set in order
to define the serial port to used for the DFU (Default: /dev/ttyACM0).

The "nrfutil" that is used as flasher towards OpenBootloader is
available for installation through Python "pip".

In case of SD=s140, SoftDevice ID 0xB6 is passed to nrfutil's package
generation which corresponds to SoftDevice s140 v6.1.1.
</pre>
</div>
</content>
</entry>
<entry>
<title>nrf/Makefile: Add bootloader specific section.</title>
<updated>2020-12-07T19:04:50+00:00</updated>
<author>
<name>Glenn Ruben Bakke</name>
</author>
<published>2020-07-16T21:04:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=718397a37d7ec2071b5f5d3668c31e6b8f69f3b9'/>
<id>718397a37d7ec2071b5f5d3668c31e6b8f69f3b9</id>
<content type='text'>
Add the option for "mpconfigboard.mk" to define whether the
board hosts a bootloader or not. The BOOTLOADER make variable
must be set to the name of the bootloader.

When the BOOTLOADER name is set it is also required to supply
the BOOTLOADER_VERSION_MAJOR and the BOOTLOADER_VERSION_MINOR
from the "mpconfigboards.mk". These will be used to resolve which
bootloader linker script that should be passed to the linker.

The BOOTLOADER section also supplies the C-compiler with
BOOTLOADER_&lt;bootloader name&gt;=&lt;version major&gt;&lt;version minor&gt;
as a compiler define. This is for future use in case a bootloader
needs to do modification to the startup files or similar (like
setting the VTOR specific to a version of a bootloader).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the option for "mpconfigboard.mk" to define whether the
board hosts a bootloader or not. The BOOTLOADER make variable
must be set to the name of the bootloader.

When the BOOTLOADER name is set it is also required to supply
the BOOTLOADER_VERSION_MAJOR and the BOOTLOADER_VERSION_MINOR
from the "mpconfigboards.mk". These will be used to resolve which
bootloader linker script that should be passed to the linker.

The BOOTLOADER section also supplies the C-compiler with
BOOTLOADER_&lt;bootloader name&gt;=&lt;version major&gt;&lt;version minor&gt;
as a compiler define. This is for future use in case a bootloader
needs to do modification to the startup files or similar (like
setting the VTOR specific to a version of a bootloader).
</pre>
</div>
</content>
</entry>
<entry>
<title>nrf/boards: Update memory.ld to include bootloader offsets.</title>
<updated>2020-12-07T19:04:50+00:00</updated>
<author>
<name>Glenn Ruben Bakke</name>
</author>
<published>2020-07-16T20:19:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=248968863595fb285b1209927e27c37b06faf857'/>
<id>248968863595fb285b1209927e27c37b06faf857</id>
<content type='text'>
Adding variables that can be set from other linker scripts:

- _bootloader_head_size:
    Bootloader flash offset in front of the application.

- _bootloader_tail_size:
    Bootloader offset from the tail of the flash.
    In case the bootloader is located at the end.

- _bootloader_head_ram_size:
    Bootloader RAM usage in front of the application.

Updated calculations of application flash and RAM.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding variables that can be set from other linker scripts:

- _bootloader_head_size:
    Bootloader flash offset in front of the application.

- _bootloader_tail_size:
    Bootloader offset from the tail of the flash.
    In case the bootloader is located at the end.

- _bootloader_head_ram_size:
    Bootloader RAM usage in front of the application.

Updated calculations of application flash and RAM.
</pre>
</div>
</content>
</entry>
</feed>
