Zilog EZ80F91AZA User Manual
Page 33

UM007518-1211
In-Depth Questions About Using RZK
Zilog Real-Time Kernel: eZ80
®
CPU
User Manual
23
tion is debugged and ready to be burned to ROM, the debug option in RZK can be unde-
fined.
Q:
What’s the learning curve? How long will it take me to become productive with RZK?
A:
You require only a few minutes. If you know how to use an IDE (such as Microsoft
Visual Studio) and are familiar with real-time operating system concepts and components,
all you have got to do is open the example projects shipped with RZK, compile and link
them. Then, download to the target platform to see the application running. Refer to the
download on zilog.com and also provided in the documentation set for RZK in the
following path:
ZDSII_eZ80Acclaim!_A.B.C\ZTP\ZTPX.Y.Z_Lib\RZK\Docs
Q:
I want to develop ROMable and self-booting programs for an embedded system using
an eZ80 device and RZK. What software do I need?
A:
An IDE tool such as ZDS II, RZK and a Flash Loader application (ZDS II features an
integrated Flash Loader utility) are required to boot from Flash and not from RAM. Gen-
erate a
.hex
image of the application (you can use ready-made projects that are included
with the RZK release) and send it to the Flash Loader. The Flash Loader takes care of writ-
ing your code to the Flash memory.
Q:
Are the stacks for each thread protected from overrun or underrun?
A:
No, RZK does not provide stack protection. It is your responsibility to protect the
stack or allocate sufficient stack for the functioning of the threads.
Q:
When I create a thread (using the API
RZKCreateThread()
) or a timer (using the
API
RZKCreateTimer()
) or any other object, it always returns a NULL with an error
code of
4
, which is
RZKERR_CB_UNAVAILABLE
. What is the cause for this problem and
how can I get rid of it?
A:
This type of problem occurs when it is not possible to allocate a control block for the
particular object you are trying to create. This issue occurs when you try to create more
objects than the maximum specified objects allowed in the
RZK_Conf.c
file. Increase the
appropriate object’s count to create the object that you require. For a more detailed expla-
nation, see the