Are there any examples showing how to exclude ROM code properly?
I'd like to exclude __EXCLUDE_ROM_CUSTS1__ and __EXCLUDE_ROM_ATTM_DB_128__ as I seem to be hitting a breakpoint inside attm_sv_create_db_128() after a connect, disconnect, and then reconnect that I can't debug easily.
Keywords:
Device:
Hi mbwjr12,
Please follow the steps below:
1. Navigate to \sdk\common_project_files\misc SDS path and open da14531_symbols.txt in a text editor.
2.寻找__EXCLUDE_ROM_CUSTS1__ __EXCLUDE_ROM_ATTM_DB_128__
3. Comment all the related functions with cust1 and attm 128 datadase.
4. Save and close the da14531_symbols.txt file.
5. Open the “Options for Target” in the Keil IDE.
6. Navigate to “C/C++” tab. Here you can define the preprocessor symbols.
7. Define the preprocessor symbols as below:
8. Rebuilt you project.
9. Try to modify custs1.c custs1_task.c from your firmware to run them from sysRAM instead of ROM.
Please let me know if the steps above are working! Your feedback would be more than welcome!
Thanks, PM_Dialog
Hello,
This appears to be working for me in Keil. Are the steps the same for Eclipse?
It appears the breakpoint I am hitting is in other ROM code between those functions, but I will ask a separate question about that.
Thanks,
Mike
Hi mbwjr12,
Glad that the steps are working in Keil IDE and many thanks for your feedback. If you found the procedure described useful, please mark it as “accepted” for the other forum user who are interested in excluding the custs1.
Just saw the follow up tickets that you raised. Let me check it and I will get back to you in your new forum thread (links is provided below).
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/excluding-functions-rom-eg-excluderom
Thanks, PM_Dialog