Page 5 of 60
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 16 Apr 2020 20:51
by terriblefire
arkadiusz.makarenko wrote: 16 Apr 2020 20:31
terriblefire wrote: 08 Apr 2020 20:44
Got it.. needed to set these settings in ST Link Utility
settings.JPG
... weird I had those set up like this by default.
Did your board arrive?
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 16 Apr 2020 21:05
by arkadiusz.makarenko
terriblefire wrote: 16 Apr 2020 20:51
arkadiusz.makarenko wrote: 16 Apr 2020 20:31
... weird I had those set up like this by default.
Did your board arrive?
Yes, It did. I sent you PM.
I have issues with USB FS init config at the moment. HS seems to init all right.
I will have a look at this this weekend.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 16 Apr 2020 21:12
by terriblefire
arkadiusz.makarenko wrote: 16 Apr 2020 21:05
terriblefire wrote: 16 Apr 2020 20:51
Did your board arrive?
Yes, It did. I sent you PM.
I have issues with USB FS init config at the moment. HS seems to init all right.
I will have a look at this this weekend.
Thats great I couldn't get the board to boot very far.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 18 Apr 2020 20:21
by arkadiusz.makarenko
terriblefire wrote: 16 Apr 2020 21:12
arkadiusz.makarenko wrote: 16 Apr 2020 21:05
Yes, It did. I sent you PM.
I have issues with USB FS init config at the moment. HS seems to init all right.
I will have a look at this this weekend.
Thats great I couldn't get the board to boot very far.
I managed to configure clocks on this chip in a way that they allow booting to main.
Those at this point only for USB and arm itself, need to have a look what else needs to be set up.
Clock resolver not always do the great job unfortunately.
But still something is not 100% right.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 18 Apr 2020 21:15
by terriblefire
arkadiusz.makarenko wrote: 18 Apr 2020 20:21
terriblefire wrote: 16 Apr 2020 21:12
Thats great I couldn't get the board to boot very far.
I managed to configure clocks on this chip in a way that they allow booting to main.
Those at this point only for USB and arm itself, need to have a look what else needs to be set up.
Clock resolver not always do the great job unfortunately.
But still something is not 100% right.
Yeah even with the board on the bench, erased CPLD i still have an issue but i cannot say what, It cant be the rest of the circuit as there isnt anything attached.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 18 Apr 2020 22:26
by arkadiusz.makarenko
I managed to set up USB FS to a point when it can detect something, and then it goes to HardFault for no reason with freshly generated project.
Error is either undefined instruction or something else quite weird. Faults are not consistent either.
My bet would be on initial configuration of this chip, but can't exactly point what.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 18 Apr 2020 22:37
by terriblefire
arkadiusz.makarenko wrote: 18 Apr 2020 22:26
I managed to set up USB FS to a point when it can detect something, and then it goes to HardFault for no reason with freshly generated project.
Error is either undefined instruction or something else quite weird. Faults are not consistent either.
My bet would be on initial configuration of this chip, but can't exactly point what.
My bet would be power, clocks or config. I cant see what i could have screwed up on the circuit but i'm happy to fix anything we see is screwed. .
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 18 Apr 2020 23:45
by arkadiusz.makarenko
terriblefire wrote: 18 Apr 2020 22:37
arkadiusz.makarenko wrote: 18 Apr 2020 22:26
I managed to set up USB FS to a point when it can detect something, and then it goes to HardFault for no reason with freshly generated project.
Error is either undefined instruction or something else quite weird. Faults are not consistent either.
My bet would be on initial configuration of this chip, but can't exactly point what.
My bet would be power, clocks or config. I cant see what i could have screwed up on the circuit but i'm happy to fix anything we see is screwed. .
I can see the same issues on HID2AMI with f722, so circuit most likely is all right. I didn't install cpld, I am on bare boards just now.
I don't have oscilloscope, is everything all right with 8Mhz oscillator?
EDIT.
My MPU crashes on different points. Sometimes even get to HID descriptors, so very far in USB enumeration, and I can see that USB pipes are set. So it even managed to read some data from USB.
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 18 Apr 2020 23:48
by terriblefire
arkadiusz.makarenko wrote: 18 Apr 2020 23:45
I can see the same issues on HID2AMI with f722, so circuit most likely is all right. I didn't install cpld, I am on bare boards just now.
I don't have oscilloscope, is everything all right with 8Mhz oscillator?
I honestly dont know. Do we need to change the crystal for something else? ANything in the docs?
Re: TF CD32 Riser Revision 2 Design Complete
Posted: 18 Apr 2020 23:53
by terriblefire
Worth noting...
Clock, reset and supply management
– 1.7 V to 3.6 V application supply and I/Os
– POR, PDR, PVD and BOR
– Dedicated USB power
– 4-to-26 MHz crystal oscillator
– Internal 16 MHz factory-trimmed RC (1%
accuracy)
– 32 kHz oscillator for RTC with calibration
– Internal 32 kHz RC with calibration
Can you use the internal 16Mhz?