Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: basic: blinky: eGPIO PoC #3

Closed

Conversation

jaz1-nordic
Copy link
Collaborator

No description provided.

@jaz1-nordic jaz1-nordic force-pushed the NRFX-5849-flpr-comms-handling-and-bitbang branch 2 times, most recently from 304fe73 to 87278dc Compare June 26, 2024 16:08
- ipc
filter: dt_enabled_alias_with_parent_compat("led4", "gpio-leds")
depends_on: gpio
harness:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to harness: console
Current configuration fails and twister cannot start any testing.

@nordic-piks
Copy link

nrf54l15pdk/nrf54l15/cpuapp samples/drivers/mbox/sample.drivers.mbox.nrf54l15_no_multithreading PASSED
nrf54l15pdk/nrf54l15/cpuapp samples/subsys/ipc/ipc_service/icmsg/sample.ipc.icmsg.nrf54l15 PASSED
6/6 nrf54l15pdk/nrf54l15/cpuapp samples/subsys/ipc/ipc_service/icmsg/sample.ipc.icmsg.nrf54l15_no_multithreading FAILED Timeout (device: 1057743738, 68.087s)
14:10:01 INFO - /jenkins_cache/test-zephyr-sanitycheck/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuapp/samples/subsys/ipc/ipc_service/icmsg/sample.ipc.icmsg.nrf54l15_no_multithreading/handler.log

14:10:01  ERROR   - *** Booting Zephyr OS build v3.7.0-rc1-437-g87278dcc74c8 ***
14:10:01  I: IPC-service HOST demo started
14:10:01  E: ***** USAGE FAULT *****
14:10:01  E:   Stack overflow (context area not valid)
14:10:01  E: r0/a1:  0x0000710e  r1/a2:  0x20018008  r2/a3:  0x00000000
14:10:01  E: r3/a4:  0x00007110 r12/ip:  0x0000a5df r14/lr:  0x0000103d
14:10:01  E:  xpsr:  0x09000000
14:10:01  E: Faulting instruction address (r15/pc): 0x00001044
14:10:01  E: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
14:10:01  E: Current thread: 0 (unknown)
14:10:01  E: Halting system

2nd and3rd execution:
nrf54l15pdk/nrf54l15/cpuapp samples/subsys/ipc/ipc_service/icmsg/sample.ipc.icmsg.nrf54l15_no_multithreading FAILED Timeout (device: 1057717622, 67.787s)
14:11:38 INFO - /jenkins_cache/test-zephyr-sanitycheck/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuapp/samples/subsys/ipc/ipc_service/icmsg/sample.ipc.icmsg.nrf54l15_no_multithreading/handler.log

14:11:38  ERROR   - *** Booting Zephyr OS build v3.7.0-rc1-437-g87278dcc74c8 ***
14:11:38  I: IPC-service HOST demo started
14:11:38  I: Ep bounded
14:11:38  I: Perform sends for 1000 [ms]
14:11:38  I: Sent 2003473 [Bytes] over 1000 [ms]
14:11:38  I: Wait 500ms. Let remote core finish its sends
14:11:38  I: Received 2003473 [Bytes] in total
14:11:38  I: IPC-service HOST demo ended

@nordic-piks
Copy link

In general test can be run using this job - please notice parameters:
https://jenkins-ncs.nordicsemi.no/job/latest/job/test-fw-twister-upstream-zephyr/job/customizable/job/main/338/parameters/

magp-nordic and others added 12 commits July 11, 2024 12:19
Update hal_nordic with headers for eGPIO.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Add binding for emulated GPIO.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Add Kconfig option for emulated peripherals drivers support.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Add support for emulated peripherals on nRF54L15 APP.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Add node for emulated gpio in nRF54L15 APP dts.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Change default init priority for emulated GPIO, so that it is
initialized after IPC.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Add driver for emulated GPIO.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Modify blinky sample to use emulated GPIO.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Adapting icmsg to work without the MULTITHREADING functionality.
Dependencies for kernel work_queue, mutexes and other functions
related to running multithreaded applications have been 'ifdefed'.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
Removed k_sleep dependencies in non-multithreaded runs.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
Removed k_sleep dependencies and added 'printk' instead of LOG
in non-multithreaded runs.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
PoC of eGPIO peripheral.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
@jaz1-nordic jaz1-nordic force-pushed the NRFX-5849-flpr-comms-handling-and-bitbang branch from 1ec99b8 to 944a7a0 Compare July 11, 2024 10:19
@jaz1-nordic
Copy link
Collaborator Author

Changes applied here: nrfconnect/sdk-nrf#16393

@jaz1-nordic jaz1-nordic deleted the NRFX-5849-flpr-comms-handling-and-bitbang branch July 30, 2024 12:38
masz-nordic pushed a commit that referenced this pull request Oct 28, 2024
hci_packet_complete(buf, buf_size) should check whether buf_size is
enough.
For instance, hci_packet_complete can receive buf with buf_size 1,
leading to the buffer overflow in cmd->param_len, which is buf[3].
This can happen when rx_thread() receives two frames in 512 bytes
and the first frame size is 511. Then, rx_thread() will call
hci_packet_complete() with 1.

==5==ERROR: AddressSanitizer: global-buffer-overflow on address
0x000000ad81c2 at pc 0x0000005279b3 bp 0x7fffe74f5b70 sp 0x7fffe74f5b68

READ of size 2 at 0x000000ad81c2 thread T6
    #0 0x5279b2  (/root/zephyr.exe+0x5279b2)
    #1 0x4d697d  (/root/zephyr.exe+0x4d697d)
    #2 0x7ffff60e5daa  (/lib/x86_64-linux-gnu/libc.so.6+0x89daa)
(BuildId: 2e01923fea4ad9f7fa50fe24e0f3385a45a6cd1c)

0x000000ad81c2 is located 2 bytes to the right of global variable
'rx_thread.frame' defined in 'zephyr/drivers/bluetooth/hci/userchan.c'
(0xad7fc0) of size 512
SUMMARY: AddressSanitizer: global-buffer-overflow
(/root/zephyr.exe+0x5279b2)
Thread T6 created by T2 here:
    #0 0x48c17c  (/root/zephyr.exe+0x48c17c)
    #1 0x530192  (/root/zephyr.exe+0x530192)
    #2 0x4dcc22  (/root/zephyr.exe+0x4dcc22)

Thread T2 created by T1 here:
    #0 0x48c17c  (/root/zephyr.exe+0x48c17c)
    #1 0x530192  (/root/zephyr.exe+0x530192)
    #2 0x4dcc22  (/root/zephyr.exe+0x4dcc22)

Thread T1 created by T0 here:
    #0 0x48c17c  (/root/zephyr.exe+0x48c17c)
    #1 0x52f36c  (/root/zephyr.exe+0x52f36c)
    #2 0x5371dc  (/root/zephyr.exe+0x5371dc)
    #3 0x5312a6  (/root/zephyr.exe+0x5312a6)
    #4 0x52ed7b  (/root/zephyr.exe+0x52ed7b)
    zephyrproject-rtos#5 0x52eddd  (/root/zephyr.exe+0x52eddd)
    zephyrproject-rtos#6 0x7ffff6083c89  (/lib/x86_64-linux-gnu/libc.so.6+0x27c89)
(BuildId: 2e01923fea4ad9f7fa50fe24e0f3385a45a6cd1c)

==5==ABORTING

Signed-off-by: Sungwoo Kim <iam@sung-woo.kim>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants