Describe the bug
The function setup_remap, which is called from this line in mcu.py does not exist in Qiling. Furthermore, the type remap isn't used in any microcontroller's environment dictionary (e.g. stm32f401.py).
Traceback (most recent call last):
File "/mnt/data/Temp/aaa/emulation/test.py", line 19, in <module>
main()
File "/mnt/data/Temp/aaa/emulation/test.py", line 13, in main
ql = Qiling(["hello_gpioA.hex"], archtype="cortex_m", ostype="mcu", env=test_env)
File "/mnt/data/Temp/aaa/emulation/qiling/core.py", line 184, in __init__
self.loader.run()
File "/mnt/data/Temp/aaa/emulation/qiling/loader/mcu.py", line 133, in run
self.load_env()
File "/mnt/data/Temp/aaa/emulation/qiling/loader/mcu.py", line 121, in load_env
self.ql.hw.setup_remap(alias, base, size, info=f'[{name}]')
TypeError: 'NoneType' object is not callable
Describe the bug The function
setup_remap
, which is called from this line in mcu.py does not exist in Qiling. Furthermore, the typeremap
isn't used in any microcontroller's environment dictionary (e.g. stm32f401.py).In my opinion the following code block is dead code and can be deleted:
If you wish I can create a PR.
Sample Code
Output:
Additional context sample.zip