HI
First, please excuse my English. I'm French.
I'm working with Diablo16 display mainly in Visi. The issue I discribe here is not specific to a display but to all Diablo16 (I guess).
I'm preparing myself to run some of the code functions from SD card as I will run out of code space while still have lot of ram spaces. I will use file_loadfunction as loaded function can be use like any "normal" function.
the goal then is to load the function at the beginning of Main, and never "free" it as it will be used all the time.
I have read a lot of info from the forum and was not able to found clear tips to guide me to solve my issue:
I decide to test this "function export thing" with an I2C general function that have 5 parameters (address / sub-address / nbr of byte to write or read / pointer to buffer / flags)
When Inside the code, this function works perfectly and forever.
FYI this function is not recursive
I then exported this function into a 4FN file, load it at the beginning of main, AND BEFORE to initialize any timer (this is known to cause problem)
After being loaded, the function is supposed to behave as "normal"
However, the display crash with an address trap error, erratically between 1 second and 1 minute. during this delay the function is called many times (at least 3 times per seconds) and behave as expected.
What should I take care using file_loadfunction as the loaded function itself is good and work.
What can create this erratic fault?
is my understanding with the timer is corrects? should I stop the timers before each call of the function or the timer issue is known to be only with file_loadfunction?
I don't get the point yet. I would need some help here.
Many thanks
Franck.
First, please excuse my English. I'm French.
I'm working with Diablo16 display mainly in Visi. The issue I discribe here is not specific to a display but to all Diablo16 (I guess).
I'm preparing myself to run some of the code functions from SD card as I will run out of code space while still have lot of ram spaces. I will use file_loadfunction as loaded function can be use like any "normal" function.
the goal then is to load the function at the beginning of Main, and never "free" it as it will be used all the time.
I have read a lot of info from the forum and was not able to found clear tips to guide me to solve my issue:
I decide to test this "function export thing" with an I2C general function that have 5 parameters (address / sub-address / nbr of byte to write or read / pointer to buffer / flags)
When Inside the code, this function works perfectly and forever.
FYI this function is not recursive
I then exported this function into a 4FN file, load it at the beginning of main, AND BEFORE to initialize any timer (this is known to cause problem)
After being loaded, the function is supposed to behave as "normal"
However, the display crash with an address trap error, erratically between 1 second and 1 minute. during this delay the function is called many times (at least 3 times per seconds) and behave as expected.
What should I take care using file_loadfunction as the loaded function itself is good and work.
What can create this erratic fault?
is my understanding with the timer is corrects? should I stop the timers before each call of the function or the timer issue is known to be only with file_loadfunction?
I don't get the point yet. I would need some help here.
Many thanks
Franck.
Comment