This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Learning to program with MCB-STR9 Evalution board by uVision3. HOW TO DO?

I am a starter in microcontroller programming. I understand programming but first I am starting with Keil uVision3-software and Evaluation board MCB-STR9. Is there any user guide or tutorial which could help me to start and program and see results on board. I could not find online. Can someone help me please?...
Thanks...

Parents
  • "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."

    The most difficult code to debug is 'clever' code. Also 'clever' code is the code most often needing debugging.

    good code is readable not 'clever'.

    a good example is someone that is 'clever' enough to omit as many brackets/paranthesis as the C standard allow and end up with unreadble code, and, most likely, missing a pair of brackets that actually are necessary

    Erik

Reply
  • "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."

    The most difficult code to debug is 'clever' code. Also 'clever' code is the code most often needing debugging.

    good code is readable not 'clever'.

    a good example is someone that is 'clever' enough to omit as many brackets/paranthesis as the C standard allow and end up with unreadble code, and, most likely, missing a pair of brackets that actually are necessary

    Erik

Children
  • "and, most likely, missing a pair of brackets that actually are necessary"

    The missed brackets comes one step later - when it's time to modify the code to extend it with some new functionality. Suddenly, that change did break an "else" or similar.

    A favourite is code that contains multiple, nested, ?: constructs where the different parts also contains assigns or pre/post-increments modifying one or more variables on the right-hand side of the assign.