multicore-fifo lockup /w example #1534
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk#1534
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
yet an other dead-lock in the multicore-fifo. I add the example archive to this issue report.
Here is what I'm doing to reproduce the lockup:
Hardware wiring:
Pin 2 (output) to toggle an IRQ on Pin 14 (input)
ADC idx 0, reading vsys value.
Software:
Repeating Timer (1s) push PROBEEVENT to the core1 waiting in multicore_fifo_pop_blocking and
a1) mirror back the event using multicore_fifo_push_blocking()
a2) Read the vsys value and print set Pin2 to low to trigger an interrupt on Pin 14
INTERRUPT Pin14
push TOGGLEIRQEVENT to core1 waiting in multicore_fifo_pop_blocking and
b1) mirror back the event using multicore_fifo_push_blocking()
b2) set Pin 2 back to high.
main()
while(true) waiting with multicore_fifo_pop_blocking() to receive and print
the event processed in core1 to UART.
Watchdog check if system is ok, or restart after 10 seconds when the lock happen.
Note:
Release build:
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -mtune=cortex-m0")
g++/gcc version 12.2.1 20221205 (15:12.2.rel1-1)
I hope the example will be helpful to find the runtime issue.
Good hunting
Chris
multicore-debug.zip
Thanks
Hmm, I got a isr_hardfault