[riot-notifications] [RIOT-OS/RIOT] cpu/stm32l1: fix issue when writing NULL bytes to eeprom (#11314)

Francisco notifications at github.com
Mon Apr 15 09:30:21 CEST 2019


fjmolinas commented on this pull request.



> +}
+
+static void _write_byte(uint32_t addr, uint8_t data)
+{
+    uint32_t tmp = 0;
+    uint32_t data_mask = 0;
+
+    /* Check the parameters */
+    assert(addr <= EEPROM_SIZE + EEPROM_START_ADDR);
+
+    /* Wait for last operation to be completed */
+    _wait_for_pending_operations();
+
+    /* stm32l1xxx cat 1, 2 &3 can't write NULL bytes RefManual p78*/
+    if(data != (uint8_t) 0x00)
+    {

yep, addressed!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11314#discussion_r275234743
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190415/a24d813f/attachment.html>


More information about the notifications mailing list