mirror of https://github.com/Ralim/IronOS.git
Compare commits
4 Commits
51f698f664
...
1ba8c85bc6
Author | SHA1 | Date |
---|---|---|
Ben V. Brown | 1ba8c85bc6 | |
discip | ad15a53cd9 | |
DSikes | ac0cd2a61d | |
Ben V. Brown | b5bf6ecacd |
|
@ -39,6 +39,8 @@ Officially the bootloader on the devices only works under Windows (use the built
|
|||
7. If it didn't work the first time, try copying the file again without disconnecting the device, often it will work on the second shot.
|
||||
8. Disconnect the USB and power up the device. You're good to go.
|
||||
|
||||
If you get a message when copying: "Are you sure you want to move this file without its properties?" then this can cause an issue where the iron thinks that the file has finished copying before it actually has and can cause a .ERR file. Since this dialog prompt is caused by copying a file from NTFS to FAT (the iron's filesystem) in windows, you can fix this by formatting a thumbdrive as FAT32 and then storing the hex file on that before copying the file to the iron. As there will be no NTFS properties on the file when stored on a FAT32 filesystem, there will be no prompt, and the copy will then proceed normally.
|
||||
|
||||
For the more adventurous out there, you can also load this firmware onto the device using an SWD programmer, for easier installation follow the guide at the end of this document.
|
||||
|
||||
On the USB port, `USB_D+` is shorted to `SWDIO` and `USB_D-` is shorted to `SWCLK` so debugging works without disassembly (attach while staying in the bootloader). Installing [IronOS-dfu](https://github.com/Ralim/IronOS-dfu) is recommended as it allows reliable flashing of binary files with [dfu-util](http://dfu-util.sourceforge.net/).
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
#define POWER_LIMIT_STEPS 5
|
||||
#define OP_AMP_GAIN_STAGE OP_AMP_GAIN_STAGE_TS100
|
||||
#define TEMP_uV_LOOKUP_HAKKO
|
||||
|
||||
#define ACCEL_LIS_CLONE 1
|
||||
#define HARDWARE_MAX_WATTAGE_X10 1000
|
||||
#define TIP_THERMAL_MASS 65 // X10 watts to raise 1 deg C in 1 second
|
||||
#define TIP_RESISTANCE 75 // x10 ohms, 7.5 typical for ts100 tips
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* Author: Ralim
|
||||
*/
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "LIS2DH12.hpp"
|
||||
#include "cmsis_os.h"
|
||||
#include "configuration.h"
|
||||
#include <array>
|
||||
|
||||
static const ACCEL_I2C_CLASS::I2C_REG i2c_registers[] = {
|
||||
{ LIS_CTRL_REG1, 0x17, 0}, // 25Hz
|
||||
|
@ -51,9 +51,11 @@ bool LIS2DH12::detect() {
|
|||
}
|
||||
|
||||
bool LIS2DH12::isClone() {
|
||||
#ifdef ACCEL_LIS_CLONE
|
||||
uint8_t id = 0;
|
||||
if (ACCEL_I2C_CLASS::Mem_Read(LIS2DH_I2C_ADDRESS, LIS2DH_WHOAMI_REG, &id, 1)) {
|
||||
return (id == LIS2DH_CLONE_WHOAMI_ID);
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
Loading…
Reference in New Issue