From: Matthias T. <mt...@we...> - 2013-11-13 19:13:35
|
Craig, > s" mcu-info" 2 + @i dp - > ." free FLASH cells " u. cr Remove these 2 lines too. There is no way to get the max allowed dp value *without* the environment-query. So you cannot get the number of free flash cells, sorry for the confusion my mail has triggered :( Which leads to the underlying problem. When I worked on the environment queries, I wanted to put some useful data into them. The forth standard has a few rather trivial things not really something useful IMHO. I added some numbers from Atmel's partdescription files as a data structure "mcu-info". Like the maximum value for the dictionary pointer DP, some memory sizes and the controller name as a string. My impression is, that environment queries are not a favorable way nowadays... It is not necessary to utilize environment queries to wrap those information, a prominent exception is the cpu frequency (f_cpu). But is it worth the effort? And what would be a useful (and simple to generate!) way to do it? Simply the address of the mcu-info structure or an individual word for every information? Or keep the environment? thing (methodologically a clean way IMHO). Matthias |