Thomas Johansen

Show:

What's happening?

  • Followup: RE: Handle flash write/read

    Yes of course. Passign the data as a pointer is a better way. Is there any preferred way in FreeRTOS to signal the calling thread back, that the write or read is completed? (So the task know when read data is ready) Could it be done with a tag/callback??.

    2009-07-10 07:54:34 UTC in FreeRTOS Real Time Kernel

  • Handle flash write/read

    Hi Im planing on using a task for reading and writting to my SPI flash. The other tasks can then use this task for the read/write. The flash task is using a queue for receiving writes or reads commands. But a big piece of data could be read/write. So I would send a big chunk of data through xQueueSend and xQueueReceive. 1: Is that a good idea or is there a better way of doing this? Maybe.

    2009-07-10 06:33:40 UTC in FreeRTOS Real Time Kernel

  • Stack sizes in my Startup.s file

    Hallo Im using FreeRTOS on a LPC2478 ARM7 microcontroller. I have a question recarding stack sizes in my startup file. Im using KEIL uVision as compiler and mem scheme 2 as memory manager. As I understand, then the heap (in heap_2.c) is where createTask takes a chunk out every time a task is created. When a task is created the tasks stack size must be supplied. So the combined stack...

    2009-07-01 13:48:50 UTC in FreeRTOS Real Time Kernel

  • Followup: RE: Stack problem?

    Thanks sotd... that did it!!! and by the way... DOOOOOHHH :-)

    2009-03-25 15:52:39 UTC in FreeRTOS Real Time Kernel

  • Followup: RE: Stack problem?

    Hi I have done some more debuging. My grasphics function are some function calling a function, that calls another function etc. Is there a limit on how deep function call can be with RTOS? I also have added the configCHECK_FOR_STACK_OVERFLOW flag. If I set to "1" I dont get any vApplicationStackOverflowHook call. But when set to "2" the hook function get called and the...

    2009-03-25 08:45:05 UTC in FreeRTOS Real Time Kernel

  • Followup: RE: Stack problem?

    Samuel Thanks for the reponds. I have checked my chain of function call and the structures used are declared static. The static structure is then passed as parameter to the next function. In this function then the parameter suddenly is "out of scope" Could i try increasing the stack size, to see if that helps me? I have tried making other changes. In the function I declare a...

    2009-03-24 12:26:01 UTC in FreeRTOS Real Time Kernel

  • Stack problem?

    Hallo I may have some stack/heap problem!?? But im not sure. Im using the latest FreeRTOS on my LPC2478. I have 5 tasks and they are working fine. But know I whant to add some graphics task to my project. So I create a new task, which draw some graphics in my framebuffer in a given interval. But when the task runs, then I get an Abort exception. If I check the excpetion cause and...

    2009-03-24 10:49:18 UTC in FreeRTOS Real Time Kernel

  • Multiple use of the same queue?

    Hallo Does it make sense having multiple tasks, using xQueueReceive on the same queue? If I do that, then "task1" receive the item. Next time "task2" receive it. Next time its "task1" again etc... My idea is to do some sort of message processing, where multiple receivers can use it. /Thomas.

    2009-03-11 15:21:18 UTC in FreeRTOS Real Time Kernel

  • Followup: RE: A LPC23xx/24xx port for KEIL uVision?

    Hi I have now wolved the issue. I have missed changing the address of the VICVECTADDR. It was defined to 0xFFFFFF30, but the correct address is 0xFFFFFF00 in the LPC2478... /Thomas.

    2009-03-10 12:51:53 UTC in FreeRTOS Real Time Kernel

  • Followup: RE: A LPC23xx/24xx port for KEIL uVision?

    Yes I do: vPreemptiveTick PRESERVE8 portSAVE_CONTEXT LDR R0, =vTaskIncrementTick ; Increment the tick count. MOV LR, PC ; This may make a delayed task ready BX R0 ; to run. LDR R0, =vTaskSwitchContext ; Find the highest priority task that MOV LR, PC ; is ready to run. BX R0 MOV R0...

    2009-03-10 07:59:43 UTC in FreeRTOS Real Time Kernel

About Me

  • 2009-03-05 (8 months ago)
  • 2426482
  • tjohansen (My Site)
  • Thomas Johansen

Send me a message