3
\$\begingroup\$

I would like to flash a new firmware on my STM8L15xC8. I have ST Visual Programmer (STVP) installed and can successfully flash the MCU of the STM8 Discovery board. Now, I setup the STM8 Discovery board to flash external applications. However, when I want to write to the MCU my hex file, I get the error The device is protected. What should I do?

\$\endgroup\$
  • \$\begingroup\$ If you want to update the firmware, you don't need to download the hex, you need to upload it. \$\endgroup\$ – Keelan Sep 12 '14 at 13:49
  • \$\begingroup\$ @Camil Right. I find this somehow confusing as well but some tools call the process of copying a hex file from the development machine to the MCU Download. I change my wording above. \$\endgroup\$ – Rolf Sep 12 '14 at 14:35
5
\$\begingroup\$

Make sure that the Read Out Protection (ROP) byte is set to off. Open STVP, go to the OPTION BYTE tab, set ROP to off and write out (Ctrl + P). Then, go to the PROGRAM MEMORY tab again and you should be able to write your hex file.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.