Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Simulator memory differences

Hi,

 

I have noticed that the latest simulator shows the JS memory total to be 256KB when either the Ionic, Versa or Versa Lite is selected, however the actual device on has 64KB available, is this intentional?

 

Im not sure what the differences are for the other watches as I don't have an SDK5 app yet.

 

Is there a list published somewhere that shows the JS memory available across all the Fitbit devices including hardware specs such as how much actual RAM and Flash each device has?

 

MCU / Processor specs and clock speeds would also be nice to have.

 

Thanks,

Chris

 

 

Best Answer
0 Votes
3 REPLIES 3

I think Sim 'memory' had to be increased because it uses some 64-bit components whereas the watch is only 32-bit. That means some pointers consumed more memory on Sim, so Sim could appear to run out of memory prematurely. This applies to SDK5 targets too.

Current firmware for Versa 2, 3 and Sense provides 128 kB.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Thanks, that also explains why the memory usage logged out of my app on the simulator is always significantly higher than on the watch.

 

It does however render the simulator useless when developing apps which are pushing memory to the limit. And it could also trip up beginners who are not aware of this undocumented issue.

 

Optimising code in order to get my app to run for hours on end without crashing due to an of memory error is a massive time sink, the doubling of the available memory on the SDK5-only watches makes me want to just drop support for the SDK4-only watches. Even despite one of them, (Versa2) having the extra memory, its probably just not worth the extra effort maintaining 2 partially shared codebases especially when fighting memory issues on the older watches.

 

Is there any chance that the other SDK4-only watches will get a firmware update to allow 128KB or do they actually have less physical RAM to be shared about than the Versa2 and others?

 

 

 

Best Answer
0 Votes

I can't speak with any authority or knowledge, but I believe that Versa 2 hardware is upgraded over previous devices. The CPU is definitely faster. So I doubt that extra memory will be made available to earlier devices.

Peter McLennan
Gondwana Software
Best Answer
0 Votes