some sectors are write protected

Post here first, or if you can't find a relevant section!
dev
Posts: 62
Joined: Sun Feb 19, 2017 8:41 am

Re: some sectors are write protected

Post by dev » Mon Nov 13, 2017 3:50 am

@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 69 times
error2.JPG
error2.JPG (16.92 KiB) Viewed 69 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.

User avatar
Pito
Posts: 1592
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: some sectors are write protected

Post by Pito » Mon Nov 13, 2017 8:35 am

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?
Pukao Hats Cleaning Services Ltd.

victor_pv
Posts: 1681
Joined: Mon Apr 27, 2015 12:12 pm

Re: some sectors are write protected

Post by victor_pv » Mon Nov 13, 2017 8:32 pm

Also take a screenshot of your option Bytes screen.

dev
Posts: 62
Joined: Sun Feb 19, 2017 8:41 am

Re: some sectors are write protected

Post by dev » Tue Nov 14, 2017 5:20 pm

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 42 times
Also take a screenshot of your option Bytes screen.
option_byte.JPG
option_byte.JPG (103.83 KiB) Viewed 42 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.

User avatar
Pito
Posts: 1592
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: some sectors are write protected

Post by Pito » Tue Nov 14, 2017 6:36 pm

These are my option bytes:
BPill Option Bytes.JPG
BPill Option Bytes.JPG (107.61 KiB) Viewed 37 times
Pukao Hats Cleaning Services Ltd.

Post Reply