RSS
Sort by » date activity ▼ answers views votes

61 questions

Tagged
  • x
18
views
no
votes
1
answer
Last activity 2017-12-07 13:08:18 +0200 by Petter Myhre flag of Norway

radio detect ,flash erase and store

i want to erase and store the flash after detecting the radio active.

The radio signal is also active, when i erase and store .

Do erase and store the flash may influence the interrupt ?

static void radio_notification_init(void)
{
    uint32_t err_code ...
(more)

89
views
1
vote
1
answer
Last activity 2017-07-15 14:31:40 +0200 by Manas

IoT DFU on Contiki using CoAP Blocktransfer

[Aim] I am working on a project where I aimed to Integrate/Develop firmware management system using Contiki running over Nordic NRF52.

[Components] Contiki running over Nordic NRF52 + LwM2M (Management server) + CoAP block transfer (Transport Medium) + IoT DFU (Nordic's ... (more)

178
views
no
votes
1
answer
Last activity 2017-07-11 21:21:04 +0200 by NewAce

Store data in flash with NRF52832 and MBED and GCC

Hi,

I'm trying to use an existing NRF51822 mbed codebase on a new NRF52832 product and am having some issues.

First of all, it seems that I can't use mbedlib, but need to update to mbed-os because BLE ... (more)

44
views
no
votes
no
answers
Last activity 2017-06-27 02:24:56 +0200 by Sal

reading a pre-programmed key from flash

Hi,

Reading from flash, an already programmed key, returns zero. Using sdk 12.1, sd s132_nrf52_3.0.0, nrf52832, and pstorage. The key is programmed after uploading the fw, image using jlink. Please advise if I am missing any other ... (more)

35
views
no
votes
no
answers
Last activity 2017-06-08 07:40:58 +0100 by satheesh

main function could not execute with s110 softdevice

hi,

the main function could not execute with softdevice. before it was working. but i have added some code that mean pstorage_store(). already, it has pstorage_load() and pstorage_clear(), that operation was working good. after, i added pstorage_store() function the main ... (more)

481
views
no
votes
1
answer
Last activity 2017-05-21 20:35:07 +0200 by Petter Myhre flag of Norway

pstorage read write process after disable soft device

hi

may i know is it possible to read and write process using pstorage after disable softdevice_handler_sd_disable();

thanks,

29
views
no
votes
no
answers
Last activity 2017-05-18 12:02:09 +0200 by micele flag of China

Pstorage question for storage different size

hi : I want storage different size in flash.How can i do it? I can write like this?

param.block_size  = 16;                   //Select block size of 16 bytes
param.block_count = 1;                   //Select 1 blocks, total of 16 bytes
param.cb          = example_cb_handler ...
(more)

73
views
no
votes
1
answer
Last activity 2017-05-18 10:48:36 +0200 by Bjørn Spockeli flag of Norway

pstorage read and write time for one page

i need to know the read and write time in (ms). for one page

please any ony help me

57
views
no
votes
1
answer
Last activity 2017-05-17 09:55:55 +0200 by chocol8

Unable to use Pstorage in my code

To @Hung Bui. Hello sir. I am new to NRF51 microcontrolers and I am trying to use Pstorage in my written code. I have noticed this post of your's: image description

I am using nrf51422 and and edited ble_app_uart example as ... (more)

57
views
no
votes
1
answer
Last activity 2017-05-09 06:45:08 +0200 by satheesh

what is mean by blockid and moduleid in PSTORAGE

hi

i need store my data in internal flash memory (around 30kb). i have fixed memory map from 0x25000 to 0x35000. my, block size = 16 byte, block count =4096, no of pages= 64 pages, page start no. = 148, page end ... (more)

44
views
no
votes
no
answers
Last activity 2017-04-18 12:06:31 +0200 by hanson zhao

pstorage_load didn't load correct data

I want to use inner flash to work as event log storage.

So in pstorage_platform.h I set PSTORAGE_NUM_OF_PAGES as 60. So I can use 60 pages.

#define USER_BLOCK_SIZE   64
#define USER_BLOCK_COUNT 6

then I register pstorage.

the log function ... (more)

41
views
1
vote
1
answer
Last activity 2017-04-10 12:29:55 +0200 by Petter Myhre flag of Norway

pstorage request block id

Hi,

Currently I'm working on updating some code based op pstorage on the nRF51822 with SDK 10 an SD S110 (v8).

Right know we're not using "blocks". We're using pstorage_update(&m_pstorage_handle, ...) directly on the handle obtained via ... (more)

108
views
1
vote
1
answer
Last activity 2017-03-14 10:42:54 +0100 by Jørn flag of Norway

How to understand Pstorage [closed]

I'm confused. in other platform, i know flash stard and end adress ,alse page size ,i can read and write data directly. But use pstorage mode as follows : pstorage_init() ->pstorage_register()->read (for use)-> write(for persistenct storage)

Firstly, my ... (more)

1k
views
2
votes
5
answers
Last activity 2017-03-08 08:48:53 +0200 by pavut

pstorage_store not stores but i can read

Hello,

i am stuck with this, trying to write to flash using pstorage module. Below is my code.

static void pstore_cb_handler(pstorage_handle_t  * handle,
                               uint8_t              op_code,
                               uint32_t             result,
                               uint8_t            * p_data,
                               uint32_t             data_len)
{
    switch(op_code)
    {
        case PSTORAGE_ERROR_OP_CODE:
            ble_nus_send_string( &m_nus, (uint8_t *)"PS general ...
(more)

178
views
1
vote
1
answer
Last activity 2017-02-21 14:32:22 +0200 by Kapil Singh Rawat flag of India

fs_store data lost after power off

Hi

I'm using fs_storage function to read and write in flash memory. Value successfully stored in evt->store.p_data but after power off it value become 0

switch(evt->id)
    {
        case FS_EVT_STORE:
            if(result == FS_SUCCESS)
            {
                stored_data = evt->store.p_data ...
(more)

548
views
2
votes
2
answers
Last activity 2016-12-20 14:24:17 +0100 by Oguz Emre

SDK12 Pstorage

Hi Forum and Nordic Employess I use sdk12.2 The Pstorage libraries are missing. I want a Pstorage (flash write / read) example along with the Soft Device.

Thank You

474
views
3
votes
no
answers
Last activity 2016-12-20 14:21:46 +0100 by Oguz Emre

SDK12 Pstorage (Solution) [closed]

Hi, SDK12 does not have Pstorage. I want to show you how to add it.

Steps:

1) Copy the pstorage folder in SDK11 into the SDK12 \components folder.

2) Open any project in SDK12

3) Add pstorage.c in nRF_Libraries ... (more)

409
views
no
votes
1
answer
Last activity 2016-11-25 13:34:15 +0200 by Oguz Emre

Flash Write/Read Basic Way

Im using sdk 11.0 and s130 When i add pstorag codes to my project which has bluetooth communication ,it does not work I wanna send data to flash and i wanna read it What is the shortest and simplest ... (more)

186
views
4
votes
1
answer
Last activity 2016-11-18 16:52:32 +0200 by Petter Myhre flag of Norway

Pstorage with S210 softdevice

Hi Nordic!

Long time short, I want to do an ANT application (S210, nRF51422) that pairs two slaves to one master. I have configured everything such that it pairs only when the master is close to the slaves. Now, I ... (more)

13k
views
16
votes
2
answers
Last activity 2016-11-01 15:16:31 +0200 by Thanh Duong

How can i write 10kB of data to internal flash?

Hi,

I use nRF51822 with 256k flash and external sensor, and i want to write the data i receive from it via SPI to internal flash?

After the data received i want to send it to iOS application with s110 ... (more)

158
views
no
votes
1
answer
Last activity 2016-09-12 07:11:35 +0200 by Stefan Birnir Sverrisson flag of Iceland

nrf51 pstrorage write zeros to flash memory

I'm trying to write some data to flash memory (32 bytes) every 1 minute. the data are not NULL but then I noticed that sometimes (not always) the pstroage module write zeros to flash memory. I can check that ... (more)

114
views
no
votes
1
answer
Last activity 2016-08-26 13:24:38 +0100 by Einar Thorsrud flag of Norway

Using flash pages manually

Hi,

I would like to have one page of flash mapped manually to store information critical for the device. Let's assume I do not trust data preserving by DFU or there is a situation of PSTORAGE corruption after some ... (more)

185
views
1
vote
1
answer
Last activity 2016-08-22 16:06:29 +0200 by Stefan Birnir Sverrisson flag of Iceland

Use flash for bonding and saving 4 other bytes ?

Canyou please tell me how to do , to save correctly 4 bytes in my program that uses flash memory for bonfing. i have how to save 4 bytes function seperatly, and my program uses flash for saving bonding stuff, i ... (more)

127
views
2
votes
1
answer
Last activity 2016-08-17 10:16:16 +0200 by ToTo

Flash write works, but when i do hard/soft reset data is lost ?

Hi, i'm using a code to save 4 bytes on the flash memory and it works. In, fact i checked the data address concerned using the keil and i see the changes when i write and it works well ... (more)

656
views
no
votes
1
answer
Last activity 2016-08-12 17:02:49 +0100 by Adrian Eggenberger flag of Switzerland

Internal Flash as a Non volatile Memory for user data

Currently we are considering whether we should use external Flash Memory or NRF52 Internal Flash. External Flash memory has a lot of drawback in comparsion with internal flash. -Board Space, cost, lead time, software complication, power consumption,

Im wondering what ... (more)

165
views
no
votes
no
answers
Last activity 2016-08-12 14:17:05 +0100 by PanTikTak

Internal flash as a Non volatile storage for user data [closed]

Currently we are considering whether we should use external Flash Memory or NRF52 Internal Flash. External Flash memory has a lot of drawback in comparsion with internal flash. -Board Space, cost, lead time, software complication, power consumption,

Im wondering what ... (more)

52
views
1
vote
1
answer
Last activity 2016-05-26 09:31:06 +0200 by Aryan flag of Norway

PSTORAGE_MIN_BLOCK_SIZE value

Is there any recommended value for PSTORAGE_MIN_BLOCK_SIZE or is it completely system determined. The commends in pstorage_platform.h are somewhat unclear.

If I only require 2bytes for example to be stored per block can i set PSTORAGE_MIN_BLOCK_SIZE 2?

Thanks guys,

-DC

2k
views
21
votes
2
answers
Last activity 2016-05-13 01:59:30 +0100 by RK flag of Singapore

Difference between persistent storage libraries

In the nrf5 sdk (version 11.0.0) there are three different modules which, as near as I can tell, do the same thing. These are:

  • pstorage
  • fstorage
  • ble_flash

All three look to be used in various different examples, and ... (more)

75
views
no
votes
2
answers
Last activity 2016-04-01 05:15:18 +0200 by hark

pstorage_update call MCU reset

My custom board, it connected with App, App sends a command to the board and the board keeps the command in the flash, but when i call the "pstorage_update", it will cause reset.

My code is as follow: is there ... (more)

357
views
no
votes
1
answer
Last activity 2016-03-14 14:02:27 +0200 by Thangaraj

Flash usage of programs and softdevice

I'm trying to write a firmware for PCA10001, which works like a bootloader. In other words, it can download some data into the Flash. To avoid conflicting with the existed program itself, I need to know the exact position ... (more)

Statistics

  • Total users: 25687
  • Latest user: Lucienne Etienne
  • Resolved questions: 11282
  • Unanswered questions: 3823
  • Total questions: 27855

User menu

    or sign up

Recent questions