SAM3X8C with ILI9341 help starting

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

Posts: 2
Joined: Thu Feb 12, 2015 7:01 am

SAM3X8C with ILI9341 help starting

Mon Feb 16, 2015 3:29 am

Hi, this is my first time transitioning from AVR to ARM so I hope it is just something obvious I am missing. I am using Atmel Studio 6.2 trying to use the ILI9341 display controller from the ASF library without much luck so far. The SAM3X8C is connecting through SPI using pins PA25(MISO), PA26(MOSI), PA27(SCK), PA28(CS), PA29(Reset), and PB3(DC) to connect to my LCD with ILI9341. These pin assignments have been updated in the generated conf_ili9341.h file. The board should be configured to be using SPI0 according to conf_board.h. Following the ASF example workflow, all I have in my code is:

Code: Select all

#include "asf.h"
#include "conf_board.h"
#include "conf_clock.h"
#include "conf_ili9341.h"

int main(void)
	ili9341_set_top_left_limit(0, 0);
	ili9341_set_bottom_right_limit(240, 320);
	ili9341_duplicate_pixel(ILI9341_COLOR(255, 0, 60), 240UL * 320UL);
While this is a custom board, I have been able to program simple tasks such as turning on and off LEDs on the board, so I don't think it is a problem with uploading the code. And I have been able to turn this LCD on using an atmega2560 with similar hookup over SPI.

Has anyone successfully setup this LCD driver? And if so, could you possibly share your setup? It is possible I am not setting up the ASF wizard correctly for this component either. Any and all help will be greatly appreciated! 
Posts: 2
Joined: Thu Feb 12, 2015 7:01 am

Re: SAM3X8C with ILI9341 help starting

Thu Feb 19, 2015 5:01 am

Thank you for your reply.

I should have clarified better. I started using the ASF wizard for the "LCD - ILI9341 Display Controller (component)" module. After letting the ASF wizard start me off, I used Atmel's API docs for the initialization and simple use of the LCD / controller.

I read through the linked post and re-tried starting from scratch again but to no avail. I'm not sure what I'm doing wrong. 
Posts: 11
Joined: Mon Feb 16, 2015 4:29 am

Re: SAM3X8C with ILI9341 help starting

Thu Feb 19, 2015 8:26 pm

I just posted similar question on SAM4 forum, by mistake. 
I just wanted  to know which on of he ASF samples is closest to I2C / SPI.
I guess your post answered that, so I'll try the wizard and see if I am successful. 
Thanks Vaclav 

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest