- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
11-03-2015 02:49 AM
The file ezradio_receive_plugin.c contains function ezradioHandleReceivePlugin that calls ezradio_fifo_info(EZRADIO_CMD_FIFO_INFO_ARG_FIFO_RX_BIT, NULL).
As we can see the second parameter is NULL. Now let's see the code of the ezradio_fifo_info:
void ezradio_fifo_info(uint8_t fifo, ezradio_cmd_reply_t *ezradioReply)
/* EZRadio command buffer */
ezradioCmd = EZRADIO_CMD_ID_FIFO_INFO;
ezradioCmd = fifo;
ezradioReply->FIFO_INFO.RX_FIFO_COUNT = ezradioCmd;
ezradioReply->FIFO_INFO.TX_FIFO_SPACE = ezradioCmd;
I think it will be better if ezradio_fifo_info will check the ezradioReply for NULL before using.
Solved! Go to Solution.
11-05-2015 07:07 AM
You're right. It probably didn't crashed, because memory address 0x0 is the flash, and you can't just write it.
Thanks for the report, I informed the developers.