Author Topic: EEVblog #1144 - Padauk Programmer Reverse Engineering  (Read 48045 times)

jhpadjustable and 3 Guests are viewing this topic.

Offline ali_asadzadeh

  • Frequent Contributor
  • **
  • Posts: 821
  • Country: ir
    • ASiD Designer
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #600 on: July 25, 2019, 07:17:10 pm »
Quote
open source hardware programmer: https://github.com/free-pdk/easy-pdk-programmer-hardware

I have checked it, it has only the hardware files, where is the software files for the STM32 MCU and also the PC side software
You can order parts from www.ASiDesigner.com
we are a wire-based company
 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2211
  • Country: de
    • Frank Buss
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #601 on: July 25, 2019, 09:11:22 pm »
Quote
open source hardware programmer: https://github.com/free-pdk/easy-pdk-programmer-hardware

I have checked it, it has only the hardware files, where is the software files for the STM32 MCU and also the PC side software
There is a message at the bottom of the page: "Software sources can be found here" and then a link.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline js_12345678_55AA

  • Regular Contributor
  • *
  • Posts: 139
  • Country: ht
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #602 on: July 25, 2019, 10:19:56 pm »
The only question I have is some odd behaviour I found.
If I use aborted write cycle to read chip ID I get 0xA16 but if I use second read cycle I always get 0x50B which is obviously shifted by a bit to the right.
So my question is which is actually right ID? Who said it should be 0xA16 and not 0x50B?

Hi,

just have a look in the PADAUK IDE header file: "PMS150C.INC":
...
.Assembly   OTP_ID      2A16h
...
Usually this matches the processor ID response (with some exceptions). Only the lower 12 bits are honored for all processors: => 0xA16  :)

JS
Easy PDK programmer and more: https://free-pdk.github.io
 
The following users thanked this post: lanserge

Offline ali_asadzadeh

  • Frequent Contributor
  • **
  • Posts: 821
  • Country: ir
    • ASiD Designer
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #603 on: July 26, 2019, 05:33:42 am »
Quote
There is a message at the bottom of the page: "Software sources can be found here" and then a link.
Thanks FrankBuss :-+
You can order parts from www.ASiDesigner.com
we are a wire-based company
 

Offline gaganchd2000

  • Newbie
  • Posts: 3
  • Country: in
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #604 on: July 28, 2019, 02:52:31 pm »
Hi

Probably this is very lame question here but still I need some help from experts. I have written blinky program in FPPA IDE and now want to burn code. But problem is I dont see .PDK file. I see only .c, .pre, .prj files.
Can you please let me know what i am missing.
I have chips and writer. No ICE.
 
 

Offline js_12345678_55AA

  • Regular Contributor
  • *
  • Posts: 139
  • Country: ht
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #605 on: July 28, 2019, 06:38:53 pm »
Hi

Probably this is very lame question here but still I need some help from experts. I have written blinky program in FPPA IDE and now want to burn code. But problem is I dont see .PDK file. I see only .c, .pre, .prj files.
Can you please let me know what i am missing.
I have chips and writer. No ICE.

Hi,

A .PDK file is created in same folder as the project (.PRJ) file, which you choose to be at a different location than your source files: "C:\Users\gagan\Test_Blinky\Test_Blinky.PRJ".
So your .PDK file is here: "C:\Users\gagan\Test_Blinky\Test_Blinky.PDK"

If you just want to WRITE the compiled program to a chip, you don't have to leave the IDE.
There is a menu entry "Execute->Writer" which will open a writer dialog with all parameters filled in from your project.
The extra "WRITER.exe" is only for factories which mass produce ICs and do not need to open the compiler IDE.

BTW: Your IDE version (0.84) is a bit dated. There is a much newer (0.86) on PADAUK web site.

Last comment: Since this is the "Padauk Programmer Reverse Engineering" thread it would be nice if you consider using and improving the free open source tools (open hardware programmer / open source compiler) instead.


JS
Easy PDK programmer and more: https://free-pdk.github.io
 

Offline ali_asadzadeh

  • Frequent Contributor
  • **
  • Posts: 821
  • Country: ir
    • ASiD Designer
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #606 on: July 29, 2019, 06:06:22 pm »
I have installed mingw on my windows machine and added the PATH to environment variables. also I have added make to my Git Bash!
How should I compile the PC software? I use this and I got  errors

Code: [Select]
make all

Quote
make all
cd lib/argp-standalone-1.3 && sh configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for __attribute__... no
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
checking for strerror... yes
checking for mempcpy... no
checking for strndup... no
checking for strchrnul... no
checking for putc_unlocked('x', stdout)... no
checking for flockfile... no
checking for fputs_unlocked... no
checking for fwrite_unlocked... no
checking for strdup... yes
checking for asprintf... no
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
C:/Program Files/Git/mingw64/bin/make -C lib/argp-standalone-1.3
make[1]: Entering directory 'C:/Users/ASiDesigner/Desktop/easy-pdk-programmer-software-master/easy-pdk-programmer-software-master/lib/argp-standalone-1.3'
C:/Program Files/Git/mingw64/bin/make  all-recursive
make[2]: Entering directory 'C:/Users/ASiDesigner/Desktop/easy-pdk-programmer-software-master/easy-pdk-programmer-software-master/lib/argp-standalone-1.3'
Making all in .
/usr/bin/sh: line 11: C:/Program: No such file or directory
make[2]: *** [Makefile:325: all-recursive] Error 1
make[2]: Leaving directory 'C:/Users/ASiDesigner/Desktop/easy-pdk-programmer-software-master/easy-pdk-programmer-software-master/lib/argp-standalone-1.3'
make[1]: *** [Makefile:215: all] Error 2
make[1]: Leaving directory 'C:/Users/ASiDesigner/Desktop/easy-pdk-programmer-software-master/easy-pdk-programmer-software-master/lib/argp-standalone-1.3'
make: *** [Makefile:33: lib/argp-standalone-1.3/libargp.a] Error 2

You can order parts from www.ASiDesigner.com
we are a wire-based company
 

Offline js_12345678_55AA

  • Regular Contributor
  • *
  • Posts: 139
  • Country: ht
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #607 on: July 31, 2019, 05:37:22 am »
I have installed mingw on my windows machine and added the PATH to environment variables. also I have added make to my Git Bash!
How should I compile the PC software? I use this and I got  errors

There are multiple options to get it working on Windows.

I added a compiled binary to the Github project RELEASES: https://github.com/free-pdk/easy-pdk-programmer-software/releases  (1.0 - easy-pdk-programmer-software-windows.zip)

If you want to compile it yourself the most easy way I know of is to install MSYS2 which can then be used directly or with the in MSYS2 integrated MINGW. The package manager pacman in MSYS2 makes installing required components and libraries very easy. You find a lot of information about this on the internet.

Your specific problem with your MinGW installation looks like you installed it to a path which includes spaces (I think this was/is a problem with MinGW, try "C:\MinGW" instead).
Your build stops when it is looking for a dependency tool and only half of the path is visible:


Code: [Select]
make all
...
make[2]: Entering directory 'C:/Users/ASiDesigner/Desktop/easy-pdk-programmer-software-master/easy-pdk-programmer-software-master/lib/argp-standalone-1.3'
Making all in .
/usr/bin/sh: line 11: C:/Program: No such file or directory
make[2]: *** [Makefile:325: all-recursive] Error 1
...

You can see that "C:/Program" seems to be the start of "C:/Program Files/..."


Have fun,

JS
Easy PDK programmer and more: https://free-pdk.github.io
 

Offline ali_asadzadeh

  • Frequent Contributor
  • **
  • Posts: 821
  • Country: ir
    • ASiD Designer
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #608 on: July 31, 2019, 03:54:59 pm »
Thanks JS :-+
You can order parts from www.ASiDesigner.com
we are a wire-based company
 

Offline tim_

  • Contributor
  • Posts: 49
  • Country: de
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #609 on: August 13, 2019, 07:13:38 am »
FYI, I ventured out and reviewed all sub $0.10 microcontrollers on LCSC. I hope it's somewhat useful:

https://cpldcpu.wordpress.com/2019/08/12/the-terrible-3-cent-mcu/

I can now confirm that the Padauk MCUs are the best in this segment. We knew this before, did we?

Well, now back to actual projects on the PFS154...

« Last Edit: August 13, 2019, 07:29:50 am by tim_ »
 
The following users thanked this post: EEVblog, bitwelder, thm_w, edavid, Kean, js_12345678_55AA

Offline EEVblog

  • Administrator
  • *****
  • Posts: 29194
  • Country: au
    • EEVblog
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #610 on: August 14, 2019, 01:06:46 pm »
FYI, I ventured out and reviewed all sub $0.10 microcontrollers on LCSC. I hope it's somewhat useful:
https://cpldcpu.wordpress.com/2019/08/12/the-terrible-3-cent-mcu/

Great article!  :-+
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf