Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 5 months ago.
mbed.h incorrect?
Hello,
I work with the FRDM-K64F and the FRDM-FXS-MULT2-B. I used this program to read out the gyrometer:
- include "mbed.h"
- include "FXAS21000.h"
FXAS21000 gyro(A5, A4);
Serial pc(USBTX, USBRX);
int main() { float gyro_data[3]; printf("\r\nStarting\r\n\r\n");
printf("FXAS21000 Gyro = %X\r\n", gyro.getWhoAmI());
wait(2);
while(1) {
gyro.ReadXYZ(gyro_data); printf("FXAS21000 Gyro: X:%f Y:%6.2f Z:%6.2f\r\n", gyro_data[0], gyro_data[1], gyro_data[2]);
printf("\r\n");
wait(1); } }
That was all working fine and I didn't have a single issue with it. Then I updated the mbed.h library and now I get the error: pinmap not found for peripheralp. I'm using the exact same code, didn't change anything, besides the mbed.h. Can you (mbed) fix this problem or tell me what to fix in my code?
With kind regard
The latest version did manage to break some things on some boards. Until they fix it you can change back to an old version of the library by right clicking on the mbed library in your project and selecting revisions. You should get a list of versions, the latest being 121. Select the version you want (120 should be fine) and click on the switch button.
posted by Andy A 08 Jun 2016I believe you need revision 119 though as functional one.
posted by Erik - 08 Jun 2016