Hi All!
I have got MCU based on PIC32MZ architecture
I need to launch FreeRTOS on it
All Projects Ive done in Eclipse IDE + mips-mti-elf and they are working
But when I tried to add FreeRTOS for PIC32MZ I faced with many errors during compilation
Then I tried to compile only just FreeRTOS with simple main based on stdlib with using MPLAB X IDE+X32 compiler and thanks to [aggarg] Ive got right compiled for PIC32MZ FreeRTOS assembly.
And verified FreeRTOS I just replaced in my Eclipse project but still got the errors:
11:55:31 **** Incremental Build of configuration Debug for project t7prj ****
Info: Internal Builder is used for build
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/portable/MemMang/heap_4.o ../FreeRTOS/Source/portable/MemMang/heap_4.c
../FreeRTOS/Source/portable/MemMang/heap_4.c: In function ‘pvPortMalloc’:
../FreeRTOS/Source/portable/MemMang/heap_4.c:156:25: warning: implicit declaration of function ‘_mfc0’ [-Wimplicit-function-declaration]
configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
^
../FreeRTOS/Source/portable/MemMang/heap_4.c:156:25: warning: implicit declaration of function ‘_mtc0’ [-Wimplicit-function-declaration]
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/queue.o ../FreeRTOS/Source/queue.c
../FreeRTOS/Source/queue.c: In function ‘xQueueGenericReset’:
../FreeRTOS/Source/queue.c:272:5: warning: implicit declaration of function ‘_mfc0’ [-Wimplicit-function-declaration]
configASSERT( pxQueue );
^
../FreeRTOS/Source/queue.c:272:5: warning: implicit declaration of function ‘_mtc0’ [-Wimplicit-function-declaration]
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/timers.o ../FreeRTOS/Source/timers.c
../FreeRTOS/Source/timers.c: In function ‘xTimerCreateTimerTask’:
../FreeRTOS/Source/timers.c:282:9: warning: implicit declaration of function ‘_mfc0’ [-Wimplicit-function-declaration]
configASSERT( xReturn );
^
../FreeRTOS/Source/timers.c:282:9: warning: implicit declaration of function ‘_mtc0’ [-Wimplicit-function-declaration]
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o shared/libs/spi_lib.o ../shared/libs/spi_lib.c
../shared/libs/spi_lib.c: In function ‘SPI_WaitTxNotFull’:
../shared/libs/spi_lib.c:26:25: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
while (s->IntStatus & SPI_TX_FIFO_not_full_M == 0) ;
^
../shared/libs/spi_lib.c: In function ‘SPI_ClearRxBuffer’:
../shared/libs/spi_lib.c:63:14: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
uint32_t dummy;
^
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o shared/libs/uart_lib.o ../shared/libs/uart_lib.c
../shared/libs/uart_lib.c: In function ‘UART_ClearRxFifo’:
../shared/libs/uart_lib.c:112:18: warning: unused variable ‘null’ [-Wunused-variable]
uint16_t null = uart->RFIFO;
^
mipsel-mti-elf-gcc -msoft-float -march=mips32r2 -c -g -D_ASSEMBLER_ -o shared/runtime/cache_utils.o ../shared/runtime/cache_utils.S -I/usr/local/mipsel-mti-elf/include/mips -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/list.o ../FreeRTOS/Source/list.c
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o shared/libs/i2s_lib.o ../shared/libs/i2s_lib.c
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/stream_buffer.o ../FreeRTOS/Source/stream_buffer.c
../FreeRTOS/Source/stream_buffer.c: In function ‘xStreamBufferGenericCreate’:
../FreeRTOS/Source/stream_buffer.c:250:13: warning: implicit declaration of function ‘_mfc0’ [-Wimplicit-function-declaration]
configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );
^
../FreeRTOS/Source/stream_buffer.c:250:13: warning: implicit declaration of function ‘_mtc0’ [-Wimplicit-function-declaration]
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.o ../FreeRTOS/Demo/PIC32MZ_MPLAB/flop_mz.c
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o shared/libs/CalculateFletcher64.o ../shared/libs/CalculateFletcher64.c
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o main.o ../main.c
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o shared/libs/Menie_printf.o ../shared/libs/Menie_printf.c
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o shared/libs/i2c_lib.o ../shared/libs/i2c_lib.c
../shared/libs/i2c_lib.c: In function ‘I2C_SyncCommand’:
../shared/libs/i2c_lib.c:66:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../shared/libs/i2c_lib.c: In function ‘I2C_TimeoutSyncCommand’:
../shared/libs/i2c_lib.c:88:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/event_groups.o ../FreeRTOS/Source/event_groups.c
../FreeRTOS/Source/event_groups.c: In function ‘xEventGroupSync’:
../FreeRTOS/Source/event_groups.c:204:5: warning: implicit declaration of function ‘_mfc0’ [-Wimplicit-function-declaration]
configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
^
../FreeRTOS/Source/event_groups.c:204:5: warning: implicit declaration of function ‘_mtc0’ [-Wimplicit-function-declaration]
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/croutine.o ../FreeRTOS/Source/croutine.c
mipsel-mti-elf-gcc -c -msoft-float -march=mips32r2 -DDEBUG_MASK=0x0F -DNO_SYS=0 -DLWIP_COMPAT_MUTEX=1 -O2 -g -I/home/.local/9024/t7/t7prj -I/usr/local/mipsel-mti-elf/include -I/home/.local/9024/t7/t7prj/shared -I/home/.local/9024/t7/t7prj/shared/include -I/home/.local/9024/t7/t7prj/shared/libs -I/home/.local/9024/t7/t7prj/shared/periphery -I/home/.local/9024/t7/t7prj/shared/runtime -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I/home/.local/9024/t7/t7prj/FreeRTOS/Source/include -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/PIC32MZ_MPLAB -I/home/.local/9024/t7/t7prj/FreeRTOS/Demo/Common/include -include/usr/local/mipsel-mti-elf/include/stdint.h -include/home/.local/9024/t7/t7prj/common.h -include/home/.local/9024/t7/t7prj/shared/include/debug90.h -Wall -std=c99 -o FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.o ../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:44:6: error: #error This port is designed to work with XC32 on PIC32MZ MCUs. Please update your C compiler version or settings.
#error This port is designed to work with XC32 on PIC32MZ MCUs. Please update your C compiler version or settings.
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c: In function ‘pxPortInitialiseStack’:
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:186:2: warning: implicit declaration of function ‘_mfc0’ [-Wimplicit-function-declaration]
*pxTopOfStack = (StackType_t) _CP0_GET_CAUSE();
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c: In function ‘prvTaskExitError’:
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:218:2: warning: implicit declaration of function ‘_mtc0’ [-Wimplicit-function-declaration]
configASSERT( uxSavedTaskStackPointer == 0UL );
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c: In function ‘vApplicationSetupTickTimerInterrupt’:
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:237:2: error: ‘T1CON’ undeclared (first use in this function)
T1CON = 0x0000;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:237:2: note: each undeclared identifier is reported only once for each function it appears in
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:238:2: error: ‘T1CONbits’ undeclared (first use in this function)
T1CONbits.TCKPS = portPRESCALE_BITS;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:239:2: error: ‘PR1’ undeclared (first use in this function)
PR1 = ulCompareMatch;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:240:2: error: ‘IPC1bits’ undeclared (first use in this function)
IPC1bits.T1IP = configKERNEL_INTERRUPT_PRIORITY;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:243:2: error: ‘IFS0bits’ undeclared (first use in this function)
IFS0bits.T1IF = 0;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:246:2: error: ‘IEC0bits’ undeclared (first use in this function)
IEC0bits.T1IE = 1;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c: In function ‘xPortStartScheduler’:
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:274:2: error: ‘IFS0CLR’ undeclared (first use in this function)
IFS0CLR = _IFS0_CS0IF_MASK;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:274:12: error: ‘_IFS0_CS0IF_MASK’ undeclared (first use in this function)
IFS0CLR = _IFS0_CS0IF_MASK;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:277:2: error: ‘IPC0CLR’ undeclared (first use in this function)
IPC0CLR = _IPC0_CS0IP_MASK;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:277:12: error: ‘_IPC0_CS0IP_MASK’ undeclared (first use in this function)
IPC0CLR = _IPC0_CS0IP_MASK;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:278:2: error: ‘IPC0SET’ undeclared (first use in this function)
IPC0SET = ( configKERNEL_INTERRUPT_PRIORITY << _IPC0_CS0IP_POSITION );
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:278:49: error: ‘_IPC0_CS0IP_POSITION’ undeclared (first use in this function)
IPC0SET = ( configKERNEL_INTERRUPT_PRIORITY << _IPC0_CS0IP_POSITION );
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:281:2: error: ‘IEC0CLR’ undeclared (first use in this function)
IEC0CLR = _IEC0_CS0IE_MASK;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:281:12: error: ‘_IEC0_CS0IE_MASK’ undeclared (first use in this function)
IEC0CLR = _IEC0_CS0IE_MASK;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:282:2: error: ‘IEC0SET’ undeclared (first use in this function)
IEC0SET = 1 << _IEC0_CS0IE_POSITION;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:282:17: error: ‘_IEC0_CS0IE_POSITION’ undeclared (first use in this function)
IEC0SET = 1 << _IEC0_CS0IE_POSITION;
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c: In function ‘vPortIncrementTick’:
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:312:4: warning: implicit declaration of function ‘_bsc0’ [-Wimplicit-function-declaration]
_CP0_BIS_CAUSE( portCORE_SW_0 );
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:98:45: error: ‘IFS0CLR’ undeclared (first use in this function)
#define configCLEAR_TICK_TIMER_INTERRUPT() IFS0CLR = _IFS0_T1IF_MASK
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:321:2: note: in expansion of macro ‘configCLEAR_TICK_TIMER_INTERRUPT’
configCLEAR_TICK_TIMER_INTERRUPT();
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:98:55: error: ‘_IFS0_T1IF_MASK’ undeclared (first use in this function)
#define configCLEAR_TICK_TIMER_INTERRUPT() IFS0CLR = _IFS0_T1IF_MASK
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:321:2: note: in expansion of macro ‘configCLEAR_TICK_TIMER_INTERRUPT’
configCLEAR_TICK_TIMER_INTERRUPT();
^
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c: In function ‘uxPortSetInterruptMaskFromISR’:
../FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c:329:2: warning: implicit declaration of function ‘__builtin_disable_interrupts’ [-Wimplicit-function-declaration]
__builtin_disable_interrupts();
^
11:55:33 Build Finished (took 2s.288ms)
I think what I need to do some editions of port_asm.S, port.c, portable.h, portmacro.h, platfrom.h, sys_arch.h and to delete xc.h, mpu_warappers.h
But gotten errors do not correlate with these sources in my opinion
Please help!