I think i got answer:
in main() you have to call
INTEnableSystemMultiVectoredInt();
hmm, i googled it but i have also ‘Using the freertos’ pic32 edition book and in examples from the book there is no call for that function…
It sounds like you just haven’t set up the CPU, which you would have to do for any application you were writing (although the actual setup required depends on the application).
I suggest starting with an existing FreeRTOS demo application. Several are provided with the book, and there is a more complex example in the main FreeRTOS zip file download. Once you have an existing example compiling, you can leave in any configuration and setup necessary in main (the #pragmas at the top of main, and normally a function called prvSetupHardware()), and edit away the rest and replace it with your code.
Thanx, only enable vectored interrupt i was missing:) now all works fine. I have a big application with lots of hardware and now i want to transalte it into freeRTOS app
Cross your fingers:)