I don't seem to have those, but I do have vTaskSuspendAll() and xTaskResumeAll(). Using these doesn't help in the slightest though.
2013-02-15 08:15:31 PST in FreeRTOS Real Tim...
I've spent all day on this and got absolutely nowhere. I am not really sure whether I am implementing the semaphore incorrectly, whether the tasks switch while waiting for the semaphore or whether I have not correctly implemented the interrupt routine for the HSCMI interface. So, what I would like to do, to prevent me having to knock p a run-to-complete program, in the part of the software...
2013-02-15 07:23:01 PST in FreeRTOS Real Tim...
OK, fair enough! I'll try the semaphore, get some debug pins toggling and see what difference it makes, then report back. Thanks again for the advice, much appreciated.
2013-02-14 16:16:31 PST in FreeRTOS Real Tim...
I am, indeed, polling a status bit. I am not invoking a task delay. So that means that the task switch will only occur once the time slice for that task has expired. thanks for that. I will give the semaphore option a try, having done some reading about it, it looks like it might be the right option. The hardware certainly supports the DMA putting the data wherever it is wanted. The...
2013-02-14 15:14:28 PST in FreeRTOS Real Tim...
I suspect my question is largely a question of naivety so please be gentle! :) I have a set up where I am successfully reading files from an SD card, but I need to make it more efficient. I believe that I should be reading a sector of my SD card in 48us, so with files that are 2048 bytes long should, best case scenario take around 192us. They are not and I am pretty sure I know why, it's just...
2013-02-14 12:20:56 PST in FreeRTOS Real Tim...
I've started adding FAT file support to FreeRTOS, on top of a main_blinky setup. It works without the FAT code, but when I add a thread to start running code already tested on run-to-complete it jumps to the Dummy_Handler. It says this is for unused IRQs I've added this very basic thread so far: [code]void FATFileProcessing( void *pvParameters ) { /* Just to avoid compiler...
2013-01-20 17:08:42 PST in FreeRTOS Real Tim...
Hi Richard, It's already working actually, I just created a new project from scratch, imported all the source files to the new project and had to add all the header file paths to the project. (There's a lot of them!). Crossworks takes care of all the startup stuff and as you say, they're both GCC, so that takes care of an awful lot of stuff. I've changed the paths to be relative and am...
2013-01-20 15:19:08 PST in FreeRTOS Real Tim...
I have managed to take the Atmel Studio version of FreeRTOS and get it working with Crossworks. It's a little bit cobbled together because I have put absolute paths in for all the include files, so I mist improve that. Also, it seemed to specify that the clock was 4MHz, so I have put in some code from previous run-to-complete software I wrote to use the external crystal and changed this line...
2013-01-20 11:04:21 PST in FreeRTOS Real Tim...
Dave, the tip about NVIC_PriorityGroupConfig seems to have done the trick, thanks. I commented it out, I think when I was trying to resolve a bootloader problem. This may stop the bootloader working, but seems to have sorted this. Many thanks.
2012-12-18 04:03:15 PST in FreeRTOS Real Tim...
Fair enough. I'm running the STM32 with Crossworks on bespoke hardware that's been running fine for well over two years. I haven't touched any interrupts from how it came. Key presses are communicated via a queue: xQueueSend(xKeyQueue, &MappedKey, portMAX_DELAY ); They are received here in a different thread: if (xQueueReceive(xKeyQueue,&KeyInQueue,portMAX_DELAY) ==...
2012-12-18 02:53:03 PST in FreeRTOS Real Tim...