I'm using uVision2 V2.40A. Please look the following example:
struct structPeriod { int From; int To; int x[4]; }; struct structConfig { struct structPeriod Periods[5]; int x; int y; }; struct structConfig Config; void main() { while(1) ; }
Thank you for pointing out this problem. It appears to be a problem in the BL51 Linker. The same works fine when you are using the LX51 Linker/Locater (select under Project - Options - Device). Note that this linker is only available when you have the PK51 Kit. Send an email to support.intl@keil.com and we will send you a patch as soon as it gets available. Reinhard