Hmm, that's a tricky one. Since you have the build yourself you could look in the listing file, find the address of the ioBuffer variable, and then peek to see what's filling up the IO buffer.
var IOBUFFERADDR = 0x200xxxxx;
// check gen/platform_config.h and set IOBUFFERMASK correctly
var IOBUFFERMASK = 127;
for (var i=0;i<=IOBUFFERMASK;i++) {
print(peek8(IOBUFFERADDR*i+5)&63);
}
Hopefully you'll see a lot of one type of number, which you could then compare with peek8(E.getAddressOf(Serial1)+3) - the actual numbers are from IOEventFlags in jsdevices.h
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hmm, that's a tricky one. Since you have the build yourself you could look in the listing file, find the address of the
ioBuffer
variable, and then peek to see what's filling up the IO buffer.Hopefully you'll see a lot of one type of number, which you could then compare with
peek8(E.getAddressOf(Serial1)+3)
- the actual numbers are fromIOEventFlags
injsdevices.h