Hi everyone,
I have some issues to program my custom board with the same family teensy3.6 chip : the MK66FN2M0.
Let's recap my way of thinking :
I used to work a lot with Arduino so I developed some Arduino libraries. I was looking for a bigger microprocessor, in terms of memory flash and cpu speed especially, than my old Atmega2560, which would keep the Arduino compatibility.
Hence, I bought the teensy 3.6. I decided to make my custom board with the MK66F2M0 chip which comes from the same family at the tennsy3.6 chip (the MK66FX1M0) but with 2 mains differences, as far as I know, the size of flash memory (twice bigger than teensy 3.6) and the size of eeprom (no eeprom available with the MK66FN2M0 chip).
While I made the custom board (schematics, routing and fabrication), I still could work on teensy 3.6 to be ready (or almost ready) when the custom board will show up.
Happy to receive my board, I'm feeling dumb to not succeed in programming my chip. According to me, I just have to compile my code with a custom board in Arduino IDE. So, I modify the board.txt file (see enclosureView attachment boards.txt) to fit my custom board and with a preprocessor compilation directive (__MK66FN2M0__), I get rid of all the eeprom stuff (especially teensy3/eeprom.c) to avoid any conflict.
Once the hex file generated, I program my chip with a segger J-link probe but nothing happens. I tried with a simple blinky program but the problem still remains. With the segger probe, I looked at the register memory and the clock gate to Port Module was disabled which means the gpio has not been configured.
To exclude any design problem on my custom board, I tried with MCUExpresso IDE and the SDk provided and I manage to blink the LED.
I guess the problem comes from a bad configuration which may halt the processor but i do not succeed in finding the problem.
I hope I have made this sufficiently clear and someone can help me.
I'm using windows 7 and Arduino 1.6.5
Thanks in advance and have a great day !
I have some issues to program my custom board with the same family teensy3.6 chip : the MK66FN2M0.
Let's recap my way of thinking :
I used to work a lot with Arduino so I developed some Arduino libraries. I was looking for a bigger microprocessor, in terms of memory flash and cpu speed especially, than my old Atmega2560, which would keep the Arduino compatibility.
Hence, I bought the teensy 3.6. I decided to make my custom board with the MK66F2M0 chip which comes from the same family at the tennsy3.6 chip (the MK66FX1M0) but with 2 mains differences, as far as I know, the size of flash memory (twice bigger than teensy 3.6) and the size of eeprom (no eeprom available with the MK66FN2M0 chip).
While I made the custom board (schematics, routing and fabrication), I still could work on teensy 3.6 to be ready (or almost ready) when the custom board will show up.
Happy to receive my board, I'm feeling dumb to not succeed in programming my chip. According to me, I just have to compile my code with a custom board in Arduino IDE. So, I modify the board.txt file (see enclosureView attachment boards.txt) to fit my custom board and with a preprocessor compilation directive (__MK66FN2M0__), I get rid of all the eeprom stuff (especially teensy3/eeprom.c) to avoid any conflict.
Once the hex file generated, I program my chip with a segger J-link probe but nothing happens. I tried with a simple blinky program but the problem still remains. With the segger probe, I looked at the register memory and the clock gate to Port Module was disabled which means the gpio has not been configured.
To exclude any design problem on my custom board, I tried with MCUExpresso IDE and the SDk provided and I manage to blink the LED.
I guess the problem comes from a bad configuration which may halt the processor but i do not succeed in finding the problem.
I hope I have made this sufficiently clear and someone can help me.
I'm using windows 7 and Arduino 1.6.5
Thanks in advance and have a great day !