How can I view a defined value at build time #1864
-
Hi all I'm currently having issues with the Virtual EEPROM not working for a STM32G0B1CBT with 128Kb flash How do we go about debugging to print these values out? I have tried using #error and Serial print, to no avail. Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
#warning in the eeprom library code. |
Beta Was this translation helpful? Give feedback.
-
Well in stm32_eeprom.c add: Then after Anyway you will not have exact value as it can depends on ll function, example:
If you want exact vaule then simply add a method to get it in the c file and export it then display it with Serial at sketch level. |
Beta Was this translation helpful? Give feedback.
Well in stm32_eeprom.c add:
#include "utils.h"
Then after
FLASH_END
definition:#pragma message("The value of FLASH_END: " XSTR(FLASH_END))
Anyway you will not have exact value as it can depends on ll function, example:
If you want exact vaule then simply add a method to get it in the c file and export it then display it with Serial at sketch level.