Skip to content

Commit

Permalink
Merge remote-tracking branch 'lancaster-university/master' into calliope
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Oct 9, 2024
2 parents b152a1e + e88ca61 commit bee9610
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/FSCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int FSCache::read(uint32_t address, const void *data, int len)
int bytesCopied = 0;

// Ensure that the operation is within the limits of the device
if (address < flash.getFlashStart() || address + len >= flash.getFlashEnd())
if (address < flash.getFlashStart() || address + len > flash.getFlashEnd())
return DEVICE_INVALID_PARAMETER;

// Read operation may span multiple cache boundaries... so we iterate over blocks as necessary.
Expand Down Expand Up @@ -116,7 +116,7 @@ int FSCache::write(uint32_t address, const void *data, int len)
int bytesCopied = 0;

// Ensure that the operation is within the limits of the device
if (address < flash.getFlashStart() || address + len >= flash.getFlashEnd())
if (address < flash.getFlashStart() || address + len > flash.getFlashEnd())
return DEVICE_INVALID_PARAMETER;

#ifdef CODAL_FS_CACHE_VALIDATE
Expand Down
3 changes: 2 additions & 1 deletion target-locked.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"CODAL_PROVIDE_PRINTF": 1,
"CODAL_TIMER_32BIT": 1,
"CODAL_TIMESTAMP": "uint64_t",
"CODAL_VERSION": "\"unknown\"",
"CONFIG_GPIO_AS_PINRESET": 1,
"CONFIG_NFCT_PINS_AS_GPIOS": 1,
"DEVICE_BLE": 1,
Expand Down Expand Up @@ -71,6 +72,6 @@
"linker_flags": "-Wl,--no-wchar-size-warning -Wl,--gc-sections -Wl,--wrap,atexit -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group",
"post_process": "",
"processor": "NRF52833",
"snapshot_version": "v0.2.67",
"snapshot_version": "v0.2.68",
"toolchain": "ARM_GCC"
}
4 changes: 2 additions & 2 deletions target.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"generate_bin":true,
"generate_hex":true,
"config":{

"MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC": "NRF_LF_SRC_XTAL",
"CONFIG_GPIO_AS_PINRESET": 1,
"CONFIG_NFCT_PINS_AS_GPIOS": 1,
Expand Down Expand Up @@ -42,7 +41,8 @@
"CAPTOUCH_DEFAULT_CALIBRATION" : 3500,
"HARDWARE_NEOPIXEL": 1,
"CODAL_TIMER_32BIT": 1,
"DEVICE_BLE": 1
"DEVICE_BLE": 1,
"CODAL_VERSION": "\"unknown\""
},
"definitions":"-DAPP_TIMER_V2 -DAPP_TIMER_V2_RTC1_ENABLED -DNRF_DFU_TRANSPORT_BLE=1 -DNRF52833_XXAA -DNRF52833 -DTARGET_MCU_NRF52833 -DNRF5 -DNRF52833 -D__CORTEX_M4 -DS113 -DTOOLCHAIN_GCC -D__START=target_start",

Expand Down

0 comments on commit bee9610

Please sign in to comment.