Hi,
I'm currently working in a team on a project by which we intend to find out, how to use the Keil Monitor 166 with a running RTOS(RTX166 Tiny)- application. We're working on a Phytec Kitcon167CR board, using Keil µVision3 IDE. We succeeded in configuring the memory settings, so that, if I understood the documentation correctly, our RTOS-program is located in 0x00000(location defined as ROM in "Options for target") and that the Monitor is stored in 0xFEA00(location defined as RAM). When we switch to debug mode, the monitor and the program is loaded into the device. We can start the program successfully, but then we can't stop it again without getting an error. This makes the monitor useless... As our program doesn't use interrupts, we have no idea, where we should start looking for the problem. So we came to our first question: Is it even possible to use Monitor166 with RTX-Tiny?
We also checked a lot of documentation and came about an article that says, that an RTOS needs to have an extra Debug-Kernel, which is unusual for 8 or 16-bit RTOS's. It seems that Keil provides "display dlls" for RTX Tiny and RTX Full instead, which should provide mointoring capabilities. So, now the next question is:
Where can I find these display dlls and how can I use them?
Thanks!
Kind Regards Johannes
Hello Johannes, To ask your first question: yes, it is possible, but there are some restrictions stated in the MON166 User's Guide, depending on which configuration of the monitor you are using (Bootstrap, UART, Simulated Serial Mode). The chapter "Theory of Operation" will give you some further valuable information. There are some sample programs for RTXtiny. I used "Traffic" as a starting point. BTW: I found that most of the debugging problems can be solved by using the simulation. With the integrated "debug functions" you can simulate your connected hardware.
Hello Ulf,
Thank you for the answers. Unfortunately it doesn't help ^_^ We didn't have any problems implementing a RTX-166 Tiny program. Actually, we already had managed to implement a running RTX Tiny application before I started the topic. We also managed to implement a small non-RTOS-program with a Monitor-166 that works fine. The problem is merging those two things. As our RTX-Program won't work with the same configuration (RTX-Lib, Reserved memory, memory locations etc...) that we used with our Mon-166-Test-Application, there has to be something special about the RTX-166 Tiny. We already read the Mon-166- and RTX-Tiny-Documentation several times and can't find anything conclusive. We're trying to implement the bootstrap mode and we definitely don't use the serial interrupts. We even tried to use Timer 6 instead of Timer 0 for RTX-Tiny when we ran out of other ideas... didn't work as well.
Maybe you or anyone else has another idea that might help.
Thanks