View previous topic :: View next topic |
Author |
Message |
EDC
Joined: 26 Mar 2014 Posts: 1095

|
Posted: Tue Sep 20, 2022 5:45 pm Post subject: |
|
|
Hello. For some reasons MSC UPDI don`t want work for me. I was try 4K7, 2K7 and 1K resistors with FT232RL and CH340. Different baud form 115200 and even Latency 2 in FTDI driver...
I will be trying but for now I want to fast download my code under development for AVR128DB32.
I have SNAP probgrammer and it connect into my uC normally. So I spent some time to learn how to use it from command line. So now I can share the parameters needed for use it with Bascom External Programmer.
Program names "ipecmd.exe" so in Bascom field "Program" I type : C:\Program Files\Microchip\MPLABX\v6.00\mplab_platform\mplab_ipe\ipecmd.exe
Parameters are "TP" for ToolProgrammer so it is "-TPSNAP", uC is called "Part" so "-PAVR128DB32", flash uC is "-F" so in Bascom "-F{FILE}" and you must add "-M" it means memory and if not specified something specific then entire uC will be programmed.
So whole "magic parameter" is :" -TPSNAP -PAVR128DB32 -F{FILE} -M"
It works.
PS. I will be trying to connect with MCS UPDI. If someone have some idea to test then I wilingly try.
 |
|
Back to top |
|
 |
albertsm
Joined: 09 Apr 2004 Posts: 6125 Location: Holland

|
Posted: Tue Sep 20, 2022 6:51 pm Post subject: |
|
|
i assume you got the version from the SLA right?
i use 1K resistor and made a number of program adapters now. they all work perfect.
I use cp2102 based virtual COM adapters. maybe that is the difference. it should not matter. i also made a max232 based variant.
the baud should be 115200 or 22500. but the DA and DB also support way higher 1600000 which i use.
i used 5V and 3V3. i have no idea why it would not work for you.
the options for DTR pin and RTS pin you can set to anything when you do not use them.
i do not have time to lookup ftdi adapter but i really doubt if that would matter.
you use the adapter exclusive for the updi? or did you add a mux or something? _________________ Mark |
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1095

|
Posted: Tue Sep 20, 2022 6:58 pm Post subject: |
|
|
Yes. SLA version 2085.005 but downloaded after announce about 2085/6
FTDI is used only for UPDI without any addons. "Resistor bare version"
I will be keep on trying.
Someday I have PL2003 but not anymore. Maybe I search my drawer for CP adapter
There must be small detail...
 |
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1095

|
Posted: Tue Sep 20, 2022 10:44 pm Post subject: |
|
|
Success!
I have some diagnostics equipment/interfaces for cars so I know some tweaks for FTDI and other converters.
Now I reduce the buffers for this FT232RL and everything work like a charm
I made screens for others.
 |
|
Back to top |
|
 |
albertsm
Joined: 09 Apr 2004 Posts: 6125 Location: Holland

|
Posted: Wed Sep 21, 2022 7:01 pm Post subject: |
|
|
good finding ! i will add this to the help for those that use the FT232. _________________ Mark |
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1095

|
Posted: Wed Sep 21, 2022 9:01 pm Post subject: |
|
|
Sience AVR128DB32 Reset pin is not active by default is there a chance that "Reset micro SHIFT+F4" from Bascom IDE can be implemented into MCS UPDI?
I saw in the logs that this is happen so only SHIFT+F4 should be connected (I think but may be wrong)  |
|
Back to top |
|
 |
albertsm
Joined: 09 Apr 2004 Posts: 6125 Location: Holland

|
Posted: Fri Sep 23, 2022 8:39 pm Post subject: |
|
|
i can add but ...
there are 2 options, one the quickest is the actual reset on the processor pin using the dtr or rts when that option is set.
the disadvantage is that you need to program the pin since it is not by default in reset mode
and there is the option to use the updi protocol to reset the chip. _________________ Mark |
|
Back to top |
|
 |
albertsm
Joined: 09 Apr 2004 Posts: 6125 Location: Holland

|
Posted: Tue Sep 27, 2022 8:42 am Post subject: |
|
|
added but not tested yet
but as i work on a big project with 64da64 i will test it for sure _________________ Mark |
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1095

|
|
Back to top |
|
 |
albertsm
Joined: 09 Apr 2004 Posts: 6125 Location: Holland

|
Posted: Wed Sep 28, 2022 10:12 am Post subject: |
|
|
i uploaded a new beta to SLA. it has the requested feature but it is not tested yet.
the simulator COM support was added and tested.
and so are interrupts which did not work properly either for xtiny.
the help is not updated. this is the reason the release is not public yet.
super nice project! i will comment to that later  _________________ Mark |
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1095

|
Posted: Wed Sep 28, 2022 5:39 pm Post subject: |
|
|
With my AVR128DB32 Reset over UPDI works perfectly
Button and shortcut SHIFT+F4 tested!
I can use PF6 (TQFP32) as I/O
Thanks  |
|
Back to top |
|
 |
albertsm
Joined: 09 Apr 2004 Posts: 6125 Location: Holland

|
Posted: Sat Oct 08, 2022 10:28 am Post subject: |
|
|
yes works for me too. good indeed to have this working.
i also understand the advantage now. _________________ Mark |
|
Back to top |
|
 |
monkye
Joined: 17 Dec 2010 Posts: 1

|
Posted: Mon Nov 27, 2023 4:09 pm Post subject: |
|
|
albertsm wrote: | another update for the updi programmer. get it from the SLA area. it fix a problem where the updi interface was not properly reset.
this update performs very good at 1600000 baud.
there was no feedback about the 12 v pulse.
but the mliab-snap will be supported in either 2086 or 2087.
mod 25 may : by mistake i wrote R28 but must indeed be R48, just for readers that do not read all, i edited this post so the right resistor is shown. |
On the Microchip site (https://onlinedocs.microchip.com/pr/GUID-B8A8AF65-98E6-4501-ADBD-81945BD4B42F-en-US-4/index.html?GUID-26A0D98B-232C-4628-8E4B-59DDD2376102) I‘ve understood, the 12V pulse must injected after POR. IMHO would it be better to:
1. Switch on the power of XTiny
2. after 1ms inject the 12V pulse to UPDI/RESET Pin
3. and 100…500 microseconds later starts the programmer
But how can I synchronize the POR before the 12V pulse starts?
Sorry for my bad English
Uwe |
|
Back to top |
|
 |
ulfbc
Joined: 12 Mar 2019 Posts: 23

|
Posted: Wed Jul 03, 2024 3:51 pm Post subject: |
|
|
I'm fighting to get an UPDI connection to a ATTiny 1616 and 1614.
Tryed with a CH340 Addapter - no success
Tryed different Hardware setups with the same result. Resistor, Resistor and schotky...
these are my settings:
[/img]
the outcome:
is there a way to use this programmer?
Diamex ISPU-Prog-NG
https://www.diamex.de/dxshop/EXA-PROG-AVR-ISP-und-UPDI-STM32-NXP-ESP
What would be the best Hardware for BASCOM? |
|
Back to top |
|
 |
programmista123
Joined: 31 Jan 2018 Posts: 177

|
Posted: Wed Jul 03, 2024 4:48 pm Post subject: |
|
|
Hello,
Could you try with lower speed? For example 9600.
With CP2102 I can reach 19200 max.
Regards,
Przemek
Edit: I'm using 100 timeout setting, DTR-pin: none. |
|
Back to top |
|
 |
|