random number

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
3,352件の閲覧回数
WXM
Contributor II

I want to use S32K312 to get a random number at any time. It's better to do a S32K312 demonstration. thank you

0 件の賞賛
返信
1 解決策
3,327件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Attached is the same project ported to S32K312.
What I did:
- I installed fullmem firmware 0.2.6.0 to new S32K312 board (see FW_version.jpg)
- created new application project with RTD 2.0.2.
- added HSE module
- copied hse_interface files from firmware 0.2.6.0 folder to include folder in the project
- copied files from src folder (I just had to change s32k344.h to s32k312.h in some files)
- as I already mentioned, it is either necessary to disable data cache memory or the data structures needs to be forced to noncacheable space. In this project, I disabled the data cache - see screenshot cache.jpg, I deleted D_CACHE_ENABLE in Preprocessor
- and then you can see the result in result.jpg. Random number is generated and I got HSE_SRV_RSP_OK / 0x55A5AA33

元の投稿で解決策を見る

2 返答(返信)
2,996件の閲覧回数
AlehTS
Contributor II

Hello Lucas.

Your example helped me also.

But could you please explain in more detail the step "copied hse_interface files from firmware 0.2.6.0 folder to include folder in the project"?

Which folder "firmware 0.2.6.0" did you mean?

I've checked the folder in which was installed "HSE_FW_S32K344_0_2_40_0.exe". (I hope it does not matter thar you write about 0.2.6.0). 

It contains no *.c files, only *.h

Thank you.

Best regards,

Aleh

 

0 件の賞賛
返信
3,328件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Attached is the same project ported to S32K312.
What I did:
- I installed fullmem firmware 0.2.6.0 to new S32K312 board (see FW_version.jpg)
- created new application project with RTD 2.0.2.
- added HSE module
- copied hse_interface files from firmware 0.2.6.0 folder to include folder in the project
- copied files from src folder (I just had to change s32k344.h to s32k312.h in some files)
- as I already mentioned, it is either necessary to disable data cache memory or the data structures needs to be forced to noncacheable space. In this project, I disabled the data cache - see screenshot cache.jpg, I deleted D_CACHE_ENABLE in Preprocessor
- and then you can see the result in result.jpg. Random number is generated and I got HSE_SRV_RSP_OK / 0x55A5AA33