chipKIT® Development Platform

Inspired by Arduino™

Chipkit WiFire Visual Micro Programming

Created Wed, 11 Mar 2015 20:44:04 +0000 by tudilol95


tudilol95

Wed, 11 Mar 2015 20:44:04 +0000

I have just started progamming my first chipkit WiFire and encountered difficulties in programming it using Microsoft Visual Studio 2010 with the plug in Visual Micro. Initially after linking M Visual Studio with the mpide i did not find my board in the listed ones(Chipkit Wifire).After a copy-pastes of the boards .txt descriptive files in the cores folder "\ProiectDigilent\mpide-0023-windows-20140821\hardware\pic32\cores\pic32" I have managed to compile a mock project, something not possible earlier. However now i encounter this error and i'm stuck with it

Compiling 'Test01' for 'chipKIT WiFire' ld.exe:61: warning: memory region exception_mem' not declared ld.exe:613: warning: memory region kseg1_data_mem' not declared vector_offset_init.o:(.__vector_offset_BF810540_data+0x0): undefined reference to __vector_offset_0' vector_offset_init.o:(.__vector_offset_BF810540_data+0x4): undefined reference to __vector_offset_1' vector_offset_init.o:(.__vector_offset_BF810540_data+0x8): undefined reference to `__vector_offset_2'4

and it goes on... How can i fix it or what can i do to compule my Wifire via Visual Micro code?


majenko

Wed, 11 Mar 2015 23:29:25 +0000

The Wi-FIRE is very different to the other boards out there. It uses the new MZ chip which has a very different memory arrangement.

Consequently the instructions on how to link are different. There is a special set of MZ linker scripts - a common one in the MPIDE core with the MX common one, and a chip specific one in the variant folder for the Wi-FIRE.

You have to ensure that you are linking with those linker scripts, not the default MX linker scripts.


tudilol95

Sun, 15 Mar 2015 19:04:59 +0000

Please inform me exactly what to do (step by step if possible)or how to include the correct files or what to do such that I can compile and program my chipkit Wi-fire?


majenko

Sun, 15 Mar 2015 19:10:58 +0000

I don't have the faintest clue (nor do I want the faintest clue) about how to use Visual Studio to program microcontrollers, so I can't help you there.

All I can suggest is to load MPIDE and to a verbose compile (shift-click compile) and try and replicate the commands it uses (especially the link command) within your software.