free RTOs for dspic30/33,microc

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
wanyama
Posts: 4
Joined: 07 Dec 2013 11:36

free RTOs for dspic30/33,microc

#1 Post by wanyama » 01 Aug 2020 15:04

Hi Members

iam trying to use micro c for dspic with free RTOs ,i cannot move forward ,when i try to compile the BLANK examples given i get errors,kindly assist.

wanyama
patrick wanyama

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: free RTOs for dspic30/33,microc

#2 Post by filip.grujcic » 03 Aug 2020 08:46

Hello,

Have you turned on case sensitivity in Options > Output > Output Settings?

Regards,
Filip Grujcic

wanyama
Posts: 4
Joined: 07 Dec 2013 11:36

Re: free RTOs for dspic30/33,microc

#3 Post by wanyama » 03 Aug 2020 16:56

I have a problem with Running the RTO_BLANK DEMO provided at Libstock.I have done the following:
1.i'm using dspic33FJ256GP710A,instead of the dspic33EP512MU810 as used in the blank demo example.

2.i have compiled the program with no errors,my compiler has a license.

3.i'm able to download the program into the microcontroller without any problem.

my problem is the program does not execute in the task loop.i have only one task,which the LEDs at portb are supposed to turn ON.the LEDs do not come ON.
in the main LOOP the LEDs turn ON.

i have set the heap at 2000.

is it that the vTaskStartScheduler(); is not starting?what could be the problem?kindly assist.

i have tried to seek assistance at the Forum ,but all discussions and solutions are based on PIC32 and ARM systems.

N/B attached is the program

/*
* Project name:
FreeRTOS Blank
* Copyright:
(c) Mikroelektronika, 2018.
* Revision History:
20180320:
- Initial release;
* Description:
This is a blank project which includes all the files
required for building an application that uses FreeRTOS,
and can be used as a template for making your own FreeRTOS applications.
* Test configuration:
MCU: P33EP512MU810
Dev.Board: EasyPIC Fusion v7
http://www.mikroe.com/easypic-fusion/
Oscillator: XT-PLL, 80.0000MHz
Ext. Modules: None
SW: mikroC PRO for dsPIC
http://www.mikroe.com/mikroc/dspic/
*/

// Includes

#include "main.h"

// Public Function Definitions

// Task 1 - An example task.
void task1(void *pvParameters)
{
AD1PCFGH=0x00; //Initialize AN pins as digital
AD2PCFGL =0x00;




TRISB = 0x00; // Set PORTB pins as digital output.

while (1)
{
PORTB=0xFF; // turn on LEDS on port B

}
}

// Main function, which creates the tasks and starts the scheduler.
//void (*ptr)(void*);
void main()
{



// Setting output frequency to 80MHz
PLLPRE_0_bit = 0;
PLLPRE_1_bit = 0;
PLLPRE_2_bit = 0;
PLLPRE_3_bit = 0;
PLLPRE_4_bit = 0;

PLLFBD = 38;

PLLPOST_0_bit = 0;
PLLPOST_1_bit = 0;


// Create task 1.
xTaskCreate(
(TaskFunction_t)task1,
"Task 1",
configMINIMAL_STACK_SIZE,
NULL,
10,
NULL
);

// Start the RTOS scheduler.
vTaskStartScheduler();

// Will never reach here.
while (1);
}
patrick wanyama

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: free RTOs for dspic30/33,microc

#4 Post by jovana.medakovic » 04 Aug 2020 15:16

Hi,

I believe that my colleague answered you on the ticket, so you can continue the conversation there.

Kind regards,
Jovana

wanyama
Posts: 4
Joined: 07 Dec 2013 11:36

Re: free RTOs for dspic30/33,microc

#5 Post by wanyama » 04 Aug 2020 18:16

Hi

yes ,he said porting is not in your scope of, support service.i will have to seek assistance elsewhere or use the dspic33EP512MU810.
final question,does mikroc for dspic support ,dual core microcontrollers?

Thanks
Best Regards

patrick
patrick wanyama

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: free RTOs for dspic30/33,microc

#6 Post by jovana.medakovic » 05 Aug 2020 09:23

Hi Patrick,

Unfortunately, our compiler does not support dual core microcontrollers, for now.

Kind regards,
Jovana

wanyama
Posts: 4
Joined: 07 Dec 2013 11:36

Re: free RTOs for dspic30/33,microc

#7 Post by wanyama » 05 Aug 2020 10:33

Hi Jovana

thanks ,for your information.i hope you will put it in the "to do list",we need it ,in the near Future.

Regards

Patrick
patrick wanyama

ogedayyildiz
Posts: 1
Joined: 18 Jul 2023 08:21

Re: free RTOs for dspic30/33,microc

#8 Post by ogedayyildiz » 18 Jul 2023 08:25

wanyama wrote:
03 Aug 2020 16:56
I have a problem with Running the RTO_BLANK DEMO provided at Libstock.I have done the following:
1.i'm using dspic33FJ256GP710A,instead of the dspic33EP512MU810 as used in the blank demo example.

2.i have compiled the program with no errors,my compiler has a license.

3.i'm able to download the program into the microcontroller without any problem.

my problem is the program does not execute in the task loop.i have only one task,which the LEDs at portb are supposed to turn ON.the LEDs do not come ON.
in the main LOOP the LEDs turn ON.

i have set the heap at 2000.

is it that the vTaskStartScheduler(); is not starting?what could be the problem?kindly assist.

i have tried to seek assistance at the Forum ,but all discussions and solutions are based on PIC32 and ARM systems.

N/B attached is the program

/*
* Project name:
FreeRTOS Blank
* Copyright:
(c) Mikroelektronika, 2018.
* Revision History:
20180320:
- Initial release;
* Description:
This is a blank project which includes all the files
required for building an application that uses FreeRTOS,
and can be used as a template for making your own FreeRTOS applications.
* Test configuration:
MCU: P33EP512MU810
Dev.Board: EasyPIC Fusion v7
http://www.mikroe.com/easypic-fusion/
Oscillator: XT-PLL, 80.0000MHz
Ext. Modules: None
SW: mikroC PRO for dsPIC
http://www.mikroe.com/mikroc/dspic/
*/

// Includes

#include "main.h"

// Public Function Definitions

// Task 1 - An example task.
void task1(void *pvParameters)
{
AD1PCFGH=0x00; //Initialize AN pins as digital
AD2PCFGL =0x00;




TRISB = 0x00; // Set PORTB pins as digital output.

while (1)
{
PORTB=0xFF; // turn on LEDS on port B

}
}

// Main function, which creates the tasks and starts the scheduler.
//void (*ptr)(void*);
void main()
{



// Setting output frequency to 80MHz
PLLPRE_0_bit = 0;
PLLPRE_1_bit = 0;
PLLPRE_2_bit = 0;
PLLPRE_3_bit = 0;
PLLPRE_4_bit = 0;

PLLFBD = 38;

PLLPOST_0_bit = 0;
PLLPOST_1_bit = 0;


// Create task 1.
xTaskCreate(
(TaskFunction_t)task1,
"Task 1",
configMINIMAL_STACK_SIZE,
NULL,
10,
NULL
);

// Start the RTOS scheduler.
vTaskStartScheduler();

// Will never reach here.
while (1);
}
Hi,

I have the exact same issue with the dsPIC33FJ256MC510. I guess the forum conversations say that it is about porting, and requires professional assistance. Is it case, can't I do it on my own?

Thanks, regards

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”