stm32 - How to protect reading flash of stm32f10x -


i working on project using stm32f103 , have finished development of firmware. use st-link utility downloading stuff microcontroller. when activate read out protection on chip, stops working. , need protect firmware. problem?

you have unlock flash first. there should call in stm32 stdperiph library. code looks this:

/* read protect flash.  never ever set level 2.  can't  * write chip ever again after that. */ flash_ob_unlock(); flash_ob_rdpconfig( ob_rdp_level_1 ); if (flash_ob_launch() != flash_complete) {     err_printf("error enabling rdp\n"); } flash_ob_lock(); 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -