chipKIT® Development Platform

Inspired by Arduino™

Setting serial speed.

Created Mon, 15 Feb 2016 11:04:05 +0000 by keithsloan52


keithsloan52

Mon, 15 Feb 2016 11:04:05 +0000

I have a PICmx250f128 on a bread board. I tried the normal bootloader but it was not stable enough so having to use a bootloader that is slowed to run at 9600. How do I set an mpide preference to set the serial speed for programming to 9600.

I made a guess at serial.speed=9600 but does not seem to have worked.


majenko

Mon, 15 Feb 2016 12:04:14 +0000

The setting is in the boards.txt file, and is called "boardname.upload.speed". For instance the DP32 definition has:

chipkit_DP32.upload.speed=115200

keithsloan52

Mon, 15 Feb 2016 14:11:04 +0000

Thanks I changed the chipkit_Pi definition to chipkit_Pi.upload.speed=9600

But still have a problem, just to check I had made the change to the correct board I then tried to change the chipkit_Pi.upload.protocol= to something invalid but it did not seem to change anything.

How can I check that I am picking up the correct set of parameters.

Thanks


majenko

Mon, 15 Feb 2016 14:55:12 +0000

Did you make the change while the IDE was open? If you did you have to quit and re-load the IDE for it to pick up the change.


keithsloan52

Mon, 15 Feb 2016 15:26:08 +0000

Found the problem.

I was changing the boards.txt file in opt/mpide_version/hardware/pic32

but the one I needed to change was in /opt/mpide_version/hardware/pic32/variants/ChipKit_Pi