1984806_en-US

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

1984806_en-US

1984806_en-US

FLash-Test

Hello NXP-Team,


iam trying to check my flash-area with your function :

FS_CM33_FLASH_HW16() ;

unfortunatally it doesnt work, the return value is constant null.

my µC-device is the LPC5536.Are there any examples to test my lpc5536 ?


Re: FLash-TestHello Hang,
thank you for your support!!
Re: FLash-Test

Hi @ThomasSPana 

If you want to run this project successfully, please refer to 

SDK_2_16_000_LPCXpresso55S36\middleware\safety_iec60730b\docs\safety\IEC60730B_Example_User_Guide_LPC55Sxx_v4_4.pdf.

BR

Harry

Re: FLash-Test

Hi Hang,
i have already send you a link to my project . Additionally it is possible to setup this example through "MCUexpressoIDE".
My project-configureation : SDK-Wizard-> LPCxpresso55s36 eval-board (sdk_2.xlpc55s36)-> components (Others -> safety) NXP-Safety-IEC60730 ->advaced project settings (default) . That all. After that you can run this project and the flash-error fault should occure


BR
Thomas

Re: FLash-Test

Hi @ThomasSPana 

Can you share this project? So i can test it.

BR

Hang

Re: FLash-Test

Hello Hang, 

currently i test the "lpcxpresso55s36_safety_iec60730b_Flash_Test" PROJECT with the LPC55S3x-EVK Board. If i run the project, i get the same error-code "2" -> Flash-Test error. 

Could you also evaluate the project on an LPC55s3x kit?


Re: FLash-Test

Hi @ThomasSPana 

Given that it returns NULL, this likely indicates a CRC fault or a hardware setup issue with the CRC module on the LPC5536.

The LPC5536 has a built-in hardware CRC module, but it may need to be initialized or enabled before use. So you  needs to be set to enable the CRC peripheral.

You can refer to CRC examples about how to use CRC.

BR

Hang

Re: FLash-Test

Hello Hang,

thank you for your quick replay. I have tested the flashiap-example and it works. When i add the

IEC60730b-library and test the FS_CM33_FLASH_HW16()- function it return NULL. (CRC-Fault) . I use the LPC5536  µController....  Do i need to activate any function for the HW-CRC-Unit ? 

Re: FLash-Test

Hi @ThomasSPana 

You can download the LPC55S36 SDK from the Select Board | MCUXpresso SDK Builder (nxp.com).

And you can refer to the flashiap and flexspi examples.

HangZhang_0-1730440156797.png


These examples should demonstrate basic flash operations and can be a good starting point for your testing.

BR

Hang

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 10:33 PM
Updated by: