Hello, i succeeded in Module debugging using IAR toolchain on ARM M33, the step i followed are listed below:
- from the Module prj generate the Module.bin (raw binary file) and Module.out (ELF file with debugging symbols), remember to disable all compiler optimizations. Read the Module.out (the ELF) with readelf Linux cmd or also can read the ELF on some website offering the readelf capability
2) from the Module Manager IAR prj Options->Debugger->Images enable the checkbox "Download extra image" enter the Offset 0x34 (from the ELF) and enable the checkbox "Debug info only"
3) Using IAR debugger flash on the target both the Module Manager main application and the Module PIC & PID library, from now on it possible to place a breakpoint in module code.
Please consider the above procedure works if module is "executed in place" calling txm_module_manager_in_place_load() because in that case the module is executed from the same flash mem address for which it was compiled (see the linker script).
While, loading the Module from file, instead of flashing it together with the ModuleManager app, (eg. calling txm_module_manager_file_load()) load and execute the module from SDRAM so it will end up in a random SDRAM address different than the one specified in the Module linker scrip, in that case the Module debug does not work for me.
Hope it helps, regards