Skip to content

warning: 'flash_get_size' declared 'static' but never defined #81891

Closed Answered by de-nordic
ofirshe asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.
Rebuild syscalls in your build. It seems that you are picking the function declaration but definition is missing.

The function is in Flash API. If you take a look at include/zephyr/drivers/flash.h, you will notice that most calls there have _syscall prototype and z_impl implementation.

There will be second flash.h file in your build that will have the definition.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ofirshe
Comment options

Answer selected by ofirshe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants