Other Parts Discussed in Thread: HALCOGEN
Hi,
While trying to program eeprom by referring the functions in bl_flash.c and .h files.
there is a function Flash_Program_Check() that check every program or erase operations whether that are valid or not by comparing
the variable taken by parameter and memory which are stored.
Now this function take source memory adress as uint32_t paramater,
and if I want to save a variable uint8_t, I have to do:
uint8_t variable = 0x55;
then Flash_Program_Check( 0xF0200000, (uint32_t)&variable, sizeof(variable) ) ;
After that, program write epprom successfully and then starting to check
by comparing value of *( 0xF0200000 ) = 0x55FFFFFF with content of address in the ram of variable like *(0x80...)= 0x55XXXX(anything can be. this is ram)
so comparing result always fails.
How should I compare source addres of my variable by masking only its adress ? I am not sure where I will mask
For example, in case above, 0x55 took place at first but next time maybe it will take place in the middle or at the end.
I want to use fee driver but I cant use bl_flash and fee driver functions together somehow, bl_flash functions crashes in runtime if fee driver enables in halcogen.
Also, If I enter No_Of_Bytes parameter less than 4, this will cause another bug at bytes counting in it.