Lua Debug Registers
Name Start Address Type Access
LUA_DEBUG_ENABLE 6020 UINT32 R/W
LUA_DEBUG_NUM_BYTES 6022 UINT32 R
LUA_DEBUG_DATA 6024 BYTE R
LUA_DEBUG_ENABLE
- Address: 6020
Write 1 to this register to enable debugging.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
  • This register uses system RAM. The maximum RAM is 64KB. For more information, see 4.4 RAM
  • T8:
  • T7:
LUA_DEBUG_NUM_BYTES
- Address: 6022
The number of data bytes in the debug buffer waiting to be read.
  • Data type: UINT32  (type index = 1)
  • Read-only
  • T8:
  • T7:
LUA_DEBUG_DATA
- Address: 6024
Read debug data from here. This register is a buffer.
  • Data type: BYTE  (type index = 99)
  • Read-only
  • This register is a Buffer Register
  • T8:
  • T7: