Richard
It depends on which KE04 you are using:
MKE04Z8VTG4(R), MKE04Z8VWJ4(R) and MKE04Z8VFK4(R) are at 0x0c
MKE04Z64VLD4(R), MKE04Z128VLD4(R),MKE04Z64VQH4(R), MKE04Z128VQH4(R), MKE04Z64VLH4(R),MKE04Z128VLH4(R), MKE04Z64VLK4(R) and MKE04Z128VLK4(R) are at 0x14
The user should not be fussed with the details if a macro is used. In the uTasker project it adapts itself automatically by
#if (defined KINETIS_KE04 && (SIZE_OF_FLASH > (8 * 1024))) || defined KINETIS_KE06 || (defined KINETIS_KEA64 && !defined KINETIS_KEAN64) || defined KINETIS_KEA128
..
#define SIM_SCGC_BME_OR (volatile unsigned long *)(SIM_BLOCK + 0x14 + BME_OR_OFFSET)
..
#else
..
#define SIM_SCGC_BME_OR (volatile unsigned long *)(SIM_BLOCK + 0x0c + BME_OR_OFFSET)
..
#endif
And the user just does
POWER_UP_ATOMIC(0, KBI0);
which transforms itself automatically to the corresponding BME code
which then works on any Kinetis part with KBI.
Non uTasker users have to carefully read the manuals and add the corresponding code manually.
Regards
Mark
Complete Kinetis solutions for professional needs, training and support:http://www.utasker.com/kinetis.html
Kinetis KE:
- http://www.utasker.com/kinetis/FRDM-KE02Z.html
- http://www.utasker.com/kinetis/FRDM-KE02Z40M.html
- http://www.utasker.com/kinetis/FRDM-KE04Z.html
- http://www.utasker.com/kinetis/FRDM-KE06Z.html
- http://www.utasker.com/kinetis/FRDM-KE15Z.html
uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market