9 years, 11 months ago.

FRDM-K64F questions

Just a few questions on the FRDM-K64F board.

I realize the board is still pretty new, so it is a work in progress. I would just like an idea on some of the functionality of the board that doesn't appear working yet (at least i can't seem to get them working yet)

I did manage get these items working ok:

1) Digital inputs and outputs 2) Analog inputs (only PTB2,3,10,11,12) 3) SD card read/write 4) Accelerometer/magnetometer 5) onboard switches and LEDs 6) USB Host (mouse and keyboard) 7) DAC

However I'm having trouble getting these working:

1) Ethernet (tried TCP echo server) 2) 16 bit ADC 3) Bluetooth interface (Haven't tested yet, but can't find any examples) 4) RF24L01 interface (Haven't tested yet, but can't find any examples) 5) PWM (the LED flashes, but there is no control over period or pulse width)

Overall, a couple of questions. When will the API get hashed out to the point where all of the functions available are useable? I'd like to use all of the other hardware features such as CAN, I2S, comparators, PWM, etc.

They might be working, but if someone could point me to a test example for these I could import, that would be wonderful.

Thanks.

1 Answer

9 years, 11 months ago.

I don't have it, but I believe the LED isn't pwm capable, so the LED flashes its error pattern (you can check if you get a message on via the serial terminal). I2S and comparators aren't part of the mbed lib, so you will need to code that yourself (or check if someone else did it already). Ethernet has recently been updated, make sure both your ethernet and mbed lib are the latest version.

How do you mean 16-bit ADC? As in, AnalogIn will use that I suppose.

Accepted Answer

I did indeed have the error message. Thanks for that. I used one of the pins labeled PWM, and it worked fine. Dumb mistake. As to the 16 bit analog input. My understanding was that the ADC ch0 + input was ADC0_DP0 (pin5 of J20), and the ADC ch0 - input was ADC0_DM0 (pin7 of J2). I guess I'm hung up on how to access the value from that. I used "AnalogIn ain(PTB3);" ok for example, but "AnalogIn ain(ADC0_DP0);" threw up a compile error. I tried ADC0, and a bunch others in place of the ADC0_DP0, but couldn't get the right name. Looked in pinnames.h, didn't see it there either.

The Ethernet worked ok after updating. Thanks! 2 answered out of 3. I'm happy with that :)

posted by James Belcher 18 May 2014