Skip to contentSkip to conversation

U-BOOT and UART TX with interrupts (need help please)

U-Boot-Users veter 4 participants 11 messages Sep 26, 2007

lore
Share & tools
lore

veter

author
#0 lore raw

Hello friends!
We have troubles, need you help, please
We usage Linux for develop and GCC.

Our program based on U-BOOT and we need transmit data at UART-TX with interrupts.

But, as we understand, U-BOOT do not have "API" for correct realization Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be usage Interrupts, but not used it, because only doing looping ISR register on FLAG IRQ_UART_TX_BIT.
It is not correct usage Interrupts. We need full usage interrupts. In /examples/ each examples with realization but for other CPU, not under BlackFin.
May be you know or have examples?

May be correct write our programs as standalone and run her from workspace U-BOOT?

Help please do victory at this our troubles...!

.

----------------------------------------------------------------------
Stanislav G. Prihodko ( ICQ #83332014 )
[www.projects.org.ua] + [www.klug.org.ua]

Signature · 2 lines
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12896654
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

Our program based on U-BOOT and we need transmit data at UART-TX with interrupts.

What makes you think you need interrupts? U-Boot is strictly single tasking, so it will not do anything else anyway while transmitting, and even a very slow CPU should be capable of streaming characters out or an UART then.

Quoted 4 lines

But, as we understand, U-BOOT do not have "API" for correct realization Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be usage Interrupts, but not used it, because only doing looping ISR register on FLAG IRQ_UART_TX_BIT.

Indeed polling is all you need.

Quoted 1 line

It is not correct usage Interrupts. We need full usage interrupts.

What makes you think so? Interrupts will not give you any advantages.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
People with narrow minds usually have broad tongues.
author
#2 lore raw

I greet you!
It is hope for your help!

The fact is that we have decided to base / Platform U-BOOT make its program to develop so it is ready realizovanno many software tools.

Interruption we need to make our CPU BlackFin we can use with DMA capability and maximize productivity gains.

Core, we want to use and abandonment of the CPU and DMA (BlackFin 532). In fact, we will have passed a very big massyvy in UART and use DMA, we will win big, because 90% of CPU performance will be employed mathematical calculations.

For that reason has much to use the lack of interruption, please help!

Quoted 28 lines · wd
Quoted 3 lines · In message <[email protected]> you wrote:

Our program based on U-BOOT and we need transmit data at UART-TX with interrupts.

What makes you think you need interrupts? U-Boot is strictly single tasking, so it will not do anything else anyway while transmitting, and even a very slow CPU should be capable of streaming characters out or an UART then.

Quoted 5 lines

But, as we understand, U-BOOT do not have "API" for correct realization Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be usage Interrupts, but not used it, because only doing looping ISR register
on FLAG IRQ_UART_TX_BIT.

Indeed polling is all you need.

Quoted 1 line

It is not correct usage Interrupts. We need full usage interrupts.

What makes you think so? Interrupts will not give you any advantages.

Best regards,

Wolfgang Denk

Signature · 2 lines
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12897695
Sent from the Uboot - Users mailing list archive at Nabble.com.
#3 lore raw
Quoted 32 lines · veter
Quoted 13 lines · wd
Quoted 2 lines · In message <[email protected]> you wrote:

Our program based on U-BOOT and we need transmit data at UART-TX with interrupts.

What makes you think you need interrupts? U-Boot is strictly single tasking, so it will not do anything else anyway while transmitting, and even a very slow CPU should be capable of streaming characters out or an UART then.

Quoted 5 lines

But, as we understand, U-BOOT do not have "API" for correct realization Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be usage Interrupts, but not used it, because only doing looping ISR register
on FLAG IRQ_UART_TX_BIT.

Quoted 8 lines

Indeed polling is all you need.

Quoted 1 line

It is not correct usage Interrupts. We need full usage interrupts.

What makes you think so? Interrupts will not give you any advantages.

Best regards,

Wolfgang Denk

I greet you!
It is hope for your help!

The fact is that we have decided to base / Platform U-BOOT make its program to develop so it is ready realizovanno many software tools.

Interruption we need to make our CPU BlackFin we can use with DMA capability and maximize productivity gains.

Quoted 6 lines

Core, we want to use and abandonment of the CPU and DMA (BlackFin 532). In fact, we will have passed a very big massyvy in UART and use DMA, we will win big, because 90% of CPU performance will be employed mathematical calculations.

For that reason has much to use the lack of interruption, please help!

Please don't top post.

U-Boot is a boot loader, used to
* Initialize the hardware
* Load an operating system
* Start the operating system running

You are looking for an operating system with interrupts and possibly multi-tasking. U-Boot may be helpful in *loading and starting* your operating system, but it is *not* an operating system. It does not normally use, and thus has no support for, interrupts.

Best regards,
gvb

#9 lore raw
In reply to veter

Here's see, I have reasons why this should be:
... via DMA and interrupt, we must be a mechanism to exchange DMA (namely model:
MEMORY <> MEMORY,
MEMORY->UART-TX,
SPI <-> MEMORY)

And if to do so without interruption of use, the program simply will not work because you need and will be very slow!
Therefore, a mechanism is needed to process the interruption.

Now we build our program directly into the source code of programs U-BOOT. And we want to use interrupts.

Could really do better to write our attachment (application) and use it as a "Standalone Applications?
and already in the program to break as we need?

.... please tell how to use the break to our processor (BlackFin 532)? ... how do we best get out of this situation?

Help Please!

Signature · 2 lines
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12900023
Sent from the Uboot - Users mailing list archive at Nabble.com.
#4 lore raw
In reply to Jerry Van Baren

Yes, yes, I know what you are going to say. With the use of off fully, not built originally in the program U-BOOT.
But the interruption did not have any relationship to the operating system. The same level of hardware implementation exchange data with pereferiey. And as logical, therefore have to complete events or otherwise.
If you send a lot of data or data to do so is through the interruption, is not it?
I understand that this remarkable U-BOOT actually loader. And it is remarkable opportunities. For example implement the programme as "Standalone", and so can get through this opportunity to interrupt? I just want to build their program on the basis of good, enabled solutions.

Quoted 12 lines · Jerry Van Baren

U-Boot is a boot loader, used to
* Initialize the hardware
* Load an operating system
* Start the operating system running

You are looking for an operating system with interrupts and possibly multi-tasking. U-Boot may be helpful in *loading and starting* your operating system, but it is *not* an operating system. It does not normally use, and thus has no support for, interrupts.

Signature · 2 lines
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12900271
Sent from the Uboot - Users mailing list archive at Nabble.com.
#5 lore raw
Quoted 11 lines · Stanislav G. Prihodko

Yes, yes, I know what you are going to say. With the use of off fully, not built originally in the program U-BOOT.
But the interruption did not have any relationship to the operating system. The same level of hardware implementation exchange data with pereferiey. And as logical, therefore have to complete events or otherwise.
If you send a lot of data or data to do so is through the interruption, is not it?
I understand that this remarkable U-BOOT actually loader. And it is remarkable opportunities. For example implement the programme as "Standalone", and so can get through this opportunity to interrupt? I just want to build their program on the basis of good, enabled solutions.

Hi Stanislav,

If you want to use interrupts and u-boot, you will have to set things up on your own, it is outside the normal use of u-boot.

Standalone is probably a good choice if you wish to pursue this. Be aware that you are using u-boot in a way that it was not designed to be used. You will have to add functionality (interrupt handling, possibly more) to your code and/or u-boot. The u-boot list will probably not be very helpful - when you do unusual things, other people will not have experience with the problems you have and thus will be unable to give much advice.

From your other email:

Quoted 2 lines

Now we build our program directly into the source code of programs U-BOOT. And we want to use interrupts.

Note that, if you *link* your program u-boot (build directly into the u-boot source), you *must* use a GPL-compatible license for your program (i.e. your program must be Open Source - you must provide an offer of your modifications/source to your users).

If you run your program "standalone", the u-boot licensing gives permission to use a proprietary license for your code which is running standalone.

Best regards,
gvb

#6 lore raw
Quoted 11 lines · Jerry Van Baren

....
Note that, if you *link* your program u-boot (build directly into the u-boot source), you *must* use a GPL-compatible license for your program (i.e. your program must be Open Source - you must provide an offer of your modifications/source to your users).

If you run your program "standalone", the u-boot licensing gives permission to use a proprietary license for your code which is running standalone.

Thank You! Yes, I know, it`s are temporary use in source code, as light variants get results, and because I want use "standalone" model. And also for fasted manipulating execute code for develop time.

But realization with interrupts really need for BlackFin, it is DSP, and may be many peoples too want as I`m.
Also and in MPC8xxx you added it is , as I know|understand.

Signature · 2 lines
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12901127
Sent from the Uboot - Users mailing list archive at Nabble.com.
#7 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

But realization with interrupts really need for BlackFin, it is DSP, and may be many peoples too want as I`m.

You should really listen to what has been said before. I here repeat it one more time. Please read it out loud:

- U-Boot is a boot loader.

- U-Boot is NOT an operating system.

- U-Boot has never been designed to replace operating systems.

What you are attempting to do is *not* a good idea. Please do yourself a favour and use a real operating system which has all the features you are looking for. U-Boot is *not* the right environment for what you are trying to do.

I don;t intend to send more messages to this thread. All necessary has been said.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hiring experienced unix people is  like  a  built-in  filter  against
idiots. Hiring experienced NT people provides no such guarantee.
            -- Miguel Cruz in WgL96.349$CC.122704 at typhoon2.ba-dsg.net
#8 lore raw

Thank you - Wolfgang Denk! and Thank you - Jerry Van Baren!

Now, I understand everything! ( I wanted more than is actually )
You really very help me.
Big Thank you!

Signature · 2 lines
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12901814
Sent from the Uboot - Users mailing list archive at Nabble.com.
#10 lore raw
In reply to Stanislav G. Prihodko
Quoted 1 line · Stanislav G. Prihodko

.... please tell how to use the break to our processor (BlackFin 532)?

read the Blackfin HRM for the 532

the Blackfin serial driver in the Linux kernel already handles break
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070926/4d5c4e72/attachment.pgp