Experience with Ucos-II 2.76 ?

Status
Not open for further replies.
8051 c ucos watchdog

Go to ucos web, there are many port demos for all kinks of processor, you can go to there to see it!
 

uart uc/os nios

Hi. Here is UCOSII port for samsung's ARM7TDMI-S3C4510.
Project is created for ARM ADS1.2.

Best Regards.
 

cannot open source input file ucos_ii.h

I am learning uCosII, it is not as powerful as VxWorks, but is open source
 

port ucos ii to nios ii

I am using UCos-II for HCS12, I wang to Know how to write ISR for sending data by SCI,
I am using RingBuffer and Interrupt,but Send Procedure Stop the Task tick
 

i can apply example in ucos-ii book in nios ii

yaowl12345 said:
I am using UCos-II for HCS12, I wang to Know how to write ISR for sending data by SCI,
I am using RingBuffer and Interrupt,but Send Procedure Stop the Task tick


Do you increment os interrupt ensting counter from ISR routine ?

I assume you use correct port from **broken link removed**
 

ucos ii - using interrupts

The following is My ISR Routine, if I Use CLI ,the Task Tick Stop ,if disable CLI, the Task Tick run normal, why?

UART1ISR:
ldaa PPAGE
psha

inc OSIntNesting ; 4~, Notify uC/OS-II about ISR

; cli ; 2~, Enable interrupts to allow interrupt nesting

jsr UART1Process

jsr OSIntExit


pula
staa PPAGE

rti

Added after 5 minutes:

Now,I can not use OS_ENTER_CRITICAL() and OS_EXIT_CRITICAL() for acess the ringbuffer for read a char from buffer to send to SCI,

Would you please help me, give me a correct por and an ISR example
 

freertos circular buffer

I do not have even basic experience with hc12 but will try to help you :

You can not use OS_ENTER_CRITICAL() because of interrupt method set to 3
that means if you previously did not enabled interrupts - those wont be enabled after OS_EXIT_CRITICAL()

But at the same time i SUPPOSE(i donot know exacctly but i suppose ) that UART transmit interrupt flag wont be cleared till you read transmit buffer - that could lead to nested interrupts if you enable cli before your UART1Process.

May be following could help you :

put cli after jsr UART1Process
ensure that UART1Process will reset UART Tx interrupt at end of execution so you wont have ensted interrupt .

You can also play with how the interupt will be handled in OS_ENTER_CRITICAL() and OS_EXIT_CRITICAL()

#define OS_CRITICAL_METHOD 3 to 1 in os_cpu.h

Hope that will be enough ....
 

cpu.h atmega128 ucos

Would you please tell me How to wirite Interrupt Service routine of HCS12 with UCOSII

Added after 2 minutes:

UART1ISR:
; ldaa PPAGE
; psha

inc OSIntNesting

ldaa OSIntNesting
cmpa #$1
bne con3
ldy OSTCBCur
sts 0,y

con3:

; cli
jsr UART1Process

jsr OSIntExit


; pula
; staa PPAGE

rti

the above is my ISR program,but if enable CLI ,the
system can not work normally
 

ucos-ii interrupt routine

Try to chnage as

...
jsr UART1Process
cli
...

andensure that no UART TX interrupt flag is active after your UART1Process has been completed
 

ucos-ii website

I Test your method is correct, but I use another Timer Compare Interrupt, I Put cli before TimeProcess , It can work normally, I want to know why?
 

ucos-ii 2.76

I do not know your program structure - but that is what i would like leave to you.
I think you should analyse the interrupt behavior of hc12 and ucos ISR principles . When you will have correct understanding of these issues - you will be in place .

Have a nice ucosing time ))))
 

ucos simple semaphore examples

hi


can any one tell me porting on s3c4510b...ucos-II...


thanks
robin
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…