Hello, All I am using rl-arm , have problem when using mmc in RTX-OS in a task . when i debuge with j-link i see MMC task was be in hard loop in SPI_SAM7X.c in below line
-------------------------------SPI_SAM7X.c------------------------------------- static BOOL SendBuf (U8 *buf, U32 sz) { /* Send buffer to SPI interface. */ U32 i;
for (i = 0; i < sz; i++) { AT91C_BASE_SPI0->SPI_TDR = buf[i]; /* Wait if Tx FIFO is full. */ while (!(AT91C_BASE_SPI0->SPI_SR & AT91C_SPI_TDRE)); AT91C_BASE_SPI0->SPI_RDR; } hard loop-----> while (!(AT91C_BASE_SPI0->SPI_SR & AT91C_SPI_RDRF));//os_tsk_pass(); AT91C_BASE_SPI0->SPI_RDR; return (__TRUE); } -------------------------------------------------------------------------------
and task program is in below:
__task void phaseB (void) { char count,errorflag; os_dly_wait(200); count = 3; while (finit(NULL) != 0) { os_dly_wait(2); if (!(count--)) { errorflag = 1; break;
} } if (errorflag==1)debug_send("MMC Error\n"); while(1){ os_dly_wait(100); debug_send("MMC Task\n");
}
Please help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeee King regard Amir
Your code contains:
//spi_init( );
Isn't this needed anymore - moved into finit()?
Note that your debug output solution isn't thread safe. What if you get a task switch while one thread is busy inserting a string? Or you get a task switch while the output task is busy emitting a string?
Thank you for your Warning about my debug .
really i dont see spi_init(); in new keil example.
when we use this command in mdk4.2 compiler give error.
all type of arm7 have this heavy problem or because of im beginner i have this problem? do you agree with SAM7X?
Does not workkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk need your help
I think you may have a keyboard problem! I suggest you have it checked out by a qualified technician.
Hey if you can help me , do it,if you cant please left the forum, this place is not for kidding , if you like kidding ,please add me to your messenger az59z@yahoo.com az59z@hotmail.com in this place i can make jock with you very high , and can solved my keyboard problem with you . ok? dont worry kidding with youuuuuuuuuuuuuuuuuuuuu. have nice time Amir
I am not kidding youuuuuuuuuuuuuuu must have a virussssssssss as IIIIIIIIIII seam to haveeeeeeeeee a problemmmmmmmmmm nowwwwwwwwwwww tooooooo contact you technician nowwwwwwwwwwwwwwww pleaseeeeeeeeeeee
my dear i think you have a heavy loop in your daily task, better is use the command os_tsk_delete_self (); in end of your task. seem you are the same as scratched CD in traditional cd player.haha hey creazy please help me,really i have problem with RTX-OS
hey stuart
do you worke with RTX-OS?
if you know a person that who worked with it please guid meeeeeeeeeeeeeeeeeeeeeeeeeeeee to connect he/she.
what is your email?
Have nice day
Amir
Hello do you work with RTX-OS and MMC? please help me. regard Amir
Hello guy's
Solvedddddddddddddddddddddddddddddddddddddddddddddddddddddd hura hura only need to select Thumb mode in target option (k)(k)(k)(k)(k)(k)(k)(k)(k)(k)(k)(k)(k)(k)(k)(k) have good time Amir