Const-correctness in LPC55xx ROM API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Const-correctness in LPC55xx ROM API

Jump to solution
512 Views
craigmcqueenir
Contributor IV

In the SDK for the LPCXpresso55S28, in fsl_iap.c, there are the definitions of functions in the ROM API. Eg struct version1FlashDriverInterface, function pointer flash_program().

That function flash_program() has a parameter uint8_t *src. The parameter isn't marked as const. I'm wondering if that is because the parameter is genuinely a non-const pointer — i.e. flash_program() might actually change the src data — or if it is just because the function definitions in fsl_iap.c have not been created with const-correctness in mind.

Labels (1)
0 Kudos
1 Solution
474 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI @craigmcqueenir 

We will fix it in next release SDK 2.15.0

Thank you for bringing the problem to our attention.

Have a nice day,

Jun Zhang

View solution in original post

0 Kudos
1 Reply
475 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI @craigmcqueenir 

We will fix it in next release SDK 2.15.0

Thank you for bringing the problem to our attention.

Have a nice day,

Jun Zhang

0 Kudos