Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

UPDI

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
SZTRAD

Bascom Member



Joined: 30 Dec 2019
Posts: 34

blank.gif
PostPosted: Tue Jul 21, 2020 4:36 pm    Post subject: UPDI Reply with quote

When trying to program the UPDI chip attiny1604,1606 with the usb converter ch340, it will not connect. After about 60 s, the programmer window closes and when the IDE is closed it reports (see fig.)
All attempts to transmit from Bascom end in error. The waveform on the oscilloscope corresponds to the transmission but the processor does not respond. Has anyone encountered this? I'll try the logic analyzer tomorrow.

(BASCOM-AVR version : 2.0.8.3 , Latest : 2.0.8.3 )
Back to top
View user's profile
Memen

Bascom Member



Joined: 06 May 2016
Posts: 13

PostPosted: Tue Jul 21, 2020 7:17 pm    Post subject: Reply with quote

FTDI, Prolific - tested -ok.
ch340 - tested - bad.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5093
Location: Holland

blank.gif
PostPosted: Tue Jul 21, 2020 8:15 pm    Post subject: Reply with quote

often usb drivers gave blue screens. so i always start using a normal COM port. (of course even the normal one uses a driver).
you might want to try to update your driver. the time comm drivers gave BS is long time ago.

during development i once in a while had a communication problem. but when you are patient, it should work out.
when there is no comm. you need to recycle the power of the chip. i tested with various tiny816, but i expect the other xtiny will work the same.

_________________
Mark
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1198
Location: SYDNEY

australia.gif
PostPosted: Tue Jul 21, 2020 11:37 pm    Post subject: Reply with quote

I have found that FTDI, Prolific works well but the ch340 does not.
This I have found even with other programs not just bascom.
Also FTDI have some USB cables that a terminated in header or wires
part no TTL-232r-3V3 3.3 VOLT and a 5V version
Regards Paul
Back to top
View user's profile
SZTRAD

Bascom Member



Joined: 30 Dec 2019
Posts: 34

blank.gif
PostPosted: Wed Jul 22, 2020 9:03 am    Post subject: Reply with quote

Greetings to all.
I was misunderstood, it was not a reproach or a complaint but just a test for others who will program this way. It's probably due to my English and expression.
Today's tests.
CH340 does not work
CH341 does not work
it will be due to access to the driver, they have a problem with direct access.
FTDI works (buffer needs to be reduced and latency is more reliable)
CP2102 works (occasional stuttering)
PL2303 works (speed and buffer need to be reduced)
Please note that this must be a USB / TTL converter. UPDI does not accept voltages lower than 0V. The standard USB / RS232 converter has a false level of approx. -0.8V against GND. They do not meet the RS232 standard, but it is still outside the tolerance of the UPDI input.
HW RS232 notebook Fujitsu works, value for false -0.1V.
HW RS232 PC (full specification) does not work (logic voltage + 10, -10V) chip survives such treatment.
I did the last two tests because of a note in Help. I think it would like to fix Mark.

The UPDI programmer is a serial based programmer.

You need to select 115200 BAUD and the COM port which is connected to the UPDI interface.

The UPDI interface is very simple : all you need is a TX, RX and a resistor.

Connect TX from the PC UART to a 4K7 resistor. The other side of the resistor is connected to the PC RX and to the UPDI pin of the processor.

We use DTR to switch the TX and RX from the PC to the processor. This allows to use the PC COM port to be used for serial communication and as a UPDI programmer.


An error in my image occurs when COM is lost or when identification is called again if the chip has already been loaded once. And only when leaving the IDE.

Regards RS
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5093
Location: Holland

blank.gif
PostPosted: Wed Jul 22, 2020 9:14 am    Post subject: Reply with quote

didnt you see the circuit in the help? it shows a max202.
of course you can not directly connect the com pins with rs232 levels. but i added an explicit note because you tried it.

about problems with com : please give exact reproduction steps so it can be tested.

_________________
Mark
Back to top
View user's profile Visit poster's website
SZTRAD

Bascom Member



Joined: 30 Dec 2019
Posts: 34

blank.gif
PostPosted: Wed Jul 22, 2020 9:40 am    Post subject: Reply with quote

But he saw. Since I know people (I wrote a lot of the manual), if I read a note from the beginning, I don't read any further and then I'm worried. Again, this is not just a warning for those who try. Disappointment tends to be great and this advantage of your IDE could attract more users.
I'll put it to the test when it does exactly, and I'll let you know. Now I worked with a programmer to test what he could do. The speed is good so far, 50 entries have been made without errors. So for me, the good work of an IDE programmer.
Tested
1604
1606
806
814
3216
The rest haven't arrived yet
Regards RS
Back to top
View user's profile
fandah

Bascom Member



Joined: 01 Mar 2007
Posts: 4

czechrepublic.gif
PostPosted: Thu Oct 08, 2020 11:46 am    Post subject: Reply with quote

IC CH340 and rezistor 2K7 UPDI OK.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum