Namespaces
Variants
Actions

Archived:Incorrect CPU information reported by HAL (Known Issue)

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata

Tested with
Devices(s): All in supported S60 versions

Compatibility
Platform(s): S60 3rd ed., 5th ed., S^3/Anna & Belle

Article
Created: User:Technical writer 1 (17 Oct 2007)
Updated: User:Technical writer 1 (24 Nov 2010)
Last edited: hamishwillee (01 Aug 2012)


Description

The HAL (Hardware Abstraction Layer) API provides information about CPU type, architecture, and clock speed. However, wrong values are reported for most S60 3rd ed., 5th ed., S^3/Anna and Belle devices. For example, on the Nokia 5800 XpressMusic, HAL reports that the processor speed is 187 MHz instead of 369 MHZ and that the CPU type is 'ARM9' instead of 'ARM11'. On the Nokia 5530 and the Nokia N97, you'll even get an unknown CPU architecture with Hex-value '0x0000000B'.

The following code returns wrong values for CPU clock speed, CPU ABI (Application Binary Interface), and CPU architecture:

include <hal.h>
 
TInt cpuSpeed, cpuABI, cpuArchitecture, ret;
 
ret = HAL::Get( HALData::ECPUSpeed, cpuSpeed );
ret = HAL::Get( HALData::ECPUABI, cpuABI );
ret = HAL::Get( HALData::ECPUArch, cpuArchitecture );

How to reproduce

Take the code above and let it run on a S60 3rd ed., 5th ed., S^3/Anna or Belle device.

Solution

No known solution.

Device specification pages on Nokia Developer provide information on CPU type and clock speed.

This page was last modified on 1 August 2012, at 07:39.
185 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved