EmbeddedRelated.com

Re: Cooperative FreeRTOS on SAM7-ex256

Started by Mark Bayern in AT91SAM ARM16 years ago 4 replies

IME biggest difference between preemptive and cooperative is how and when the task switch occurs. Remember that in cooperative mode, "Context...

IME biggest difference between preemptive and cooperative is how and when the task switch occurs. Remember that in cooperative mode, "Context switches only occur if a task blocks, or explicitly calls taskYIELD()". Do your tasks explicitly call taskYIELD()? If a task is just an infinite loop, it will never give up control. Preemptive mode will pre-empt the task anyway. Cooperative mode will n...


SPI1 Loop Back on AT91SAM7X-EK

Started by hudson_low in AT91SAM ARM15 years ago 1 reply

Hi, Any one have Problem with SPI1? I am using my SAM7-EK to test the SPI code. I started to test the spi code with internal loop...

Hi, Any one have Problem with SPI1? I am using my SAM7-EK to test the SPI code. I started to test the spi code with internal loop back. SPI_MR =(AT91C_SPI_MSTR | AT91C_SPI_MODFDI | AT91C_SPI_LLB) and both SPI0 and SPI1 work. Then I try with external Loop Back,(MISO and MOSI short tohether with wire) And I manage to get echo back on SPI0 but NOT on SPI1 with same set of code to co...