CYW43907 MPU - Memory Protection Unit

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NiMc_1688136
Level 5
Level 5
10 sign-ins 50 questions asked 10 solutions authored

Is there any example code on working with the MPU in the CYW43907? The datasheet documentation mentions 8 different MPU regions.

I have found a weird scenario where string literals used to generate JSON messages became corrupt after many hours of running without error. I am not sure if they are being overwritten in SRAM or what. With normal MCU's constants could not be written to directly but when executing from SRAM with the CYW43907, everything is accessible. The device built correct JSON strings after a power cycle.

Observed behavior

"deviceType": "Sensor", "ype": "555555", "status": "Ok"

Expected behavior

"deviceType": "Sensor", "deviceID": "555555", "status": "Ok",

cJSON_AddItemToObject(deviceStatus, "deviceType", cJSON_CreateString("Sensor"));

cJSON_AddItemToObject(deviceStatus, "deviceId", cJSON_CreateString(getID_Str(generalStringBuffer)));

cJSON_AddItemToObject(deviceStatus, "statusCode", cJSON_CreateString(get_StatusStr()));

0 Likes
6 Replies