Page 3 of 3

Re: some sectors are write protected

Posted: Mon Nov 13, 2017 3:50 am
by dev
@Rick, i am apologies for that again. my intention wasn't that.

@Roger, what should i check in that? i think usb is detecting as COM port then USB is working. (i have no idea if other problem exists)

@Pito, I am not messing around with any sketches. I am just using LED blink example and some pre compiled binaries to get usb bootloader working.
Yes, I am using STlink utility to flash binaries? Should i try with serial method?
if i use stlink utility and stlink dongle then i get error as follows.
error.JPG
error.JPG (17.53 KiB) Viewed 84 times
error2.JPG
error2.JPG (16.92 KiB) Viewed 84 times
Every time that address gets change.
But if i flash led blink example through arduino ide using stlink dongle then it get flashed.
so, i think i can ignore that error now if i get USB bootloader working.

Re: some sectors are write protected

Posted: Mon Nov 13, 2017 8:35 am
by Pito
1. your ST_Link dongle works fine when uploading a sketch via ST_Link method from Arduino IDE
2. when using ST_Link dongle with ST_Link Utility then the programming the bootloader fails with above errors.
Is that correct?
Could you make the screenshot of your Target->Settings while connected to your ST_Link dongle?

Re: some sectors are write protected

Posted: Mon Nov 13, 2017 8:32 pm
by victor_pv
Also take a screenshot of your option Bytes screen.

Re: some sectors are write protected

Posted: Tue Nov 14, 2017 5:20 pm
by dev
1. your ST_Link dongle works fine when uploading a sketch via ST_Link method from Arduino IDE
2. when using ST_Link dongle with ST_Link Utility then the programming the bootloader fails with above errors.
yes, right.
Could you make the screenshot of your Target->Settings while connected to your ST_Link dongle?
settings.JPG
settings.JPG (51.88 KiB) Viewed 57 times
Also take a screenshot of your option Bytes screen.
option_byte.JPG
option_byte.JPG (103.83 KiB) Viewed 57 times
Yes i could see now, these pages are write protected. But i tried that by full chip erase option, then also this write protection is not going.

Re: some sectors are write protected

Posted: Tue Nov 14, 2017 6:36 pm
by Pito
These are my option bytes:
BPill Option Bytes.JPG
BPill Option Bytes.JPG (107.61 KiB) Viewed 52 times