Peripheral View in KDS 3.0

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

Peripheral View in KDS 3.0

Jump to solution
1,149 Views
kennethtait
Contributor II

In Kds 3.0 on Linux. Debugging an MK22FN10M (or 512k) part.

in debugger perspective, EmbsysRegister tab. It only shows UARTS 0,1,2 There are SIX Uarts in both of these parts so why are they not displaying and accessable?

 

I beleive same issue exists for other items like PITs.

 

Ken

Labels (1)
0 Kudos
1 Solution
806 Views
DavidS
NXP Employee
NXP Employee

Hi Kenneth,

Try setting the "Chip: MK22F12" in the EmbSysRegView Preferences.

Then look at the UART registers and you should see UART0-5 displayed.

Regards,

David

View solution in original post

0 Kudos
6 Replies
807 Views
DavidS
NXP Employee
NXP Employee

Hi Kenneth,

Try setting the "Chip: MK22F12" in the EmbSysRegView Preferences.

Then look at the UART registers and you should see UART0-5 displayed.

Regards,

David

0 Kudos
806 Views
kennethtait
Contributor II

Thanks David,

yes that worked... It was set to MK22F51212..so this header is wrong

since this part also has 6 uarts....

In poking around it seems a number of these headers are not complete,

missing both peripheral register defines and int vectors..

Doesn't anybody check this stuff??

Ken

0 Kudos
806 Views
DavidS
NXP Employee
NXP Employee

Hi Ken,

Glad to help.

In theory we are checking the stuff....but issues can arise with complex MCU's and software.

What software are you using?  KSDK_1.3 or KSDK_v2?  Or baremetal?

If using the KSDK drivers, the example projects have #define's in the compiler Preprocessor field that help select processor specific headers.

Example from KSDK_1.3 for frdmk22f project:

DEBUG

CPU_MK22FN512VLH12

FRDM_K22F

FREEDOM

Looking at the KSDK_v2 frdmk22f project has the same Defines.

Regards,

David

0 Kudos
806 Views
kennethtait
Contributor II

David,

using kds 3.0 on Linux, not using sdk. Working on bootloader from code

Alice has sent me.

Using out of the box setup with few changes to make it run, so if you

take the current disti you should see same stuff.

I would also check the linker files, I think they are not quite right

and all of the MKxxx_startup.s files are also missing vectors..

I have the sdk 2.0 for reference and these headers are wrong too, so

seems to be pervasive in older code.

Ken

0 Kudos
806 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hi Kenneth:

I think what you see are the differences between Kinetis parts in the K22-120 MHz family range. Sorry that this caused you confusion so far. I created a document a while ago trying to bring some clarity:

Kinetis K22_120 MHz devices

The table does not reflect it, but K22FN1M0 / K22FX512 have 6 UARTs, while K22FN512 has only 3 UARTs.

Regards!

Jorge Gonzalez

0 Kudos
806 Views
kennethtait
Contributor II

Well thanks..but's that's really curious since the data sheet for the

k22128-1M Family shows this:

Reference manual also describes 6 uarts, so if the 512k part has less

how is one supposed to know this?

Ken

0 Kudos