]> granicus.if.org Git - esp-idf/commit
UART driver: Fix crash in ISR due to "UART" static array moved to flash
authorAngus Gratton <angus@espressif.com>
Tue, 22 Nov 2016 23:47:40 +0000 (10:47 +1100)
committerAngus Gratton <angus@espressif.com>
Tue, 22 Nov 2016 23:58:03 +0000 (10:58 +1100)
commit1d05f41a70583a4631d6a7520a8772b216df05f6
treee72d2fab984908b332bb3f92a779094255007691
parentd467eabadbc90aa0703d3e131e5751f9d09ebdf8
UART driver: Fix crash in ISR due to "UART" static array moved to flash

Ref: http://esp32.com/viewtopic.php?f=13&t=546&sid=76ff371ae2b259441a2cf355e96d74b9#p2275

This is a really subtle bug, gcc noticed the UART array elements are read-only so
implicitly moved the elements to .rodata as if it was const. However
this array is accessed from the UART ISR, so has to be in IRAM or DRAM.
components/driver/uart.c