Undefined Reference Error and Other Questions

Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm
Location: India

Re: Undefined Reference Error and Other Questions

Postby Abhishek » Wed Oct 31, 2012 12:37 pm

Magnetic wires have the advantage of creating very dense and compact layouts on a standard PCB, with negligible thickness, as you could see in this picture. However it's not a compulsion, if you do use magnetic wires, remember to check continuity everytime you solder up each wire.

The reason these modules consume different currents is certainly due to backlight LED configurations. This module, as seen from the schematics has 5 LEDs on panel wired up in parallel - but this current and all would make no sense. Had there been an overcurrent issue, the LDO would have been expected to heat up or, the MCU wouldn't be running in the first place! However since you (yellowtiger) are using a 33R resistor, you shouldn't face this issue.

The issue I can say so far has been narrowed down to your wiring. Wire it up, and let us know any further problems you face.

Abhishek

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Undefined Reference Error and Other Questions

Postby Tectu » Wed Oct 31, 2012 1:43 pm

Ah, I must have missed the part that he already has a resistor in series to his backlight, sorry.
Yeah, wire it up and let us know, meanwhile we pray for you :)


~ Tectu

yellowtiger
Posts: 15
Joined: Sun Oct 28, 2012 6:42 pm

Re: Undefined Reference Error and Other Questions

Postby yellowtiger » Wed Oct 31, 2012 4:45 pm

You guys are so nice, thanks. I'll try adjusting the FSMC timing first. Then I'll try soldering the wires to the PCB board. I'll let you know how it goes (this might take a few days since there are many pins to solder).

@mobyfat:
I built a toolchain in Xubuntu 12.04 using summon-arm-toolchain and I am using stlink st-flash to flash my program to the MCU board.

Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm
Location: India

Re: Undefined Reference Error and Other Questions

Postby Abhishek » Wed Oct 31, 2012 8:54 pm

I'd recommend using the official toolchain from ARM which you can get at launchpad.net/gcc-arm-embedded . Try using that toolchain to build and see if makes a difference.

Also you might wish to try out the Eclipse based IDE ChibiStudio offered by this platform. There is an experimental Linux version. You can read the forum for further info on this.

Abhishek

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

Re: Undefined Reference Error and Other Questions

Postby mobyfab » Thu Nov 01, 2012 2:46 pm

You can try this if you are under linux: http://code.google.com/p/qstlink2/

I made some packages for ubuntu but you better build it from source for the latest version.

Also as Abhishek said you better use the official toolchain as it includes some fixes.

yellowtiger
Posts: 15
Joined: Sun Oct 28, 2012 6:42 pm

Re: Undefined Reference Error and Other Questions

Postby yellowtiger » Mon Nov 05, 2012 5:49 am

OK, guys, I have tried a few things. Firstly I tried increasing the FSMC delay using Abhishek's code. No luck - Same as before (I have to wait for some time for the LCD board to work). Then I wired my PCB board using magnet wires. I checked continuity after the wiring and the connection looked good. But still no luck.

At this moment I start to think this might be a hardware problem of either MCU board or LCD board. So I ordered another STM32F4Discovery board and another LCD panel. They should be here in two weeks (I ordered the LCD panel from a Chinese seller off ebay). I'll let you know how things turn out.

Thanks again for your help.

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Undefined Reference Error and Other Questions

Postby Tectu » Mon Nov 05, 2012 7:40 am

Hello yellowtiger,

So we finally know that FSMC speed is not the issue :D
Another thing you could try is using GPIO as your LCD interface. The usage of it is documented on the website.
Do you have any way to check the SPI or UART output of the bare F4 ChibiOS example without any LCD? When you don't have any trouble there, it shouldn't be a discovery board issue.

P.S. Where do you life? It always takes me like four weeks to receive chinese ebay stuff :o



~ Tectu

yellowtiger
Posts: 15
Joined: Sun Oct 28, 2012 6:42 pm

Re: Undefined Reference Error and Other Questions

Postby yellowtiger » Tue Nov 06, 2012 7:24 am

Hi Tectu,

I do have a USB to UART converter that I, again, bought off ebay. However, I couldn't make it work on any of my three PCs. So for now I don't have a way to check if the SPI or UART output from the STM32F4 board. I have another USB to RS232 converter cable. Do you think I can use this to check?

I currently live in California, USA. It usually takes about 2 ~ 2.5 weeks for Chinese seller's item to get here.

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Undefined Reference Error and Other Questions

Postby Tectu » Tue Nov 06, 2012 1:00 pm

Hello yellowtiger,

It would be enough when you could tell us if the LED on the board begins to flash immediately after a rest or not.
When it does, there must be an issue in GFX / your LCD (the most likely). If the LED does take a couple of minutes to light up and dosen't flash fast, there is an issue in your toolchain or arround that.


~ Tectu

Abhishek
Posts: 266
Joined: Wed May 23, 2012 3:15 pm
Location: India

Re: Undefined Reference Error and Other Questions

Postby Abhishek » Tue Nov 06, 2012 4:25 pm

You don't need a SPI analyser to detect SPI output. Simply connecting two LEDs to MOSI and SCLK pins and GND will do the job quite well, unless you don't want to inspect what data you would be getting out of the controller :)

Abhishek


Return to “LCD Driver and Graphic Framework”

Who is online

Users browsing this forum: No registered users and 14 guests