@dc42 Thanks!!
Latest posts made by Matias
-
Linear-Analog Error in Expansion Board
Hi!
I connected a sensor to the Expansion 3HC (FW 3.3RC3) but after sending the configuration the board was reseting:M308 S3 P"1.temp2" Y"linear-analog" F1 B0 C300 A"Linear"
As it works if I set the type to "pt1000", it looks like a bug related with "linear-analog" but I am worried it may be something missing in the configuration as I have to change the 'LinearAnalogSensor.cpp' to make it work.
With this configuration, the value of 'thermistorInputChannel' was crazy, so I changed the Configure and Poll methods:GCodeResult LinearAnalogSensor::Configure(const CanMessageGenericParser& parser, const StringRef& reply) { bool seen = false; if (!ConfigurePort(parser, reply, PinAccess::readAnalog, seen)) { return GCodeResult::error; } if (parser.GetFloatParam('B', lowTemp)) { seen = true; } if (parser.GetFloatParam('C', highTemp)) { seen = true; } if (parser.GetBoolParam('F', filtered)) { seen = true; } if (seen) { CalcDerivedParameters(); adcFilterChannel = Platform::GetAveragingFilterIndex(port); if (adcFilterChannel >= 0) { Platform::GetAdcFilter(adcFilterChannel)->Init((1u << AnalogIn::AdcBits) - 1); } } else { CopyBasicDetails(reply); reply.catf(", %sfiltered, range %.1f to %.1f", (filtered) ? "" : "un", (double)lowTemp, (double)highTemp); } return GCodeResult::ok; } void LinearAnalogSensor::Poll() { const volatile ThermistorAveragingFilter *tempFilter = Platform::GetAdcFilter(adcFilterChannel); int32_t tempReading; if (filtered) { if (!tempFilter->IsValid()) { SetResult(TemperatureError::notReady); } tempReading = tempFilter->GetSum()/(tempFilter->NumAveraged() >> AdcOversampleBits); } else { tempReading = tempFilter->GetLastReading() << AdcOversampleBits; } SetResult((tempReading * linearIncreasePerCount) + lowTemp, TemperatureError::success); }
Is there something I am missing in the M308?
Thanks! -
RE: CRC Error Duet3
Thanks for answering so fast. Now it working, I just recompiled after cleaning the project and removed the old binary file.
If someone has the same problem, to compare the binaries I used:- To edit (remove the last 4 bytes): https://hexed.it/
- Calculate the CRC: https://simplycalc.com/crc32-file.php
-
CRC Error Duet3
Hi!
Hope you can help me. I am compiling the RepRapFirmware for the Duet 3 6HC. The debugging is working but when I build the release version, the status LED indicates an CRC error (which is just checked in RELEASE version). I tried with the 3.2.2 release code (without any modification) and I am getting the same error.
I am building on Windows with the crc32appender in the PATH that is being called without any problem.
Let me know if there is something else I can provide!
Is there something I am missing?