earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
2.1k stars 435 forks source link

FreeRTOS examples (Multicore_FreeRTOS.ino and StaticMulticore-FreeRTOS.ino) STILL did not work. #1997

Closed mohdrais closed 9 months ago

mohdrais commented 9 months ago

I have replaced the old variantHooks.cpp with the newest version (#1992) but STILL not working.

earlephilhower commented 9 months ago

The examples run fine with git master head. I suggest not manually copying files but instead following the git checkout method described in the docs.

Output from the FreeRTOS-Multicore demo this morning:

C1: Stay on target...
09:47:45.117 -> C0: Blue leader standing by...
09:47:45.117 -> # Tasks: 9
09:47:45.117 -> ID, NAME, STATE, PRIO, CYCLES
09:47:45.117 -> 0: CORE0            Running    4 25403610
09:47:45.117 -> 1: IDLE1            Running    0 323825611
09:47:45.117 -> 2: IDLE0            Ready      0 490590608
09:47:45.117 -> 3: BLINK            Blocked    1 579540
09:47:45.117 -> 4: CORE1            Blocked    4 46210091
09:47:45.117 -> 5: USB              Blocked    6 375677499
09:47:45.117 -> 6: IdleCore1        Suspended  7 17092
09:47:45.117 -> 7: IdleCore0        Suspended  7 44201000
09:47:45.117 -> 8: Tmr Svc          Blocked    2 20666
09:47:45.117 -> val: 65
09:47:45.944 -> C1: Stay on target...
09:47:46.115 -> C0: Blue leader standing by...
09:47:46.115 -> # Tasks: 9
09:47:46.115 -> ID, NAME, STATE, PRIO, CYCLES
09:47:46.115 -> 0: CORE0            Running    4 25795088
09:47:46.115 -> 1: IDLE1            Running    0 452708774
09:47:46.115 -> 2: IDLE0            Ready      0 622680791
09:47:46.115 -> 3: BLINK            Blocked    1 587653
09:47:46.115 -> 4: CORE1            Blocked    4 46236160
09:47:46.115 -> 5: USB              Blocked    6 381076493
09:47:46.115 -> 6: IdleCore0        Suspended  7 44201000
09:47:46.115 -> 7: Tmr Svc          Blocked    2 20666
09:47:46.115 -> 8: IdleCore1        Suspended  7 17092
09:47:46.115 -> val: 66
09:47:46.936 -> C1: Stay on target...
mohdrais commented 9 months ago

Yes it works on Pico but not on Pico W. How to make it work on Pico W?

On Mon, Feb 12, 2024 at 1:48 AM Earle F. Philhower, III < @.***> wrote:

The examples run fine with git master head. I suggest not manually copying files but instead following the git checkout method described in the docs.

Output from the FreeRTOS-Multicore demo this morning:

C1: Stay on target... 09:47:45.117 -> C0: Blue leader standing by... 09:47:45.117 -> # Tasks: 9 09:47:45.117 -> ID, NAME, STATE, PRIO, CYCLES 09:47:45.117 -> 0: CORE0 Running 4 25403610 09:47:45.117 -> 1: IDLE1 Running 0 323825611 09:47:45.117 -> 2: IDLE0 Ready 0 490590608 09:47:45.117 -> 3: BLINK Blocked 1 579540 09:47:45.117 -> 4: CORE1 Blocked 4 46210091 09:47:45.117 -> 5: USB Blocked 6 375677499 09:47:45.117 -> 6: IdleCore1 Suspended 7 17092 09:47:45.117 -> 7: IdleCore0 Suspended 7 44201000 09:47:45.117 -> 8: Tmr Svc Blocked 2 20666 09:47:45.117 -> val: 65 09:47:45.944 -> C1: Stay on target... 09:47:46.115 -> C0: Blue leader standing by... 09:47:46.115 -> # Tasks: 9 09:47:46.115 -> ID, NAME, STATE, PRIO, CYCLES 09:47:46.115 -> 0: CORE0 Running 4 25795088 09:47:46.115 -> 1: IDLE1 Running 0 452708774 09:47:46.115 -> 2: IDLE0 Ready 0 622680791 09:47:46.115 -> 3: BLINK Blocked 1 587653 09:47:46.115 -> 4: CORE1 Blocked 4 46236160 09:47:46.115 -> 5: USB Blocked 6 381076493 09:47:46.115 -> 6: IdleCore0 Suspended 7 44201000 09:47:46.115 -> 7: Tmr Svc Blocked 2 20666 09:47:46.115 -> 8: IdleCore1 Suspended 7 17092 09:47:46.115 -> val: 66 09:47:46.936 -> C1: Stay on target...

— Reply to this email directly, view it on GitHub https://github.com/earlephilhower/arduino-pico/issues/1997#issuecomment-1937821088, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBMQ22P2PU5YPMC75BGR43YTD76VAVCNFSM6AAAAABDDGORECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHAZDCMBYHA . You are receiving this because you authored the thread.Message ID: @.***>

earlephilhower commented 9 months ago

2004

mohdrais commented 9 months ago

Thank you so much. Now they work for both Pico and Pico W.

On Wed, Feb 14, 2024 at 5:38 AM kevnikos @.***> wrote:

2004 https://github.com/earlephilhower/arduino-pico/pull/2004

Timely, this mean a fix is coming? I was just trying to get FreeRTOS working on my Pico W and was scratching my head.

— Reply to this email directly, view it on GitHub https://github.com/earlephilhower/arduino-pico/issues/1997#issuecomment-1942654325, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBMQ2ZIU4RWQS6A222Y77LYTPMNNAVCNFSM6AAAAABDDGORECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBSGY2TIMZSGU . You are receiving this because you authored the thread.Message ID: @.***>