Skip to content

Commit 4bb818c

Browse files
committed
nRF52840: Fixed flashapi test and casting issue
1 parent 98d4a13 commit 4bb818c

File tree

2 files changed

+1
-2
lines changed
  • TESTS/mbed_hal/flash/functional_tests
  • targets/TARGET_NORDIC/TARGET_NRF5_SDK13

2 files changed

+1
-2
lines changed

TESTS/mbed_hal/flash/functional_tests/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include "mbed.h"
2626
#include "flash_api.h"
27-
#include "flash_data.h"
2827

2928
using namespace utest::v1;
3029

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/flash_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int32_t flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data,
7979
/* We will use *_words function to speed up flashing code. Word means 32bit -> 4B
8080
* or sizeof(uint32_t).
8181
*/
82-
nrf_nvmc_write_words(address, data, (size / sizeof(uint32_t)));
82+
nrf_nvmc_write_words(address, (const uint32_t *) data, (size / sizeof(uint32_t)));
8383
return 0;
8484
}
8585

0 commit comments

Comments
 (0)