2020-08-04 03:32 AM
I am testing the RAM code in assembly, function name is ML_RAMTest and it is ended with instruction .size ML_RAMTest, .-ML_RAMTest. It is compiling but encounter with the Error: .size expression for RAMTest does not evaluate to a constant.
Can you please provide the solution for it.
2020-08-04 05:10 AM
Probably the symbol ML_RAMTest is misspelled or undefined. You can find a good example in the startup code:
.section .text.Reset_Handler
.weak Reset_Handler
.type Reset_Handler, %function
Reset_Handler:
...
.size Reset_Handler, .-Reset_Handler
2020-08-04 07:13 AM
Thank you for your reply, I have rechecked the code now the error is resolved.