Close

More testing

A project log for Open-source GreenPAK CLI tool + GSD driver

This is a feature creep that wouldn't just go away. This project is a CLI tool for GreenPAKs using the offical GreenPAK Serial Debugger.

anders-helgessonAnders Helgesson • 03/23/2026 at 05:29•0 Comments

I've made a new git project which contains all the related crates and the test crates. Having all the crates in the same workspace makes it easier to work on the project.

Porting all the tests to the new test crate, made me find some more bugs. With those fixed. The driver is almost ready to be used for the next step of development.

I've made a new test using a sht40 sensor to test the embedded-hal implementation.

The hardware test crate have 20 tests right now, which covers the API pretty well.

≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡[ Harware Test Results ]≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

   [PASS] GSD: Status LED test (171 ms)
   [PASS] GSD: Switch I2C bus mode test (17 ms)
   [PASS] I2C: Write nack test (67 ms)
   [PASS] I2C: Read nack test (64 ms)
   [PASS] I2C: Write read nack test (64 ms)
   [PASS] HAL: I2C write nack test (40 ms)
   [PASS] HAL: I2C read nack test (64 ms)
   [PASS] HAL: I2C write read nack test (64 ms)
   [PASS] Power: Power ON test (68 ms)
   [PASS] I2C: Write test (59 ms)
   [PASS] I2C: Read test (68 ms)
   [PASS] I2C: Set standard i2c bus speed (3 ms)
   [PASS] I2C: Write read test (64 ms)
   [PASS] I2C: Set fast i2c bus speed (3 ms)
   [PASS] HAL: I2C Transaction ops test (116 ms)
   [PASS] HAL: Unsupported I2C transaction ops test (48 ms)
   [PASS] HAL: External crate test using sht40 sensor (82 ms)
   [PASS] Power: Power OFF test (44 ms)
   [PASS] ADC: Power sweep (1675 ms)
   [PASS] Power: VBus 5 volt pass-through test (117 ms)

≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡[ Summary ]≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

   [SUCCESS] : 20 tests (20 passed, 0 failed), total duration 2898 ms

Power sweep test, tests all settings of the target output voltage settings and reads it back using the ADC. I can probably shave some time off that test by reducing the grace time between each one.

The sht40 sensor can tolerate up to 5.5 volts in the spec so the 5 volts is no problem. So instead of making a seprate test crate and breadboard for it, I just plugged it into the same breadboard as the eeprom. They share the I2C bus.

I've not yet done any testing using an externally powered circuit.

The cli tool test board will include the SLG46824, SLG46826 and the SLG47004 which are all the Multi-time programmable devices. They will be powered externally and these are the devices that will be supported first.

Discussions