Kanał - ATNEL tech-forum
Wszystkie działy
Najnowsze wątki



Teraz jest 12 lut 2025, o 21:24


Strefa czasowa: UTC + 1





Utwórz nowy wątek Odpowiedz w wątku  [ Posty: 2 ] 
Autor Wiadomość
PostNapisane: 4 kwi 2014, o 22:04 
Offline
Użytkownik

Dołączył(a): 20 lut 2013
Posty: 54
Pomógł: 0

Witam, mam problem z zaprogramowaniem procka stm32f103 przy pomocy umieszczonego na stm32f3discovery st-linka. Od razu zaznaczam, że programowałem tego procka wcześniej bez problemów, lecz pewnego dnia z nieznanych mi przyczyn nie mogłem już tego zrobić. Przy próbie wysłania programu na procka przez st-link utility:
Kod:
17:54:09 : Device ID:0x410
17:54:09 : Device flash Size : 128KBytes
17:54:09 : Device family :STM32F10x Medium-density
17:54:13 : Memory-Loader error
17:54:13 : Error occured during program operation!
17:54:23 : Memory-Loader error
17:54:23 : Error occured during program operation!
17:54:23 : Programming error @ 0x200008F4!
17:54:48 : Memory-Loader error
17:54:48 : Error occured during program operation!


Funkcja Erase Chip wykonuje się poprawnie, lecz z funkcją Erase Sectors... są już problemy:
Kod:
16:46:38 : ST-LINK Firmware version : V2J19S0
16:46:38 : Connected via SWD.
16:46:38 : Connetion mode : Normal.
16:46:38 : Device ID:0x410
16:46:38 : Device flash Size : 128KBytes
16:46:38 : Device family :STM32F10x Medium-density
16:46:43 : Flash memory erased.
16:47:07 : Flash page 0 erased.
16:47:07 : Flash page 1 erased.
16:47:07 : Flash page 2 erased.
16:47:07 : Flash page 3 erased.
16:47:07 : Flash page 4 erased.
16:47:07 : Flash page 5 erased.
16:47:07 : Flash page @0x08001800 is not erased. Verify the memory protection.
16:47:07 : Flash page 7 erased.
16:47:07 : Flash page 8 erased.
16:47:08 : Flash page 9 erased.
16:47:08 : Flash page @0x08002800 is not erased. Verify the memory protection.
16:47:08 : Flash page 11 erased.
16:47:08 : Flash page 12 erased.
16:47:08 : Flash page 13 erased.
16:47:08 : Flash page @0x08003800 is not erased. Verify the memory protection.
16:47:08 : Flash page 15 erased.
16:47:08 : Flash page 16 erased.
16:47:08 : Flash page 17 erased.
16:47:08 : Flash page @0x08004800 is not erased. Verify the memory protection.
16:47:08 : Flash page 19 erased.
16:47:09 : Flash page 20 erased.
16:47:09 : Flash page 21 erased.
16:47:09 : Flash page @0x08005800 is not erased. Verify the memory protection.
16:47:09 : Flash page 23 erased.
16:47:09 : Flash page 24 erased.
16:47:09 : Flash page 25 erased.
16:47:09 : Flash page @0x08006800 is not erased. Verify the memory protection.
16:47:09 : Flash page 27 erased.
16:47:09 : Flash page 28 erased.
16:47:09 : Flash page 29 erased.
16:47:09 : Flash page @0x08007800 is not erased. Verify the memory protection.
16:47:10 : Flash page 31 erased.
16:47:10 : Flash page 32 erased.
16:47:10 : Flash page 33 erased.
16:47:10 : Flash page @0x08008800 is not erased. Verify the memory protection.
16:47:10 : Flash page 35 erased.
16:47:10 : Flash page 36 erased.
16:47:10 : Flash page 37 erased.
16:47:10 : Flash page @0x08009800 is not erased. Verify the memory protection.
16:47:10 : Flash page 39 erased.
16:47:10 : Flash page 40 erased.
16:47:11 : Flash page 41 erased.
16:47:11 : Flash page @0x0800A800 is not erased. Verify the memory protection.
16:47:11 : Flash page 43 erased.
16:47:11 : Flash page 44 erased.
16:47:11 : Flash page 45 erased.
16:47:11 : Flash page @0x0800B800 is not erased. Verify the memory protection.
16:47:11 : Flash page 47 erased.
16:47:11 : Flash page 48 erased.
16:47:11 : Flash page 49 erased.
16:47:11 : Flash page @0x0800C800 is not erased. Verify the memory protection.
16:47:11 : Flash page 51 erased.
16:47:12 : Flash page 52 erased.
16:47:12 : Flash page 53 erased.
16:47:12 : Flash page @0x0800D800 is not erased. Verify the memory protection.
16:47:12 : Flash page 55 erased.
16:47:12 : Flash page 56 erased.
16:47:12 : Flash page 57 erased.
16:47:12 : Flash page @0x0800E800 is not erased. Verify the memory protection.
16:47:12 : Flash page 59 erased.
16:47:12 : Flash page 60 erased.
16:47:12 : Flash page 61 erased.
16:47:13 : Flash page @0x0800F800 is not erased. Verify the memory protection.
16:47:13 : Flash page 63 erased.
16:47:13 : Flash page 64 erased.
16:47:13 : Flash page 65 erased.
16:47:13 : Flash page @0x08010800 is not erased. Verify the memory protection.
16:47:13 : Flash page 67 erased.
16:47:13 : Flash page 68 erased.
16:47:13 : Flash page 69 erased.
16:47:13 : Flash page @0x08011800 is not erased. Verify the memory protection.
16:47:13 : Flash page 71 erased.
16:47:13 : Flash page 72 erased.
16:47:14 : Flash page 73 erased.
16:47:14 : Flash page @0x08012800 is not erased. Verify the memory protection.
16:47:14 : Flash page 75 erased.
16:47:14 : Flash page 76 erased.
16:47:14 : Flash page 77 erased.
16:47:14 : Flash page @0x08013800 is not erased. Verify the memory protection.
16:47:14 : Flash page 79 erased.
16:47:14 : Flash page 80 erased.
16:47:14 : Flash page 81 erased.
16:47:14 : Flash page @0x08014800 is not erased. Verify the memory protection.
16:47:15 : Flash page 83 erased.
16:47:15 : Flash page 84 erased.
16:47:15 : Flash page 85 erased.
16:47:15 : Flash page @0x08015800 is not erased. Verify the memory protection.
16:47:15 : Flash page 87 erased.
16:47:15 : Flash page 88 erased.
16:47:15 : Flash page 89 erased.
16:47:15 : Flash page @0x08016800 is not erased. Verify the memory protection.
16:47:15 : Flash page 91 erased.
16:47:15 : Flash page 92 erased.
16:47:16 : Flash page 93 erased.
16:47:16 : Flash page @0x08017800 is not erased. Verify the memory protection.
16:47:16 : Flash page 95 erased.
16:47:16 : Flash page 96 erased.
16:47:16 : Flash page 97 erased.
16:47:16 : Flash page @0x08018800 is not erased. Verify the memory protection.
16:47:16 : Flash page 99 erased.
16:47:16 : Flash page 100 erased.
16:47:16 : Flash page 101 erased.
16:47:16 : Flash page @0x08019800 is not erased. Verify the memory protection.
16:47:16 : Flash page 103 erased.
16:47:17 : Flash page 104 erased.
16:47:17 : Flash page 105 erased.
16:47:17 : Flash page @0x0801A800 is not erased. Verify the memory protection.
16:47:17 : Flash page 107 erased.
16:47:17 : Flash page 108 erased.
16:47:17 : Flash page 109 erased.
16:47:17 : Flash page @0x0801B800 is not erased. Verify the memory protection.
16:47:17 : Flash page 111 erased.
16:47:17 : Flash page 112 erased.
16:47:17 : Flash page 113 erased.
16:47:17 : Flash page @0x0801C800 is not erased. Verify the memory protection.
16:47:18 : Flash page 115 erased.
16:47:18 : Flash page 116 erased.
16:47:18 : Flash page 117 erased.
16:47:18 : Flash page @0x0801D800 is not erased. Verify the memory protection.
16:47:18 : Flash page 119 erased.
16:47:18 : Flash page 120 erased.
16:47:18 : Flash page 121 erased.
16:47:18 : Flash page @0x0801E800 is not erased. Verify the memory protection.
16:47:18 : Flash page 123 erased.
16:47:18 : Flash page 124 erased.
16:47:19 : Flash page 125 erased.
16:47:19 : Flash page @0x0801F800 is not erased. Verify the memory protection.
16:47:19 : Flash page 127 erased.


W zakładce Option Bytes wszystkie strony są "No Protection". Taka ciekawostka, udaje mi się zaprogramować procka jedynie przy użyciu pliku stm32f10xLoader.bin, bez problemów wysyła program na stm32f103. St-link raczej działa poprawnie, bez problemów mogę połączyć się z prockiem stm32f3 dostępnym na płytce discovery oraz go zaprogramować. Problem z brakiem możliwości zaprogramowania zauważyłem, kiedy próbowałem wrzucić program demo na stm32f3, być może wrzuciłem coś wtedy na stm32f103 i coś na nim zablokowałem? Zmieniałem wtedy też firmware st-linka.

Nie mam pomysłu co może być nie tak i jak sobie z tym poradzić, może Wy macie jakieś pomysły lub sposoby rozwiązania mojego problemu? Wymiana procka na nowy to już ostateczność. :)



Góra
 Zobacz profil  
cytowanie selektywne  Cytuj  
PostNapisane: 5 kwi 2014, o 16:23 
Offline
Użytkownik

Dołączył(a): 20 lut 2013
Posty: 54
Pomógł: 0

Napisałem prosty programik do obsługi diodki i działa poprawnie, udało mi się wysłać .bin przez st-link utility i faktycznie dioda się świeci. Jednak z częścią stron flash jest problem, ponieważ gdy próbuje wysłać program, w którym jest obsługa przerwań i jest objętościowo wyskakuje błąd.



Góra
 Zobacz profil  
cytowanie selektywne  Cytuj  
Wyświetl posty nie starsze niż:  Sortuj wg  
Utwórz nowy wątek Odpowiedz w wątku  [ Posty: 2 ] 

Strefa czasowa: UTC + 1


Kto przegląda forum

Użytkownicy przeglądający ten dział: Brak zidentyfikowanych użytkowników i 5 gości


Nie możesz rozpoczynać nowych wątków
Nie możesz odpowiadać w wątkach
Nie możesz edytować swoich postów
Nie możesz usuwać swoich postów
Nie możesz dodawać załączników

Szukaj:
Skocz do:  
Sitemap
Technologię dostarcza phpBB® Forum Software © phpBB Group phpBB3.PL
phpBB SEO