3文章/ 0
Last post
Wouter
Offline
Last seen:6 years 5 months ago
Expert
加入:2014-01-29 19:56
main_func

Dear Dialog,

The comments above the main_func tell me that it is called directly after the booting process. But is it really the first function that is called? I'm trying to fully understand the Dialog chip so I created a application with the main_func that toggles a GPIO and started with a jump_table that is filled with zeros and on position 1 the main_func.

I can compile everything and the SystemInit function from the proximity example is called. Than it jumps to the main of the Dialog code and it never reaches main_func. So what is absolutely minimum needed to get this working?

Thanks in advance

WT_Dialog (not verified)
Hi Wouter,

Hi Wouter,
Thanks for your comments.
Did you change the structure of the jump_table? the table is used to define some call back functions which are called by other functions in ROM. So the positions of these function in jump_table should not be changed.

Wouter
Offline
Last seen:6 years 5 months ago
Expert
加入:2014-01-29 19:56
嗨WT,

嗨WT,

It is working now. The jump_table was optimized out. If I replace all the functions with the dummy function except for the main_func I can compile with the correct scatterfile, project settings and boot files.