cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407ZG

Rahimi.Meysam
Associate II
Posted on February 10, 2015 at 22:08

Hi

I have the Problem:

 I have ported and tested a uCOSII on stm32f4/discovery(STM32f407VG) evaluation board with out any problem(board Programmed with onBoard STLINK).

after that i have tried to program a custom board with STM32f407ZG with Jlink.

i have no problem with simple programs but the program that worked on the evaluation Board, when get to the ''enable interrupt processor level'' at the uCOSII resources jump to the 0 address of Memory and THis Warning appeare:

 warning t-bit of xpsr is 0 but should be 1. changed to 1

can anybody please help me what is the problem? I cant Figure out!!

thank you

#ucos-ii-stm32f407
7 REPLIES 7
Posted on February 10, 2015 at 22:58

I cant Figure out!!

Ok, then start by explaining how your board design differs from the Discovery board?

Right now it sounds like you're jumping to a NULL pointer, so is this the SAME code compilation that worked on the DISCO, or not?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Rahimi.Meysam
Associate II
Posted on February 11, 2015 at 08:27

The different is just micropocessor using:

discovery: STM32F407VG

my evaluation Board: STM32F407ZG

and yes. This is the same code that worked on DIscovery Board.

thank you.

Posted on February 11, 2015 at 16:07

Clearly something is different. What did you change on your custom designed board? If not the circuit, then the components?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Rahimi.Meysam
Associate II
Posted on February 11, 2015 at 21:15

Dear clive1

I get deep review on my board by your suggestion and i figured out this different:

 -on Discovery Board Boot0 & Boot1 is connected to VDD with 10k and to GND with 510ohm Resistor.

 -On my board two 510 ohm Resistor has not been mounted. I have not Facility to mount it until 2 days. would you think this problem will be solved?

I have another question from you?

what is the reason for j-link warning that appear?

I am very very deeply thank full for your guides!!?

Posted on February 11, 2015 at 21:23

That would mean BOOT0 and BOOT1 are High, which means the processor attempts to execute from RAM. If your RAM has zero in the first two vectors, or some other junk, the processor could well fault as it tries to execute illegal instructions.

You could short the 510 Ohm resistor position for BOOT0 with a pair of tweezers, or micro-probes, this would force it Low and a reset would run code from FLASH.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Rahimi.Meysam
Associate II
Posted on February 11, 2015 at 21:45

I have to appreciate you very very much.

THank you . my problem Solved.

Can I have your Email or Some Other Way to communicate you more directly?

BY the way thank you very much.

Posted on February 11, 2015 at 21:58

Can I have your Email or Some Other Way to communicate you more directly?

The forum works well for my purposes, please review my profile.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..