Skip to content
Permalink
Branch: master
Commits on Jul 17, 2019
  1. drivers/flash/flash_simulator: fix flash size calculation

    nvlsianpu authored and andrewboie committed Jul 4, 2019
    Flash size calculation was don with assumption that flash page size
    is always 1 KB and flash size was parameterized with such granularity.
    
    This patch correct this bug.
    
    Flash pages number under statistic can't be calculated via preprocessor
    anymore - thus are parameterized via Kconfig.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. drivers/flash/flash_simulator: switch to use DT_FLASH_SIM labels

    nvlsianpu authored and andrewboie committed Jul 4, 2019
    It Need to start using DT_FLASH_SIM_xxx labels after sim_flash was
    un-chosen as zephyr,flash.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  3. boards/qemu_x86: fix emulated program memory size

    nvlsianpu authored and andrewboie committed Jul 4, 2019
    Qemu_x86 didn't reflect emulated program memory size.
    It was because chosen zephyr,flash was assigned to flash_simulator
    which was helping to generate DT_FLASH properties for sim_flash node.
    
    This change revert choice of flash0 which solve problem with
    program memory size. Flash simulator have to use
    DT_SOC_NV_FLASH_xxx labels for fetch its property since that.
    
    fixes #15832
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  4. boards/qemu_x86: fix qemu memory map

    nvlsianpu authored and andrewboie committed Jul 4, 2019
    The desired memory map is to have the 0 - 4K page non-present
    to catch NULL pointer dereferences,
    from 4K - 4MB for the program text (RO, Execute),
    ROM (RO, No Execute), and 4MB-8MB for system RAM.
    
    This patch cut text size by 4 KB which allow to meet above
    requirements.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Jul 16, 2019
  1. drivers/flash: add read alignment requirement comment

    nvlsianpu authored and ioannisg committed Jul 12, 2019
    Added note on read alignment requirement in order to make
    a user more conscious of restrictions.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Jun 18, 2019
  1. dfu/boot: make swap_type optional

    nvlsianpu authored and carlescufi committed Jun 13, 2019
    Swap_type field implementation is the new mcuboot's trailer field.
    This patch makes using of it optional which keeps possibility of being
    compatible with older versions of MCUBoot.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. dfu/boot: double swap on interrupted revert bugfix adaptation

    nvlsianpu authored and carlescufi committed May 31, 2019
    Mcuboot changed TLV in PR: Fix double swap on interrupted revert
    (JuulLabs-OSS/mcuboot#485)
    
    Above bugfix changes a little way for upgrade request.
    
    This path introduces re-formatted original mcuboot bootutil_misc.c
    code as much as it was reasonable which includes the bugfix
    adaptation and support for devices witch have bite erased sate different
    than 1 as well.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Jun 7, 2019
  1. stats: fix Coverity CID :198875

    nvlsianpu authored and nashif committed Jun 5, 2019
    Issue was caused by pointer arithmetic.
    This commit cast pointer of struct data to u8_t pointer
    and makes arithmetic explicitly by adding the exact value.
    
    fixes #16572
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Jun 5, 2019
  1. doc/reference/storage/settings: storage behavior description

    nvlsianpu authored and carlescufi committed Apr 18, 2019
    Elaborated on storage mechanism usage and key-value version
    garbage collection.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on May 24, 2019
  1. tests/fs/nvs: GC full round test

    nvlsianpu authored and carlescufi committed May 22, 2019
    Added a test for testing full round GC on 3-sectors
    configuration. In this case all kind off sector can
    appeared so this test covers well more numerous
    sectors configurations.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on May 22, 2019
  1. fs/nvs: fix startup for 2-sectors configuration

    nvlsianpu authored and carlescufi committed May 21, 2019
    This patch fixes following bug:
    
    After first GC operation the 1st sector had become scratch
    and the 2nd sector had became write sector. After that NVS
    was initialize (via reboot) again - it recognized the 1st
    sector as write sector and 2nd as undone GC destination sector,
    therefore it cleared 2nd sector and  re-run GC, which implied data loss.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on May 13, 2019
  1. boards/x86/qemu_x86: increase RAM size

    nvlsianpu authored and nashif committed May 10, 2019
    Increase ram size as flash simulator need it for
    emulated storage. The qemu_x86 flash size is puted back to
    its original value of 4092K
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on May 9, 2019
  1. dfu/img_util: : non-secure app support

    nvlsianpu authored and nashif committed May 8, 2019
    In non-secure Trustzone application dedicated flash non-secure
    partition are used instead of regular one, which become secure
    partition in Trustzone collaboration model.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Apr 28, 2019
  1. usb/class/usb_dfu: support progressive image erase

    nvlsianpu authored and nashif committed Mar 21, 2019
    Disable bulk slot image erase when progressive erase is on.
    Erase of image bank is performed by image collection procedure
    progressively.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. dfu: introduce progressive erasing

    nvlsianpu authored and nashif committed Mar 15, 2019
    Patch adds option for progressive erase of firmware image.
    When using this, flash is erased as necessary when receiving
    new firmware, instead of erasing the whole image slot at once.
    This is useful on some hardware (like nRF52840) that has
    long erase times, to prevent long wait times at the beginning
    of the DFU process.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Apr 19, 2019
  1. samples/drivers/soc_flash_nrf: enable nrf9160_pca10090 targets

    nvlsianpu authored and carlescufi committed Apr 3, 2019
    The patch provides flash offsets appropriate for running
    this sample on nrf9160_pac10090 targets.
    As that sample is small one, it is done with assumption that image_1
    flash partition is empty.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. tests/drivers/soc_flash_nrf: fix lack of disabled protection

    nvlsianpu authored and carlescufi committed Apr 2, 2019
    Write protection was not disabled prior erase call.
    It used to work before only because nrf driver had not check
    the protection before erase execution. This behavior was changed in
    order to align to zephyr - which implied requirement for this test fix.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  3. drives/flash: provide boundaries info for nRF9160

    nvlsianpu authored and carlescufi committed Apr 1, 2019
    nRF9160 can't provide FICR data while operation in non-secure
    domain.
    
    This patch start using flash layout properties provides by
    nrfx API for get flash properties, which resolves problem
    described above.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  4. drives/flash: use nrfx for nrf

    nvlsianpu authored and carlescufi committed Apr 1, 2019
    Introduce nrfx_nvmc driver into nordic flash driver implementation.
    Thanks to that nrf9160 SoC becomes supported by the driver.
    
    nrfx helps dealing with differences with interface to the NVMC
    in secure and non-secure execution modes.
    
    This patch adds NRFX_NVMC Kconfig entry for enabling nrfx_nvmc and
    select it along with nordic flash driver.
    
    Disabled UICR operation on nRF9160 for non-secure build
    as UICR is not available in this mode.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Apr 18, 2019
  1. dfu/boot: Replace flash partitioning terminology

    nvlsianpu authored and nashif committed Apr 11, 2019
    Changed image terminology to the same which is used by
    mcuboot after JuulLabs-OSS/mcuboot#440
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. dfu/boot: non-secure app support

    nvlsianpu authored and nashif committed Apr 11, 2019
    In non-secure Trustzone application dedicated flash non-secure
    partition are used instead of regular one, which become secure
    partition in Trustzone collaboration model.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Apr 11, 2019
  1. doc: relnotes: 1.14 update documentation improvement patagtaph

    nvlsianpu authored and nashif committed Apr 11, 2019
    Update the relevant release notes for the documentation improvement
    for version 1.14.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. doc: relnotes: 1.14 nRF5 flash driver release notes

    nvlsianpu authored and nashif committed Apr 11, 2019
    Add the relevant release notes for the nRF flash driver for version
    1.14.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  3. doc: relnotes: 1.14 settings release notes

    nvlsianpu authored and nashif committed Apr 11, 2019
    Add the relevant release notes for the settings for version
    1.14.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  4. doc: relnotes: 1.14 flash_map release notes

    nvlsianpu authored and nashif committed Apr 11, 2019
    Add the relevant release notes for the flash_map for version
    1.14.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Apr 8, 2019
  1. tests/subsys/settings/fcb: fix unaligned test

    nvlsianpu authored and nashif committed Apr 4, 2019
    Unaligned test might filed in case fcb area was not clen before
    run.
    The patch insert clean operation before this test.
    
    fixes #15063
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Mar 30, 2019
  1. doc: documentation of flash_area and flash_map

    nvlsianpu authored and nashif committed Mar 21, 2019
    Initial documentation.
    
    fixes #14789
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Mar 20, 2019
  1. settings: remove dead code

    nvlsianpu authored and galak committed Mar 20, 2019
    Patch removes dead, replaced code which was accidentally not
    removed within the stream-codec PR #9521.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Mar 19, 2019
  1. storage/flash_map: API for get driver belongs to the flash_area.

    nvlsianpu authored and carlescufi committed Feb 12, 2019
    Introduce API for get driver structure belongs to the flash_area.
    
    Some more complex operation on flash areas might want to be done using
    driver directly. It not make sense to wrap every possible flash related
    operation by flash_map API.
    
    For instance mcuboot will require this patch.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. zephyr: fix mcuboot can't link into boot-partition

    nvlsianpu authored and carlescufi committed Mar 18, 2019
    Objective of the path is to allow to select by the application
    to link into the chosen code-partition.
    Introduced USE_CODE_PARTITION will be set by bootloader project.
    
    fixes #14566
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Mar 9, 2019
  1. settings: enable logging

    nvlsianpu authored and nashif committed Mar 6, 2019
    This patch introduce logging to settings.
    
    Error in stored data record might occurred in runtime, so
    better to switch assertion to error logging.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. tests/subsys/fs/nffs_fs_api: build ram back-end only for qemu_x86

    nvlsianpu authored and nashif committed Mar 6, 2019
    Ram back-end was unnecessary included in non qemu test which
    increased RAM footprint much.
    
    Patch includes ram backend into build only for qemu_x86 build.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Mar 4, 2019
  1. CODEOWNERS: Add owners for tests of settings subsystems

    nvlsianpu authored and carlescufi committed Mar 4, 2019
    The settings tests was not properly covered in terms of maintainership,
    add maintainers for the corresponding subystems.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
  2. settings: always uses the storage partition for FCB

    nvlsianpu authored and carlescufi committed Mar 1, 2019
    It was possible via Kconfig to assign any partition for FCB using
    its number. Partitions flash_area_id becomes non predefined
    (are auto-generated). So it is possible only to guess which
    number will be signed to certain area.
    
    Unfortunately it is not possible to transfer FLASH_AREA_XXX_ID
    label via Kconfig.
    
    Patch assigns settings to the storage partition and remove
    SETTINGS_FCB_FLASH_AREA property from settings Kconfig.
    
    fixes #13388
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Commits on Feb 22, 2019
  1. settings: fix base64 encode test

    nvlsianpu authored and nashif committed Feb 21, 2019
    settings_line_len_calc() calculates only setting record
    payload size, not record layout in flash size.
    
    this patch remove inadequate test for this function.
    
    Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
Older
You can’t perform that action at this time.