-
Path: news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!new
s.nask.pl!news.nask.org.pl!news.unit0.net!feeder3.cambriumusenet.nl!feed.tweakn
ews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsf
eed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!ne
ws.neostrada.pl.POSTED!not-for-mail
Date: Fri, 14 May 2010 08:21:56 +0200
From: SM <b...@k...com.pl>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
Newsgroups: pl.misc.elektronika
Subject: STM32 i problem z wielkoscia bufora USB
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 37
Message-ID: <4becec00$0$2596$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.27.187.56
X-Trace: 1273818112 unt-rea-a-02.news.neostrada.pl 2596 83.27.187.56:1388
X-Complaints-To: a...@n...neostrada.pl
Xref: news-archive.icm.edu.pl pl.misc.elektronika:588427
[ ukryj nagłówki ]Witam,
Wróciłem do zabawy z STM32F103. Kończę swoją obsługę USB
i trafiłem w PDFie Referene Manual RM0008 do STM32F...
na takie zdanie:
"Reception memory buffer locations are written starting from the address
contained in the
ADDRn_RX for a number of bytes corresponding to the received data packet
length, CRC
included (i.e. data payload length + 2), or up to the last allocated
memory location, as
defined by BL_SIZE and NUM_BLOCK, whichever comes first. In this way,
the USB
peripheral never writes beyond the end of the allocated reception memory
buffer area. If the
length of the data packet payload (actual number of bytes used by the
application) is greater
than the allocated buffer, the USB peripheral detects a buffer overrun
condition. in this case,
a STALL handshake is sent instead of the usual ACK to notify the problem
to the host, no
interrupt is generated and the transaction is considered failed."
Czy z tego mogę wnioskować, że jeśli mam bufor odbioru danych o
wielkości 64 bajty (zdefiniowane poprzez BL_SIZE i NUM_BLOCK),
to gdy odbiorę:
1. więcej niż 64 bajty danych (data payload > 64) => mam błąd i będzie
STALL
2. mam 64 bajty danych (data payload = 64) => nie mam błędu, w buforze
mam wszystkie 64 bajty
3. mam 63 bajty danych (data payload = 63) => nie mam błędu, w buforze
mam 63 bajty danych + 1 bajt CRC
4. mam 62 lub mniej bajtów danych (data payload <= 62) => nie mam błędu,
w buforze mam odebrane bajty danych + 2 bajty CRC
SM
Następne wpisy z tego wątku
- 14.05.10 17:22 SM
Najnowsze wątki z tej grupy
- Router LTE z możliwością zmian MTU
- Fajny film widziałem...
- Jaka ładowarka sieciowa do Iphona?
- Taśma izolacyjna do prac elektrycznych
- Recenzja 3.1A ;) w 6 gniazdach...
- Re: Recenzja 3.1A ;) w 6 gniazdach...
- Re: Recenzja 3.1A ;) w 6 gniazdach...
- Re: Recenzja 3.1A ;) w 6 gniazdach...
- Wkrętarki, wiertarki...
- Zasilacz impulsowy 12V 10A, coś godnego uwagi jako zamiennik akumulatora wkrętarki
- Mouser - koszt wysyłki
- [OT] Jak wycinac ksztalt w piance lub styropianie?
- FV--> ciepła woda w kranie
- Szok
- Dziwny schemat wzmacniacza m.cz.
Najnowsze wątki
- 2025-07-08 Router LTE z możliwością zmian MTU
- 2025-07-08 Re: Pożar w Ząbkach a polscy dyletanci
- 2025-07-08 Trójmiasto => Head of Social Media <=
- 2025-07-08 Warszawa => MENA New Business Manager <=
- 2025-07-08 Środa Wielkopolska => SAP FI/CO Internal Consultant <=
- 2025-07-08 Warszawa => Customer Service with Spanish + translation <=
- 2025-07-08 Warszawa => Senior Account Manager <=
- 2025-07-08 Parkometry bez podstawy prawnej
- 2025-07-07 Re: Ząbki się spaliły jak wiejskie, drewniane stodoły sprzed 50 lat
- 2025-07-06 Kup szybko nową ładowarkę do smartfona
- 2025-07-07 TV z Play (dawniej UPC) -- potrzebny dekoder?
- 2025-07-06 Kup szybko nową ładowarkę do smartfona
- 2025-07-07 mija rok jeżdzenia po lewej
- 2025-07-06 Elektryki jednak są NIEBEZPIECZNE
- 2025-07-08 Fajny film widziałem...