Content originally posted in LPCWare by jmcruz on Mon Jun 09 13:30:22 MST 2014
I started working with the RSM Software State Machine.
First I edited my first state machine RSM program, then I generated the code, then I integrated the generated code with existing code, but the compiler accuses an error.
The error occurs in the generated code file (made by RSM), on line:
Error: initializer element is not constant => static state currentState = initialState;/* Initialize the current state. */
I think the error is because initialState is a variable in flash and not a constant defined as such.
Is it a bug or should I change something in the existing code to avoid the error?
Many thanks in advance, best regards.
Juan