This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SmartRF05EB + CC2530 LCD issue

Other Parts Discussed in Thread: Z-STACK, CC2530

Hi all!

We recently bought CC2530DK and so far everything is working pretty well, except for one strange thing with the display. For some unclear reason it (inconsistently) behaves some strange way: from time to time it start to stretch the first text line into two physical LCD lines (see attachment), shows the second line of normal height, and third line gets out of the screen. First time I noticed this when I first compiled and uploaded the Light/Switch example from swrc135b.zip. By the way, it seems that those examples are kind of out of date, as I needed to modify project properties to get it compiled/linked (eg., linker file has different name and placed in different dir; though I'm new to IAR8051, may be it's due to the fact that I'm using newer IAR version - 8.30.2).

But what seems strange that sometimes LCD starts to work normally and shows all 3 lines OK. Then, after some recompilation it suddenly turns into the described state again. (I.e. the "odd" behavior for some reason "turns on" and then it is consistent for some time across many compilation/debug cycles, and then it "for no reasons" returns to the normal state, and so on.) It started before I made any modifications to the source code, just after first compiling/downloading the sample. Then at some point it corrected by its own, and now started again.

From this behaviour, I have a guess that probably LCD hal module or smth is out of date and some initialization part is missing? Could anyone direct me what could be the reason of it and is there any solution or workaround for this?

  • You can find old IAR EW8051 version at www.iar.com/.../. If I remember correct, there is nothing wrong with your LCD since it's original design is like it. If you want to test Light/Switch examples, you can download Z-Stack Home 1.2.2a and there are SampleLight and SampleSwitch examples that are communicated with Zigbee HA profile.
  • I was just wondering if somebody else has encountered this problem, because the strange thing is that I didn't change anything in original examples, just compiled/uploaded it to target, and it already showed 2 lines instead of 3. I want to find out the reason to fix it in my configuration, because for this it looks like kind of unpredictable behaviour.

    Anyway, thank you for pointing to old IAR version and HA examples. Though, for now I would like to experiment with the device at some low level to get feeling of it in its more or less 'pure' state, w/o Z-Stack.
  • After I build and download the Light/Switch example from swrc135b.zip into my CC2530DK, I get the following LCD display which looks no problem. Which Z-Stack version do you use to build the Light/Switch example from swrc135b.zip?

  • YiKai, thanks for trying to help! I was not aware that I needed to have Z-Stack to build those samples. In fact, I didn't download any ZStack version, just unzipped swrc135b.zip, corrected project options (light_switch - srf05_cc2530) and built the projects. Did I miss some steps? Do I need to install ZStack and recompile the projects? Then why it still compiled without ZStack installed? I thought those are simple examples that don't need hi-level stacks - isn't this right?


    What I remember to have installed is Setup_CC2530ZNP_Mini_Kit_SW_1.0.1.exe examples, I'm not sure - may be it's installer put me ZStack? How can I check if I have ZStack code?

    Sorry for so many questions, just new to the environment...

    Vladimir

  • And yes, as I said, I saw the picture that you posted too, it's just unpredictable - today it shows three lines, toworrow will show two of them. Sometimes looks like it depends on if I run it through usb debugger interface, or standalone battery-powered. But other time it happens and with the batteries too...
  • Sorry, it's my fault. You don't need Z-Stack to build examples in swrc135b.zip. I suspect the connection of LCD to SmartRF05 is not good and I suggest you to check it.