Sorry for the lack of reply! My fault. The USE_INT0S flag is actually built into the normal SimonK firmware. That has nothing to do with our modifications. The only files we really touched are the ESC configuration files for the BlueESC and some change in tgy.asm, which are only compiled if you specify the
SIMPLE_I2C = 1 in the configuration file. Because of that, you’re basically building a stock version of the tgy firmware that has the
MOT_REVERSE flag set to true to allow bidirectional operation.
I would guess that the
bs_nfet.inc configuration file was built for a different version of that ESC and they aren’t completely compatible. Could also be a bug.
Our version of tgy is a bit behind the master branch. If you look at that code, it has been updated with this change:
From current tgy master in bs_nfet.inc:
.equ F_CPU = 16000000
.equ USE_INT0 = 1
.equ USE_I2C = 0 ; We could, but FETs are on the I2C ports
.equ USE_UART = 0
.equ USE_ICP = 0
I hope this helps! If not, I’d recommend opening an issue on the main tgy repository (http://github.com/sim-/tgy) and I’m sure Simon will be able to answer this much more thoroughly.