Zephyr API code


Nikos Karamolegkos
 

Hello,

It may be a stupid question but where is the code of the zephyr API? For example, where is the implementation of this function (which is called by the flash_img_buffered_write of the DFU utility? My question stems from the fact that I want to find which function is used at lower levels for the nordic nrf52840

Thanks

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)


Carles Cufi
 

From: users@... <users@...> On Behalf Of Nikos Karamolegkos via lists.zephyrproject.org
Sent: 14 July 2022 14:56
To: users@...
Subject: [Zephyr-users] Zephyr API code

 

Hello,

It may be a stupid question but where is the code of the zephyr API? For example, where is the implementation of this function (which is called by the flash_img_buffered_write of the DFU utility? My question stems from the fact that I want to find which function is used at lower levels for the nordic nrf52840

Thanks

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)


Nikos Karamolegkos
 

Thanks, so this leads to flash_write function. But how this function works for different type of devices? For example for the nrf 52840 what is the body of this function?

On 7/14/22 16:31, Cufi, Carles wrote:

Hi there,

 

https://github.com/zephyrproject-rtos/zephyr/blob/df9c0d8efa2ead7c42000780d5cb3cd08b162300/subsys/storage/stream/stream_flash.c#L178

 

Carles

 

From: users@... <users@...> On Behalf Of Nikos Karamolegkos via lists.zephyrproject.org
Sent: 14 July 2022 14:56
To: users@...
Subject: [Zephyr-users] Zephyr API code

 

Hello,

It may be a stupid question but where is the code of the zephyr API? For example, where is the implementation of this function (which is called by the flash_img_buffered_write of the DFU utility? My question stems from the fact that I want to find which function is used at lower levels for the nordic nrf52840

Thanks

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)


Carles Cufi
 

From: Nikos Karamolegkos <nkaram@...>
Sent: 14 July 2022 16:11
To: Cufi, Carles <Carles.Cufi@...>; users@...
Subject: Re: [Zephyr-users] Zephyr API code

 

Thanks, so this leads to flash_write function. But how this function works for different type of devices? For example for the nrf 52840 what is the body of this function?

On 7/14/22 16:31, Cufi, Carles wrote:

Hi there,

 

https://github.com/zephyrproject-rtos/zephyr/blob/df9c0d8efa2ead7c42000780d5cb3cd08b162300/subsys/storage/stream/stream_flash.c#L178

 

Carles

 

From: users@... <users@...> On Behalf Of Nikos Karamolegkos via lists.zephyrproject.org
Sent: 14 July 2022 14:56
To: users@...
Subject: [Zephyr-users] Zephyr API code

 

Hello,

It may be a stupid question but where is the code of the zephyr API? For example, where is the implementation of this function (which is called by the flash_img_buffered_write of the DFU utility? My question stems from the fact that I want to find which function is used at lower levels for the nordic nrf52840

Thanks


-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)


Nikos Karamolegkos
 

You are the best. Thanks

On 7/14/22 17:16, Cufi, Carles wrote:

https://github.com/zephyrproject-rtos/zephyr/blob/df9c0d8efa2ead7c42000780d5cb3cd08b162300/include/zephyr/drivers/flash.h#L80

https://github.com/zephyrproject-rtos/zephyr/blob/df9c0d8efa2ead7c42000780d5cb3cd08b162300/include/zephyr/drivers/flash.h#L205

https://github.com/zephyrproject-rtos/zephyr/blob/df9c0d8efa2ead7c42000780d5cb3cd08b162300/drivers/flash/soc_flash_nrf.c#L257

https://github.com/zephyrproject-rtos/zephyr/blob/df9c0d8efa2ead7c42000780d5cb3cd08b162300/drivers/flash/soc_flash_nrf.c#L145

 

 

From: Nikos Karamolegkos <nkaram@...>
Sent: 14 July 2022 16:11
To: Cufi, Carles <Carles.Cufi@...>; users@...
Subject: Re: [Zephyr-users] Zephyr API code

 

Thanks, so this leads to flash_write function. But how this function works for different type of devices? For example for the nrf 52840 what is the body of this function?

On 7/14/22 16:31, Cufi, Carles wrote:

Hi there,

 

https://github.com/zephyrproject-rtos/zephyr/blob/df9c0d8efa2ead7c42000780d5cb3cd08b162300/subsys/storage/stream/stream_flash.c#L178

 

Carles

 

From: users@... <users@...> On Behalf Of Nikos Karamolegkos via lists.zephyrproject.org
Sent: 14 July 2022 14:56
To: users@...
Subject: [Zephyr-users] Zephyr API code

 

Hello,

It may be a stupid question but where is the code of the zephyr API? For example, where is the implementation of this function (which is called by the flash_img_buffered_write of the DFU utility? My question stems from the fact that I want to find which function is used at lower levels for the nordic nrf52840

Thanks


-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)
-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)