Hi Petteri
Thank you for your reply and for providing such an excellent project for everyone to use! I've been using nanopb 0.3.9 but this is the first time using 0.4.3.
I tried cleaning and rerunning the project. However, it is still crashing on Line 17 in pb_common.h
word0 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index]);
I'm using a PIC32MX270F256B and have had no issues prior to 0.4.3 (different projects but the same function calls).
My code snippet is below:
SubPacket msg = SubPacket_init_zero;
uint8_t buffer[128];
pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer));
bool status;
const char text[8] = "hi\n";
msg.dest = UINT32_MAX; // Broadcast address
msg.which_payload = SubPacket_data_tag;
memcpy(&msg.data.payload.bytes, &text, sizeof(text));
msg.data.payload.size = strlen(msg.data.payload.bytes);
msg.data.typ = Data_Type_CLEAR_TEXT;
status = pb_encode(&stream, SubPacket_fields, &msg);
Obviously, I'm doing something dumb... just not sure what.
-c