FreeRTOS and FastSerial

tarribas wrote on Monday, July 09, 2018:

Hi,

I’m trying to compile a FreeRTOS implementation and I need FastSerial.h, but I receive this erro:

…\libraries\FreeRTOS\port.c.o (symbol from plugin): In function `pxPortInitialiseStack’:

(.text+0x0): multiple definition of `__vector_12’

Myapp19.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

c:/program files/windowsapps/arduinollc.arduinoide_1.8.10.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/…/lib/gcc/avr/4.9.2/…/…/…/…/avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

collect2.exe: error: ld returned 1 exit status

rtel wrote on Monday, July 09, 2018:

I’m afraid there is way too little information in your post to know how
to reply. I can glean from the file path that you are using an AVR GCC
port - which is not from us - so I would recommend asking whoever you
obtained the code from. As a guess it seems that you have the same
interrupt defined twice - once in the FreeRTOS port.c file, and once
elsewhere - maybe in example or driver code.

tarribas wrote on Monday, July 09, 2018:

Sorry,

I’m using Arduino Mega environment.

tarribas wrote on Monday, July 09, 2018:

With the FreeRtos sample I can reproduce the problem:

'# include <FastSerial.h>
'# include <Arduino_FreeRTOS.h>

// define two tasks for Blink & AnalogRead
void Task1( void *pvParameters );
void Task2( void *pvParameters );

// the setup function runs once when you press reset or power the board
void setup()
{…

tarribas wrote on Monday, July 09, 2018:

Sorry,

I’ve identified the problem, related with my ISR handling

Please close this issue.

heinbali01 wrote on Tuesday, July 10, 2018:

I’ve identified the problem, related with my ISR handling

Maybe you can tell what caused the problem? It maybe useful for other users reading this post. Thanks.