FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.51k stars 1.05k forks source link

dsPIC33CK port #1095

Open AG-CodeWringer opened 1 week ago

AG-CodeWringer commented 1 week ago

Description

Modify source code of the dsPIC port of FreeRTOS so that it compiles under for the dsPIC33CK128MP505. Changes concentrate on task switching and take account of slightly different core registers in dsPIC33CK. Not tested.

Test Steps

My aim is to run FreeRTOS on dsPIC33CK microcontroller. I have notices that this has vexed other engineers before me. In particular issue 7551. In that comment, a link was given to a port to the dsPIC33 on the interactive FreeRTOS forum, however that link appears to be stale (I can't reach it).

https://interactive.freertos.org/hc/en-us/community/posts/210026846-FreeRTOS-V8-2-0-port-for-ALL-16-bit-PICs-with-hardware-stack-checking-SPLIM-

At the same time, comment in port.c states that dsPIC parts with EDS are unsupported. This leaves me a little confused.

Please tell me whether there is a port of FreeRTOS for the dsPIC33CK.

Am I trying to do the right thing with my suggested code changes (in this pull request)?

Many Thanks

A

Checklist:

Related Issue

https://forums.freertos.org/t/i-have-a-problem-in-using-freertosv10-1-1-the-mcu-is-iteratively-rebooting-and-not-executing-task-function/7551

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

kstribrnAmzn commented 1 week ago

Thank you for submitting this PR! I'll reach out to the team to see who here has access to a dsPIC33 board and can try out this change.

aggarg commented 1 week ago

however that link appears to be stale (I can't reach it).

I am able to reach the link and here is the port that is attached in that link: 16bitPICsV8.zip. Note that I have not read the contents of the attachment. I just downloaded it and attaching it as it is.