AnsweredAssumed Answered

Can't modify a string when running program

Question asked by Juan Ignacio Troisi on Jun 5, 2015
Latest reply on Jun 5, 2015 by Jorge_Gonzalez

Hi. Using the FRDM KE02 for developing a project (using CWIDE + processor expert), the following problem came up:

 

The program consists of the following: when pressing a button, the last pressed button, is saved in the variable (unsigned char last_pressed_button). That works correctly. What I want to do is to save this pressed buttons in a string (char * pressed_buttons). The problem is that when I want save the pressed buton (using: pressed_buttons[i] = last_pressed_button) the MCU misteriously stops running.

 

What am I doing something wrong?

 

Thank you

Outcomes