I am configuring a project so that it can operate on both MK60DN512VMD10, and as an alternative MK60DN512ZVMD10.
According to the 'About' in CodeWarrior I am using:
Processor Expert for MCU
Version 5.3.0
Build: b1221-0685
When I use the MK60DN512VMD10 cpu and configure an Init_ADC component type I am able to specify the Offset value, which when code generation is done produces the appropriate register setting:
Generated code:
// from the comment block at the start of the file:
** Compare function : Result < CV1
** Offset : 4
** Voltage reference : Default pin pair
// then later in the Init function
/* ADC1_OFS: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,OFS=4 */
ADC1_OFS = (uint32_t)0x04UL;
However, when I switch to the MK60DN512ZVMD10 cpu the offset value is missing from the "Settings group":
Unsurprisingly the generated code is then also missing the corresponding line from the comment block, and the actual write to the registers.
I have checked the reference manual for both CPUs and the register is present for both as far as I can tell.
Q1. Why is it missing - is this an error in the CPU definition that processor expert is using?
Q2. Are the CPU definitions in a form that can be updated? - I know some tools use xml files to control the editor fields; is there some way I can 'tell' Processor Expert that this register does exist for the 'Z' cpu?
Thanks!
Solved! Go to Solution.
HI PhilV
I tested this with CW11.1, I couldn't reproduce it on MK60DN512ZVMD10. See below screenshot
Where is missing?
Thanks,
Jun Zhang
NXP is at the center of a chip supply shortage that has roiled the electronics industry for more than a year, unresolved due to soaring demand for electronic goods such as personal computers. Snags in the supply chain have crippled a wide swath of industries and hiked prices on some consumer goods.
https://customersurvey.onl/www-lowes-ca-survey/
HI PhilV
I tested this with CW11.1, I couldn't reproduce it on MK60DN512ZVMD10. See below screenshot
Where is missing?
Thanks,
Jun Zhang
@ZhangJennie - thanks for that, looks like I might need a CodeWarrior update, I am running CW10.2 and the Z device doesn't show it:
I had assumed (apparently incorrectly!) that being an older device the support would be the same. I'll try updating and see if it 'appears'.
Processor Expert for MCU Version 5.3.0. Build: b1221-0685. When I use the MK60DN512VMD10 cpu and configure an Init_ADC component type .
Hi @Mary11 - Not sure what you were trying say above - looks like there was a problem posting the message?