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
free RTOs for dspic30/33,microc
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: free RTOs for dspic30/33,microc
Hello,
Have you turned on case sensitivity in Options > Output > Output Settings?
Regards,
Have you turned on case sensitivity in Options > Output > Output Settings?
Regards,
Filip Grujcic
Re: free RTOs for dspic30/33,microc
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);
}
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
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: free RTOs for dspic30/33,microc
Hi,
I believe that my colleague answered you on the ticket, so you can continue the conversation there.
Kind regards,
Jovana
I believe that my colleague answered you on the ticket, so you can continue the conversation there.
Kind regards,
Jovana
Re: free RTOs for dspic30/33,microc
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
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
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: free RTOs for dspic30/33,microc
Hi Patrick,
Unfortunately, our compiler does not support dual core microcontrollers, for now.
Kind regards,
Jovana
Unfortunately, our compiler does not support dual core microcontrollers, for now.
Kind regards,
Jovana
Re: free RTOs for dspic30/33,microc
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
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
-
- Posts: 1
- Joined: 18 Jul 2023 08:21
Re: free RTOs for dspic30/33,microc
Hi,wanyama wrote: ↑03 Aug 2020 16:56I 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);
}
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