mpc5777c Related Questions.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mpc5777c Related Questions.

627 次查看
jinbyungd
Contributor I

I am using mpc 5777c as s32 design studio 2017r1.

I want to use the language in main assembly below.

__dcache_cfg:
e_li r5, 0x2
mtspr 1010,r5

e_li r7, 0x4
e_li r8, 0x2
e_lis r11,0xFFFF
e_or2i r11,0xFFFB

__dcache_inv:
mfspr r9, 1010
and. r10, r7, r9
e_beq __dcache_no_abort
and. r10, r11, r9
mtspr 1010, r10
e_b __dcache_cfg

__dcache_no_abort:
and. r10, r8, r9
e_bne __dcache_inv

mfspr r5, 1010
e_ori r5, r5, 0x0001
se_isync
msync
mtspr 1010, r5

 

How to use c language and assembly in the s32 design studio

Thanks you

Note: I want to turn dcache on and off while the program is running.

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

533 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, just to check - your question is 'how to use assembly code in the S32 Design Studio'? Is it so?

0 项奖励
回复