-
Type:
Bug
-
Resolution: resolved
-
Priority:
Major
-
Component/s: SW
-
None
I have this code below. It has the mistake that should bitOffset = (2*i) and should bitSize = 2. When I run the code below, I get a seg fault. I suspect that rogue is not checking for the bitSize <= 0 correct case
for i in range(4):
self.add(pr.RemoteVariable(
name = ('LOS_VAL_TIME[%d]' % i),
description = ('Clock Input[%d]' % i),
offset = (0x002D << 2),
bitSize = (2*i),
mode = 'RW',
enum = {
0x0: '2ms',
0x1: '100ms',
0x2: '200ms',
0x3: '1000ms',
},
))