Fix SPI interface #48

Closed
opened 2024-03-14 15:16:04 +08:00 by fsagbuya · 0 comments
Collaborator

Error log:

nix-shell:~/pyfastservo]# python3 initialize.py 
DEV ID: 0x5340
Si5340 OUTx_PDN CLK3: 0x1
Si5340 OUTx_FORMAT CLK3: 0x204
Si5340 OUTx_AMPL CLK3: 0x59
Si5340 OUTx_CM CLK3: 0x1
Numerator buffer: 0x00
Numerator buffer: 0x00
Numerator buffer: 0x00
Numerator buffer: 0x60
Numerator buffer: 0x22
Numerator buffer: 0x00
Denominator buffer: 0x00
Denominator buffer: 0x00
Denominator buffer: 0x00
Denominator buffer: 0x00
Traceback (most recent call last):
  File "/root/pyfastservo/initialize.py", line 30, in <module>
    main()
  File "/root/pyfastservo/initialize.py", line 26, in main
    adc.main()
  File "/root/pyfastservo/adc.py", line 309, in main
    main_adc_config(0x811F)
  File "/root/pyfastservo/adc.py", line 54, in main_adc_config
    spi.open(MAIN_ADC_BUS, MAIN_ADC_DEVICE)
FileNotFoundError: [Errno 2] No such file or directory

Might need to configure device tree to include the following:
https://github.com/elhep/Fast-Servo-Firmware/blob/master/builds/fast_servo_petalinux/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

Error log: ``` nix-shell:~/pyfastservo]# python3 initialize.py DEV ID: 0x5340 Si5340 OUTx_PDN CLK3: 0x1 Si5340 OUTx_FORMAT CLK3: 0x204 Si5340 OUTx_AMPL CLK3: 0x59 Si5340 OUTx_CM CLK3: 0x1 Numerator buffer: 0x00 Numerator buffer: 0x00 Numerator buffer: 0x00 Numerator buffer: 0x60 Numerator buffer: 0x22 Numerator buffer: 0x00 Denominator buffer: 0x00 Denominator buffer: 0x00 Denominator buffer: 0x00 Denominator buffer: 0x00 Traceback (most recent call last): File "/root/pyfastservo/initialize.py", line 30, in <module> main() File "/root/pyfastservo/initialize.py", line 26, in main adc.main() File "/root/pyfastservo/adc.py", line 309, in main main_adc_config(0x811F) File "/root/pyfastservo/adc.py", line 54, in main_adc_config spi.open(MAIN_ADC_BUS, MAIN_ADC_DEVICE) FileNotFoundError: [Errno 2] No such file or directory ``` Might need to configure device tree to include the following: https://github.com/elhep/Fast-Servo-Firmware/blob/master/builds/fast_servo_petalinux/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
sb10q closed this issue 2024-03-15 11:58:49 +08:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-servo#48
No description provided.