FreeRTOS Community Forums » Microchip
1 FOLLOWERS
Welcome to the Microchip category of FreeRTOS Community Forums. Post questions specific to Microchip here such as errors with high interrupt rates, errors with building FreeRTOS' portasm.c, & FreeRTOS compilation issues, including all pertinent details to help the community resolve your questions faster.
FreeRTOS Community Forums » Microchip
1M ago
Hello,
I have configure the FreeRTOS with low power tickless ideal mode (used MPLAB Harmony) with LIN slave .I have configured 3 application task , They running independently, don’t have any blocking state/events. I have to go to sleep when no communication ( no data) on LIN bus for 1 sec & wake up again once communication started. I used timer to monitor the LIN bus. The timer interrupts (1s) is occur when no communication on LIN & calling vPortSuppressTicksAndSleep (). I written own function vPortSuppressTicksAndSleep() calling inside PM_StandbyModeEnter().
but controller not going t ..read more
FreeRTOS Community Forums » Microchip
2M ago
Hi
I am a little confused while I am migrating my old embOS Renesas source code to Microchip FreeRTOS.
In Renesas, we were using this below :
void far TA1_ISR()
{
P7 &= 0xFB; //sk cr step signal off//
OS_EnterNestableInterrupt();
Motor_timer();
OS_LeaveNestableInterrupt();
}
Now in Microchip, I am using this :
void TA1_ISR(uint32_t status, uintptr_t context) {
UBaseType_t TA1_ISR_uxSavedInterruptStatus;
TA1_ISR_uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
vTaskSuspendAll();
PORT_PinWrite(C ..read more
FreeRTOS Community Forums » Microchip
3M ago
I am facing problems while using free RTOS with PIC32MZ2048EFM100… it works well and then all of a sudden when the code is modified it just fails to work although there is no syntax or logical error in the project… for example when a variable is added it stops working and gives refill exception and once a dummy variable is added along with it starts working… it takes a lot of time to code with these issues… has anyone else faced these issues? Has anyone resolved such issue kindly help… thankyou
2 posts - 2 participants
Read full topic ..read more
FreeRTOS Community Forums » Microchip
3M ago
Hi,
I am relatively new to FreeRTOS and embedded devices in general but I have been attempting to get ethernet communication with a SAMA5D27 dev board. I have been using MPLab libraries to set up FreeRTOS and it seems to be building correctly. Everything is initiating and I can create tasks but when vTaskStartScheduler() is called it causes it to jump to the undefined instructions interrupt handler and nothing ever actually runs. I traced through it with the debugger and it seems to always get stuck on this line in FreeRTOS_tasks.c:
memset( ( void * ) pxNewTCB, 0x00, sizeof( TCB_t ) );
Any a ..read more
FreeRTOS Community Forums » Microchip
3M ago
I’m using a SAM4E Xplained Board in Microchip Studio. I don’t know why xTaskCreate and xTaskDelay will compile just fine. However, even with including task.h, and setting the include and gcc arm directories up in properties… I keep gettting the linker errosr:
undefined reference to vTaskSuspect, Resume, etc
ld returned 1 exit status
Why and what do I do to fix it?
Many thanks in advance!
3 posts - 3 participants
Read full topic ..read more
FreeRTOS Community Forums » Microchip
7M ago
Hi!
I’m working on a project where I’m using a custom CMake-based build system for PIC24FJ256GA7 MCU.
I’ve added the freeRTOS repository as a git submodule into my project but after configuring my CMake to make use of it i faced the compiler options issues…
In the FreeRTOS repository CMakeLists.txt file, there are such options:
target_compile_options(freertos_kernel PRIVATE
### Gnu/Clang C Options
$<$<COMPILE_LANG_AND_ID:C,GNU>:-fdiagnostics-color=always>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-fcolor-diagnostics>
$<$<COMPILE_LANG_AND_ID:C,Clang,GNU&g ..read more
FreeRTOS Community Forums » Microchip
11M ago
Won’t compile
Example Error just below, 6 other errors saying this file is missing as well.
…/src/config/sam_e51_cnano/osal/osal_freertos.h:56:10: fatal error: FreeRTOS.h: No such file or directory
I apologize folks, not sure if here is the place to ask this.
I have started very basic projects multiple times using SAME51 on multiple computers. Current computer is running MPLABX 6.05, MCC 5.5, not sure on FreeRTOS
Others were older versions of software and not all up to date.
I use MCC harmony to create them. Simple, create new project, start MCC, add a usart. The usart adds FreeRTOS. Set up th ..read more
FreeRTOS Community Forums » Microchip
1y ago
Hi,
I am using FreeRtos v10.5.1 from “git clone --depth 1 --branch v10.5.1 GitHub - ARM-software/CMSIS-FreeRTOS: FreeRTOS adaptation for CMSIS-RTOS Version 2”, but i tried with other versions and same problem.
The FreerRtos is still not running correctly.
Simple test program:
I created two tasks to toggle a led.
Task1 should toggle led1 each 500 ms.
Task2 should toggle led2 each 500 ms.
When the priority of the two tasks is set to 1, a exception occur, calling the function “void attribute((noreturn)) _simple_tlb_refill_exception_handler(void)”, _excep_code = 0x00000002, _excep_addr = 0x0000000 ..read more
FreeRTOS Community Forums » Microchip
1y ago
Hi, need some expert opinion. I have some bug causing hangup. With MPLab Microchip debugger I cannot find the reason. Microchip do not have a view on Tasks, Semaphores etc.
Do you see maybe something obvious here in the code?
#include "FreeRTOS.h"
#include "clk_config.h"
#include "mcc_generated_files/system/system.h"
#include "mcc_generated_files/timer/delay.h"
#include "mcc_generated_files/timer/tca1.h"
#include "RGBcontrol.h"
#include "grideye.h"
#include <avr/interrupt.h>
#include <string.h>
#include <task.h>
#include <json.h>
#include <semphr.h>
#include &l ..read more
FreeRTOS Community Forums » Microchip
1y ago
Hello,
i tried to condensate the issue in the title. A little background:
I have an application running on a dsPIC33CK64MP502 (dsPIC33CK core, 64k Flash, 8k RAM)
The FreeRTOS port is the v9.0.0 present on the microchip Github: GitHub - MicrochipTech/freeRTOS-PIC24-dsPIC-PIC32MM: This repository contains the freeRTOS demos for Microchip device families like PIC24, dsPIC33E, dsPIC33F , dsPIC33C and PIC32MM.
I should mention that i do not use the Heap, all kernel objects are allocated statically and all interrupts that deal with kernel objects have the same priority as the kernel timer interrupt ..read more