Skip to content

Commit dbdeb48

Browse files
author
Memfault Inc
committed
Memfault Firmware SDK 0.41.1 (Build 1633)
1 parent f526a0a commit dbdeb48

File tree

14 files changed

+97
-30
lines changed

14 files changed

+97
-30
lines changed

CHANGES.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
### Changes between Memfault SDK 0.41.1 and SDK 0.41.0 - Mar 1, 2023
2+
3+
#### :chart_with_upwards_trend: Improvements
4+
5+
- Zephyr / nRF-Connect SDk:
6+
7+
- Fix a bug 🐛 in the Memfault Logging backend, that causes coredump saving to
8+
fail when building with Zephyr versions before 3.0 (nRF-Connect SDK < 2.0).
9+
This regression was introduced in Memfault Firmware SDK **0.33.3**.
10+
11+
- ESP-IDF:
12+
- Updated the [ESP32 example app](examples/esp32) for the ESP32-C3 on ESP-IDF
13+
v5.0.1 to use size optimizations, to more closely mirror real world
14+
environments and codesize.
15+
- Fix a compilation error in the [ESP32 example app](examples/esp32) when
16+
targeting ESP-IDF >=4.4,<4.4.3 . This regression was introduced in Memfault
17+
Firmware SDK **0.39.1**.
18+
119
### Changes between Memfault SDK 0.41.0 and SDK 0.40.0 - Feb 22, 2023
220

321
#### :rocket: New Features
@@ -7,7 +25,7 @@
725
for your work on this in
826
[#42](https://github.com/memfault/memfault-firmware-sdk/pull/42) 🎉!
927

10-
### Changes between Memfault SDK 0.40.1 and SDK 0.39.1 - Feb 15, 2023
28+
### Changes between Memfault SDK 0.40.0 and SDK 0.39.1 - Feb 15, 2023
1129

1230
#### :bomb: Breaking Changes
1331

@@ -18,7 +36,7 @@
1836
in a build error. For more information please see
1937
https://docs.memfault.com/docs/mcu/esp32-guide#initializing-memfault
2038

21-
### Changes between Memfault SDK 0.39.1 and SDK 0.38.0 - Feb 3, 2023
39+
### Changes between Memfault SDK 0.39.1 and SDK 0.39.0 - Feb 3, 2023
2240

2341
#### :rocket: New Features
2442

VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
BUILD ID: 1575
2-
GIT COMMIT: cacbe4d5d
1+
BUILD ID: 1633
2+
GIT COMMIT: 12ef0db7f

components/include/memfault/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ typedef struct {
1919
uint8_t patch;
2020
} sMfltSdkVersion;
2121

22-
#define MEMFAULT_SDK_VERSION { .major = 0, .minor = 41, .patch = 0 }
22+
#define MEMFAULT_SDK_VERSION { .major = 0, .minor = 41, .patch = 1 }
2323

2424
#ifdef __cplusplus
2525
}

examples/esp32/apps/memfault_demo_app/main/Kconfig.projbuild

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,15 @@ config BLINK_GPIO
6767
GPIO number (IOxx) to blink on and off or the RMT signal for the addressable LED.
6868
Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink.
6969

70+
# esp32c3 specific settings
71+
if IDF_TARGET_ESP32C3
72+
# Default optimize for size due to increase in binary size
73+
# This can be changed in root -> Compiler Options
74+
# The choice and prompt lines are required and must match the esp-idf definition
75+
choice COMPILER_OPTIMIZATION
76+
prompt "Optimization Level"
77+
default COMPILER_OPTIMIZATION_SIZE
78+
endchoice
79+
endif
80+
7081
endmenu

examples/nrf-connect-sdk/nrf5/memfault_demo_app/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ CONFIG_IMG_MANAGER=y
4747
CONFIG_FLASH=y
4848

4949
CONFIG_WATCHDOG=y
50+
51+
# Enable Zephyr runtime asserts
52+
CONFIG_ASSERT=y

examples/nrf-connect-sdk/nrf9160/memfault_demo_app/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
5959

6060
CONFIG_WATCHDOG=y
6161

62+
# Enable Zephyr runtime asserts
63+
CONFIG_ASSERT=y
64+
6265
# Note: See ./CMakeLists.txt for additional Kconfig variables settings as not all variables can be
6366
# set in a single prj.conf for backward compatibility with older versions of the nRF Connect SDK /
6467
# Zephyr

examples/zephyr/qemu/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Based on https://github.com/zephyrproject-rtos/example-application , this
44
provides a minimal reference for Memfault integration.
55

6+
> Note: this example can also target other boards and should work normally- for
7+
> example `nrf52840dk_nrf52840`. It's primarily tested on the `qemu_cortex_m3`
8+
> board, which is also the default.
9+
610
## Usage
711

812
After setting up a zephyr development environment
@@ -11,12 +15,12 @@ the following commands to test the application:
1115

1216
```shell
1317
# initialize this project
14-
❯ west init -l qemu-app
18+
❯ west init --local qemu-app
1519
❯ west update
1620

17-
# build the target program
18-
❯ west build -b qemu_cortex_m3 --pristine=always qemu-app
19-
❯ west build -t run
21+
# build and run the target program
22+
❯ west build qemu-app
23+
❯ west build --target run
2024

2125
*** Booting Zephyr OS build zephyr-v3.2.0 ***
2226
[00:00:00.000,000] <inf> mflt: GNU Build ID: 4ffb5879ed5923582035133086015bbf65504364

examples/zephyr/qemu/qemu-app/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5+
# The default board for this example is the qemu_cortex_m3, but can be
6+
# overridden by passing --board=<board> to west or -DBOARD=<board> to cmake
7+
set(BOARD qemu_cortex_m3)
8+
59
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
610

711
target_sources(app PRIVATE src/main.c)

examples/zephyr/qemu/qemu-app/prj.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@ CONFIG_LOG_BACKEND_UART=y
2323
CONFIG_SHELL_LOG_BACKEND=n
2424

2525
CONFIG_SYS_HEAP_RUNTIME_STATS=y
26+
27+
# Increase the heap pool and main stack sizes for the example app
2628
CONFIG_HEAP_MEM_POOL_SIZE=4096
2729
CONFIG_MAIN_STACK_SIZE=4096
30+
31+
# Enable Zephyr runtime asserts
32+
CONFIG_ASSERT=y

examples/zephyr/qemu/qemu-app/west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ manifest:
1313
projects:
1414
- name: zephyr
1515
remote: zephyrproject-rtos
16-
revision: zephyr-v3.2.0
16+
revision: v3.3.0
1717
import: true
1818

1919
- name: memfault-firmware-sdk

0 commit comments

Comments
 (0)