Search found 30 matches
- Mon Apr 08, 2024 9:15 pm
- Forum: General Discussion
- Topic: #DEFINE placement
- Replies: 2
- Views: 1312
#DEFINE placement
Thought I'd put in here as it's not so much an ESP IDF question as a general C question. For the sake of making my code logical/easy to read I'd like to put some #DEFINE statements in with the gpio_config statements I have in a void pin_setup() function. Is it legitimate to have a #DEFINE at this le...
- Fri Apr 05, 2024 2:50 pm
- Forum: ESP-IDF
- Topic: Reading Pcf8574 as pins rather than 8 bit word
- Replies: 2
- Views: 1797
Re: Reading Pcf8574 as pins rather than 8 bit word
Thanks @microcontroller, I wasn't sure if there was a different way of interfacing with the pcf8574 or if I just needed to go down that route. Cheers!
- Fri Apr 05, 2024 7:11 am
- Forum: ESP-IDF
- Topic: Reading Pcf8574 as pins rather than 8 bit word
- Replies: 2
- Views: 1797
Reading Pcf8574 as pins rather than 8 bit word
I have a project that already makes use of the components from Unclerus, including the hd44780 for driving an LCD display. I need to expand my Gpio ports so I've added a discrete pcf8574 board in. Now I already have the includes in my project as it's part of the lcd setup. I can happily read from th...
- Mon Jul 17, 2023 1:21 pm
- Forum: ESP-IDF
- Topic: xQueueReceive Assert Failed
- Replies: 12
- Views: 10507
Re: xQueueReceive Assert Failed
Fab, up and running, something so simple! Thanks for the help tracking it down.
- Mon Jul 17, 2023 11:33 am
- Forum: ESP-IDF
- Topic: xQueueReceive Assert Failed
- Replies: 12
- Views: 10507
Re: xQueueReceive Assert Failed
Nevermind, turned out I only needed to edit two lines in my platform.io to get that. Hurray for being able to google whilst waiting for the kettle to boil! Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0 register dump: PC : 0x400d9daa PS : 0x00060c30 A0 : 0x8...
- Mon Jul 17, 2023 11:25 am
- Forum: ESP-IDF
- Topic: xQueueReceive Assert Failed
- Replies: 12
- Views: 10507
Re: xQueueReceive Assert Failed
Will do but it will be later on I'm afraid as I'll have to read up on how to do that!
Thank you for all this help .
Thank you for all this help .
- Mon Jul 17, 2023 11:02 am
- Forum: ESP-IDF
- Topic: xQueueReceive Assert Failed
- Replies: 12
- Views: 10507
Re: xQueueReceive Assert Failed
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0 register dump: PC : 0x400d9daa PS : 0x00060c30 A0 : 0x800d61b4 A1 : 0x3ffb4700 A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x00000000 A6 : 0x3ffb4a20 A7 : 0x00000004 A8 : 0x3ffaeb58 A9 : 0x3ffaeb58 A10 ...
- Mon Jul 17, 2023 10:47 am
- Forum: ESP-IDF
- Topic: xQueueReceive Assert Failed
- Replies: 12
- Views: 10507
Re: xQueueReceive Assert Failed
Thanks, I've now added this to the top of app_main() red_line_queue = xQueueCreate (10, sizeof(unsigned int)); and we're onto a new error now! (facepalm). Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Wondering if I need to scrap all my code for this and copy-past...
- Mon Jul 17, 2023 10:17 am
- Forum: ESP-IDF
- Topic: xQueueReceive Assert Failed
- Replies: 12
- Views: 10507
Re: xQueueReceive Assert Failed
Tried creation through both xQueuehandle and xQueueCreate and not had any change with either approach sadly.
- Mon Jul 17, 2023 9:44 am
- Forum: ESP-IDF
- Topic: xQueueReceive Assert Failed
- Replies: 12
- Views: 10507
Re: xQueueReceive Assert Failed
Well that might be the root of my problem then.... Surprised it compiled without that! I'll make the amendments later and see if that sorts it. Thanks.