Closed benner closed 4 months ago
Hi @benner! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
Note that when CONFIG_MISRA_SANE=y build error occur when compiling samples/drivers/jesd216/
~/samples/drivers/jesd216/src/main.c: In function 'main':
~/zephyr/samples/drivers/jesd216/src/main.c:325:17: error: ISO C90 forbids variable length array 'dw' [-Werror=vla]
325 | uint32_t dw[php->len_dw];
| ^~~~~~~~
cc1: some warnings being treated as errors
Considering that php-> len_dw is held by uint8_t ; / Length of table in 32-bit DWORDs /
then in case of CONFIG_MISRA_SANE=y, the dw should be declared as uint32_t dw[255]
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Application using QSPI and CONFIG_MISRA_SANE=y fails to compile
If I enable
CONFIG_MISRA_SANE=y
inprj.conf
application fails to compile.Target platform: STM32G4
To Reproduce On STM32, configure QSPI device (
st,stm32-qspi
), enableCONFIG_MISRA_SANE=y
inprj.conf
.Expected behavior I'm able to compile the project
Impact Cannot enforce
CONFIG_MISRA_SANE
for whole project.Logs and console output
Environment (please complete the following information):
Additional context DT: