CSEC GenerateMACAddrMode address range

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

CSEC GenerateMACAddrMode address range

Jump to solution
808 Views
SaLan
Contributor II

Merry Christmas

Hi 

When I was using the GenerateMACAddrMode function of CSEC.When the address value exceeds 0x7DFFF, an error will occur. Is this normal?

0 Kudos
Reply
1 Solution
646 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @SaLan 

It's a limitation of the CMD_GENERATE_MAC command in Addr mode (also called pointer method):

lukaszadrapa_0-1767118666499.png

The partition (i.e. block size) can be 128KB, 256KB or 512KB depending on derivative:

lukaszadrapa_1-1767118711782.png

Regards,

Lukas

 

View solution in original post

0 Kudos
Reply
2 Replies
784 Views
SaLan
Contributor II

My fault

I means can't out of 512kb
CSEC_DRV_GenerateMACAddrMode(CSEC_RAM_KEY, (uint8_t *)0x0007FFFC, 0x00000080, (uint8_t *)cmacout);

but i use addr = 0x0007FFFC, len = 0x00000080

also no error,but out of range

Tags (1)
0 Kudos
Reply
647 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @SaLan 

It's a limitation of the CMD_GENERATE_MAC command in Addr mode (also called pointer method):

lukaszadrapa_0-1767118666499.png

The partition (i.e. block size) can be 128KB, 256KB or 512KB depending on derivative:

lukaszadrapa_1-1767118711782.png

Regards,

Lukas

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2269126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECSEC%20GenerateMACAddrMode%20address%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMerry%20Christmas%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20was%20using%20the%20GenerateMACAddrMode%20function%20of%20CSEC.When%20the%20address%20value%20exceeds%200x7DFFF%2C%20an%20error%20will%20occur.%20Is%20this%20normal%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CSEC%20GenerateMACAddrMode%20address%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMy%20fault%3C%2FP%3E%3CP%3EI%20means%20can't%20out%20of%20512kb%3CBR%20%2F%3ECSEC_DRV_GenerateMACAddrMode(CSEC_RAM_KEY%2C%20(uint8_t%20*)0x0007FFFC%2C%200x00000080%2C%20(uint8_t%20*)cmacout)%3B%3C%2FP%3E%3CP%3Ebut%20i%20use%20addr%20%3D%200x0007FFFC%2C%20len%20%3D%26nbsp%3B0x00000080%3C%2FP%3E%3CP%3Ealso%20no%20error%2Cbut%20out%20of%26nbsp%3Brange%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270171%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CSEC%20GenerateMACAddrMode%20address%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270171%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248147%22%20target%3D%22_blank%22%3E%40SaLan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20a%20limitation%20of%20the%20CMD_GENERATE_MAC%20command%20in%20Addr%20mode%20(also%20called%20pointer%20method)%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_0-1767118666499.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_0-1767118666499.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371455i468E5CDCA4542F63%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_0-1767118666499.png%22%20alt%3D%22lukaszadrapa_0-1767118666499.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20partition%20(i.e.%20block%20size)%20can%20be%20128KB%2C%20256KB%20or%20512KB%20depending%20on%20derivative%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lukaszadrapa_1-1767118711782.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lukaszadrapa_1-1767118711782.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371456iD7D2F1E8DCAB7220%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lukaszadrapa_1-1767118711782.png%22%20alt%3D%22lukaszadrapa_1-1767118711782.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E