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

0 Members and 2 Guests are viewing this topic.

Online HwAoRrDk

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: gb
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1500 on: January 14, 2024, 06:57:45 pm »
Anybody got any idea what's up with this Padauk app note regarding programming of PMS150G chips?

It seems like they're saying that for the PMS150G you need to add a 100 ohm resistor in series between the chip and the programmer on the PA5 line. They detail bodging some kind of adapter board that plugs in to a header on the back of the official Padauk programmer (and indeed, the latest versions of which apparently come with a proper adapter).

Does this seem like it would be applicable or necessary for programming the PMS150G with the Easy-PDK programmer?

I think they're just trying to add some over-voltage transient suppression to avoid damage to the IC when used in automated programming machines with long wires running from the programmer, because I think as PA5 is the VPP pin, it has no upper input protection diode. Indeed, even in the datasheet they say "Please put 33Ω resistor in series to have high noise immunity when this pin is in input mode".
 

Online HwAoRrDk

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: gb
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1501 on: January 22, 2024, 08:10:16 am »
Frustratingly, the latest released binaries of the Easy-PDK programmer software on the GitHub repository are only for the older v1.3, so they are missing support for many more recent Padauk MCU models (e.g. PMS150G). Support for these have only been added in the "development" branch of the software (which is essentially v1.4), so if you want that you have to build the software yourself. :(

I wanted to build the Windows binary, but for most *nix-centric software actually doing so on Windows itself is usually a clusterfuck (authors typically expect an environment with all sorts of nonsense like cygwin, msys, etc.), so it's nearly always much, much easier to cross-compile on Linux.

In case anyone else at some point wants to do the same, I figured out how:

1. Download (and unzip) or Git clone the "development" branch: https://github.com/free-pdk/easy-pdk-programmer-software/tree/development
2. If not already available, install the MinGW development tools (e.g. sudo apt-get install mingw-w64 on a Debian-based system).
3. Build the included argp-standalone library (from within lib/argp-standalone-1.3 folder): ./configure --host=x86_64-w64-mingw32 CFLAGS='-w -Os' && make
4. Finally, build easypdkprog: make CC=x86_64-w64-mingw32-gcc EPDKVER=1.4 ECFLAGS=-Ilib/argp-standalone-1.3 ARGPSALIB=lib/argp-standalone-1.3/libargp.a EXE_EXTENSION=.exe

:-+
 

Offline KaeTo

  • Contributor
  • Posts: 27
  • Country: de
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1502 on: February 18, 2024, 01:39:31 pm »
Hello,

I have a problem with the PMS150C regarding the bandgap. Maybe somebody here can help me or at least verify my observed behavior.
When I do the bandgap calibration for PMS150C-SO8 everything is okay. I get a calibration result != 0 and the bandgap behaves as expected. When I use my PMS150C-U6 chips I get a result of 0x00 and the bandgap is way of. Has anyone else seen this behavior with the U6 (SOT23-6) variant or could verify it, if you get the same calibration result.
At the moment my suggestion would be, that I got a bad batch.

Thank you :)
 

Offline spth

  • Regular Contributor
  • *
  • Posts: 163
  • Country: de
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1503 on: March 11, 2024, 07:53:57 am »
Padauk has been discontinuing and introducing devices, and the free programmer hasn't gotten support for new devices in a while.
How can we restart the process of getting support for more devices? Is anyone with experience in adding support for additional devices still active?

« Last Edit: March 11, 2024, 08:07:16 am by spth »
 

Offline crossbound

  • Newbie
  • Posts: 4
  • Country: us
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1504 on: March 29, 2024, 12:25:21 am »
I realize that most people have moved on from this thread, but I still wanted to add a redesign of the EasyPDK programmer I did. Just to give back a little something to this community. It's called the PurplePDK programmer and is based on the easy-pdk-lite programmer.
The github repository can be found at  https://github.com/cross-bound/PurplePDK

Enjoy



 

Offline Bug191

  • Newbie
  • Posts: 1
  • Country: hr
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1505 on: April 08, 2024, 01:26:28 pm »
Hi I am new to Padauk and am currently working with pfs154 for my final project in uni.

I need some help with going to deep sleep and waking up. Currently I am trying to get IC to go to deep sleep and wake up on interrupt on pin PA0. After wakeup I set pin PA3 to HIGH to verify that IC is not still in sleep. When I do this it successfully goes to sleep (verified with current draw of only a few uA) but after I bring rising edge to pin PA0 for wakeup it doesnt do anything for about few seconds and then if gives me square wave on pin PA3 instead of just HIGH. After that it shuts down again going to few uA of current draw. I even added capacitor to VDD (5V) to make sure there is enough current for fast wakeup.

I attached my code below.

Please help
« Last Edit: April 08, 2024, 01:29:16 pm by Bug191 »
 

Offline tim_

  • Regular Contributor
  • *
  • Posts: 240
  • Country: de
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1506 on: April 24, 2024, 04:44:56 am »
Hi I am new to Padauk and am currently working with pfs154 for my final project in uni.

I need some help with going to deep sleep and waking up.

Not exactly sure about your specific issue. Have you looked this example?
https://cpldcpu.wordpress.com/2021/02/07/ultra-low-power-led-flasher/

I recall I rather had issue not to wake up the device due to noise on the pins.
 

Offline tim_

  • Regular Contributor
  • *
  • Posts: 240
  • Country: de
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1507 on: April 24, 2024, 04:57:01 am »
Padauk has been discontinuing and introducing devices, and the free programmer hasn't gotten support for new devices in a while.
How can we restart the process of getting support for more devices? Is anyone with experience in adding support for additional devices still active?

Are there any notable new devices that can actually be bought publically? e.g. at LCSC?
 

Offline tim_

  • Regular Contributor
  • *
  • Posts: 240
  • Country: de
Re: EEVblog #1144 - Padauk Programmer Reverse Engineering
« Reply #1508 on: May 03, 2024, 12:49:07 am »
I did something on the Padauks again:

https://github.com/cpldcpu/BitNetPDK

Apologies if it is not terribly useful. It's one of those things that had to be done, because they were possible.
 
The following users thanked this post: js_12345678_55AA


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf