Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Intro

This is the page for the ZeroPilot Validation image.

Useful ZP 3.0 Documentation:

ZP3 Tester Board:

Testing Documentation

Step 1: Visual Inspection of Board

todo: include a list of things to lookout for

⭐ Use DMM to make sure things are not shorted

Step 2: Supply Power (lookout for any smoking)

Step 3: Flash Firmware (make sure you can flash firmware)

todo: create flashing guide

todo: figure out how to flash

Step 4: Proceed through testing functionality of each component - overview included below

Channel

Goal/Scope

Proposed Testing Strategy

Main Channels

SPI (Eric)

Tester Code (Arduino):

Target Code (ZP3): (tick)

Additional Notes:

Can transmit and receive data from and to a device.

Can use chip select/enable line to selectively communicate with multiple peripherals.

SPI loopback connection should be able to test that transmit & receive work. (connect MOSI to MISO) and send random values through it, receiving what is sent. The sent value and received value should match if the SPI is working properly.

UART (ethan)

Tester Code (Arduino):

Target Code (ZP3): (tick)

Additional Notes:

Can transmit and receive data from and to a device.

Send UART message from testing board and see if target can echo the message back to the EVB.

I2C (ethan)

Tester Code (Arduino):

Target Code (ZP3): (tick)

Additional Notes:

Can transmit and receive data from and to a device.

Connect a simple I2C peripheral to the testing board, transmit data to target. Make target do something if data is received, and return data back to test board.

todo: find an unimportant i2c sensor/device to steal for bringup testing.

PWM (Eric)

Target Code (ZP3):

Additional Notes:

None.

PWM DMA (Ethan)

Target Code (ZP3): (tick)

Additional Notes:

Figure out how to work with an oscilloscope.

Can configure the PWM TIMS to generate PWM signals.

Basic: Configure PWM settings. Connect to oscilloscope. Inspect/analyze PWM signal.

DMA: Configure PWM settings (using DMA method). Connect to oscilloscope. Inspect/analyze PWM signal. (Ethan)

GPIO (ethan)

Tester Code (Arduino):

Target Code (ZP3): (tick)

Additional Notes:

None.

Can toggle on and off.

Connect GPIO pins of testing board to ZP3 board. ZP3 pulls pins high/low and testing board reads pins to see if they are the right state. Possibly do the other way around too.

ADC (ethan)

Tester Code (Arduino):

Target Code (ZP3):

Additional Notes:

Still unsure how to test this.

Varying analog input is converted to a digital binary output.

Connect potentiometer to ADC in channel. Vary voltage input. Output binary values to terminal?

MicroSD (eric)

Target Code (ZP3): (tick)

Additional Notes:

None.

Read/Write data to the SD Card.

Write:

Create text file, write to the text file, plug the SD card into a computer and confirm that the test text file has been created and written to.

Read:

Read from the test file. Output data to terminal.

OR

Attempt to read known data from a text file. Pass through an assertion or if statement.

On-board LEDs (eric)

Target Code (ZP3):

Additional Notes:

None.

Can light up.

Run simple blink test code on each on-board LED.

MISC

GPIO Interlock

Pins:

  • PF2 (GPIO_IL_D) (tick)

  • PF3 (GPIO_IL_C) (tick)

  • PG6 (GPIO_IL_B) (tick)

  • PG7 (GPIO_IL_A) (tick)

GPIO interlock, should be read high (3V3) to ensure interface board is properly connected.

Read the pins.

uSD_Detect (tick)

Pin: PF11

Pin low when SD card is inserted and high when SD card slot is vacant

This functionality was not confirmed and should be checked.

Read pin (should be low when SD card is inserted and high when SD card is empty)

PWR_SENSE

Pin: PA4 (ADC2_IN9)

Measures the voltage available to the system after power filter

Calculated using V = PWR_SENSE * 18.28395 (280k, 16.2k voltage divider)

DMM

VBAT_B_SENSE

Pin: PC2 (ADC2_IN3)

Measures the voltage of battery B

Calculated using:

V = VBAT_B_SENSE * 18.28395 (280k, 16.2k voltage divider)

DMM

VBAT_A_SENSE

Pin: PB1 (ADC2_IN16)

Measures the voltage of battery A

Calculated using:

V = VBAT_A_SENSE * 18.28395 (280k, 16.2k voltage divider)

DMM

ZP3 to Arduino MEGA Pin Mapping

Test 1

Test 2

TBD

Test

Device

ZP Pin

ZP Port

MEGA Pin

MEGA Port

LPUART1_RX

(66)-PB10

LPUART1_RX

 (D1)-TX0 / PE1

TXD0

LPUART1_TX

(67)-PB11

LPUART1_TX

 (D0)-RX0 / PE0

RXD0

USART1_TX

(124)-PG9

USART1_TX

 (D18)-TX1 / PD3

TXD1

USART1_RX

(125)-PG10

USART1_RX

 (D19)-RX1 / PD2

RXD1

USART2_TX

(35)-PA2

USART2_TX

 (D16)-TX2 / PH1

TXD2

USART2_RX

(36)-PA3

USART2_RX

 (D17)-RX2 / PH0

RXD2

USART3_TX

(77)-PD8

USART3_TX

 (D14)-TX3 / PH1

TXD3

USART3_RX

(78)-PD9

USART3_RX

 (D15)-RX3 / PH0

RXD3

UART4_TX

(33)-PA0

UART4_TX

 (D1)-TX0 / PE1

TXD0

UART4_RX

(34)-PA1

UART4_RX

 (D0)-RX0 / PE0

RXD0

ADC1_IN11

(41)-PA6

ADC12_IN11

 

ADC1_IN12

(42)-PA7

ADC12_IN12

 

ADC1_IN15

(43)-PB0

ADC12_IN15

 

SPI1_NSS

(62)-PE12

SPI1_NSS

 (D53) / PB0

SPI-SS

SPI1_SCK

(63)-PE13

SPI1_SCK

 (D52) / PB1

SPI-SCK

SPI1_MISO

(64)-PE14

SPI1_MISO

 (D50) / PB3

SPI-CIPO

SPI1_MOSI

(65)-PE15

SPI1_MOSI

 (D51) / PB2

SPI-COPI

SPI2_NSS

(114)-SD0

SPI2_NSS

 (D53) / PB0

SPI-SS

SPI2_SCK

(115)-PD1

SPI2_SCK

 (D52) / PB1

SPI-SCK

SPI2_MISO

(75)-PB14

SPI2_MISO

 (D50) / PB3

SPI-CIPO

SPI2_MOSI

(76)-PB15

SPI2_MOSI

 (D51) / PB2

SPI-COPI

GPIO_Output

(45)-PB2

GPIO_1

 A0

x

GPIO_Output

(47)-PF12

GPIO_2

 A1

x

GPIO_Input

(50)-PF13

GPIO_3

 A2

x

GPIO_Output

(51)-PF14

GPIO_4

 A3

x

GPIO_Output

(52)-PF15

GPIO_5

 A4

x

GPIO_Output

(117)-PD3

GPIO_6

 A5

x

GPIO_Output

(118)-PD4

GPIO_7

 A6

x

GPIO_Output

(119)-PD5

GPIO_8

 A7

x

GPIO_Output

(122)-PD6

GPIO_9

 A8

x

GPIO_Output

(123)-PD7

GPIO_10

 A9

x

I2C1_SDA

(127)-PG13

I2C1_SDA

 (D20) / PD1

SDA

I2C1_SCL

(128)-PG14

I2C1_SCL

 (D21) / PD0

SCL

I2C2_SDA

(10)-PF0

I2C2_SDA

 (D20) / PD1

SDA

I2C2_SCL

(11)-PF1

I2C2_SCL

 (D21) / PD0

SCL

I2C3_SCL

(26)-PC0

I2C3_SCL

 (D20) / PD1

SDA

I2C3_SDA

(27)-PC1

I2C3_SDA

 (D21) / PD0

SCL

Remaining Tasks:

  1. Figure out what to set the HSE - High Speed External Oscillator How to use HSE STM32CubeMx

    • RCC → HSE → Crystal/Ceramic Resonator (figure out the desired frequency)

  2. Write firmware driver for each functionality for testing.

  3. Flashing onto ZP3 (Message aidan bowers and ask if he has successfully flashed the zeropilot pcb with open ocd or if it would be easier to use the ST-link and how to connect).

  4. Test the testing code by performing bring-up on a zp3 board.

  5. Create user friendly confluence document with clear instructions.

MISC:

https://www.youtube.com/watch?v=dRKSs3wms4U&ab_channel=Phil%E2%80%99sLab

  • No labels