hydrabus / hydrafw

HydraBus HydraFW official firmware for open source multi-tool for anyone interested in learning/developping/debugging/hacking/Penetration Testing for basic or advanced embedded hardware
https://hydrabus.com/hydrabus-1-0-specifications
Apache License 2.0
365 stars 92 forks source link

change frequency clock spi #144

Closed Alfa16bravo closed 1 year ago

Alfa16bravo commented 1 year ago

hello, it is impossible for me to change the frequency in the spi module, I always get invalid frequency.

spi Device: SPI1 GPIO resistor: floating Mode: master Frequency: 320khz (650khz, 1.31mhz, 2.62mhz, 5.25mhz, 10.50mhz, 21mhz, 42mhz) Polarity: 0 Phase: 0 Bit order: MSB first spi1> frequency 10.50mhz Invalid value. spi1> frequency 10.50 Invalid frequency. spi1> frequency Missing argument. spi1> help frequency Bus frequency spi1>

bvernoux commented 1 year ago

You shall enter the unit For 10.5mhz you shall write 10.5m for the spi frequency Unit available are k for KHz, m for MHz or no unit for Hz All is described in the wiki https://github.com/hydrabus/hydrafw/wiki/HydraFW-SPI-guide#protocol-configuration-syntax-description

Alfa16bravo commented 1 year ago

It's good thanks you.