23 Commits

Author SHA1 Message Date
WantClue
b03045d37d
Update bm1366.h
disable debugging
2024-11-30 18:59:33 +01:00
Skot
e05839b007
Fix hashing on BM1366 (#532)
* remove erroneous ASIC baudrate change

* add calculated frequency ramp up function. uncomment set_max_baudrate
2024-11-30 10:02:29 -05:00
Skot
22cb8bf4e2
Make selftest failing non-fatal (#524)
* switched selftest fail to be non fatal

* switched to BOOT longpress to reboot after selftest

* lots and lots of error handling cleanup. <slippery slope>

* move around the DS4432U_Init() function call
2024-11-30 10:02:09 -05:00
Erik Olof Gunnar Andersson
b9126910d6
Make sure we are done writing before setting a new baudrate (#503) 2024-11-20 18:54:10 -05:00
Benjamin Wilson
488473e10e
temp sensor fixes (#484)
* temp sensor fixes

* fix emc2101 external temp sign reading

* reset self test file

* Make the emc2101 changes specific to BM1370

---------

Co-authored-by: Benjamin Wilson <admin@opensourceminer.com>
2024-11-16 20:09:32 -05:00
adammwest
df0c9ed745
add warnings for consecutive timeout responses (no rx) from the chip (#378)
* add common vars to control rx warning behavoir
* rename vars, reduce rx timout value, add warning when 20s of consecutive rx timeouts occour
* rename device to asic
* better naming of warning condition variable

* move counter variables into the ASIC source files
* move constants to defines and counters to local vars
* fix stray semicolon

Co-authored-by: Skot <skot@bitnet.cx>
2024-10-09 18:59:45 -04:00
Skot
2c41cc9255
Fix a couple missed issues from the fix_warnings PR (#393)
* move ADC_init() before start_http_server() because the UI reads the ADC
* split SYSTEM_init() into separate functions. cleaned up nvs init.
* fix my dumb INA260_init() memory leak
* SYSTEM_init_peripherals() cleanup
2024-10-09 12:52:55 -04:00
Skot
e1bf30b26e
Fix compiler warnings (#381)
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
2024-10-08 11:27:32 -04:00
adammwest
f130b05511
ASIC version mask now based on pool stratum version mask msg (#349)
* make set version mask a function call

* update name

* update init fuc to support version mask setting

* update parameter spec for bm1397

* parametrize set version rolling and update init func for BM136X +

* add default stratum mask

* update all bmchips with a new set_version_mask ASIC function which can be called in main

* update init func prototype params

* update self test to remove extra vmask call in init

* fix compiler errors

* fix compiler errors in main

* add version_mask_given bool to tell the next job to set a new version mask to the chip when a smg comes in
2024-09-26 11:30:06 -04:00
Benjamin Wilson
7b5e3ef2eb increasing delay to 100ms again 2024-09-22 21:18:58 -04:00
Benjamin Wilson
0b0881d025 decrease ramp up 2024-09-22 21:06:53 -04:00
Benjamin Wilson
a94bf8e95e increase ramp_up delay 2024-09-21 15:12:22 -04:00
Benjamin Wilson
b700c6bbf0
Fix overtemp and self tests for gamma (#343) 2024-09-20 19:30:20 -04:00
Skot
f795fc7df5 move job frequency constants to the respective ASIC include files 2024-09-18 11:03:15 -05:00
WantClue
3ee6ac25bc add frequency rampup bm1368 2024-09-06 09:56:30 +02:00
Skot
9577b1a531 add serial buffer framing fix to bm1397 2024-09-05 19:53:02 -04:00
Skot
706fadfc8c add 1370 support for resyncing the ASIC RX buffer on errors 2024-09-03 14:16:20 -04:00
Skot
29f7e0b1b2 moved send_hash_frequency() and do_frequency_ramp_up() over from esp-miner-multichip 2024-08-29 20:50:16 -04:00
Skot
edd39e0071 add frequency ramp up from S21 Pro 2024-08-17 00:26:44 -04:00
Skot
be1242ec61 added TPS546 static power offset. Increased delay for power_management_task.c to start 2024-08-16 22:32:22 -04:00
Skot
3c27ad599f crap, one more asic_response_buffer size fix 2024-08-15 19:28:13 -04:00
Skot
dd0df1ae31 asic_response_buffer size fix 2024-08-15 19:23:57 -04:00
Skot
4cd7a38b9f rebasing gamma-support on 2.1.10 2024-08-15 18:51:05 -04:00