0

FreeRTOS V7.5.3 port for ALL 16 bit pics with hardware stack checking (SPLIM)

UPDATE: The current zip file contains all the fixes discussed below for 7.5.3. I have created a new topic for V8

UPDATE: MY ORIGINAL UPLOAD WAS FAULTY (very red face)

UPDATE: there is a bug, see comments below - I ma waiting for a response from Microchip before updating the zip file

I let a change slip through that was for my system that would cause the timer interrupt to never occur (with configKERNEL_INTERRUPT_PRIORITY set to 1 as is the default) the current attachment should be correct

 

starting concurrently with Martin I started using a dsPIC33E and needed to make changes - I went overboard but...

This port is only the two files portmacro.h and port.c. It no longer uses MPLAB_DSPIC_PORT and doesn't have  separate assember files.

It sets up SPLIM and uses it for all tasks, but not for the initial main program stack (which is abandoned after the scheduler starts.

As a note, there is no problem using EDS memory (i.e. >32k ram) in the application, it just can't be used by FreeRTOS nor by the stack.

Also the new compiler xc16 v1.20 has the option -mno-eds-warn to disable the warnings Martin talks about.

mike




16bitPICs.zip

41 comments

Please sign in to leave a comment.