GPIO Bundle not working on core 1

srjasz
Posts: 46
Joined: Wed Apr 03, 2024 4:29 pm

GPIO Bundle not working on core 1

Postby srjasz » Mon Jul 08, 2024 11:02 pm

I have successfully initialized and implemented a GPIO Bundle. The code is running in app_main() on core 0. If I move the functions that control the GPIO pins to a task that is running on core 1 it no longer works. I don't know why it wouldn't work being that both cores use the same peripherals. Any ideas?
Thanks

MicroController
Posts: 1701
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: GPIO Bundle not working on core 1

Postby MicroController » Tue Jul 09, 2024 9:04 am


srjasz
Posts: 46
Joined: Wed Apr 03, 2024 4:29 pm

Re: GPIO Bundle not working on core 1

Postby srjasz » Tue Jul 09, 2024 2:21 pm

Thanks for the link, that was it. I needed to initialize it on a task that is pinned to core 1. I found that whichever core initialized it last was the core that could control the pins.

Thanks

Who is online

Users browsing this forum: PhilipK and 78 guests