Hi,
during the week-end I had access to one board with STR750. It's not
the evaluation board from ST.

Initially I had some issue with reset from JTAG, probably because the
on-board reset circuit differs from the original board.
After change the "reset_config" line in tcl/target/str750.cfg I was
able to properly reset.
I'm not providing any patch for this, since I expect the current
config file matches the evaluation board.

After that modification, I was still unable to execute "reset init".
The default reset_init script in tcl/target/str750.cfg try to remove
flash protection.
I expect the failure was because the device has internal flash already
programmed and protected against duplication.
Anyway, "reset halt" was ok, and enough for my tests.

The board does not mount a serial NOR on SMI interface, but was easy
to temporarily connect one device.

In attachment a set of patches:
1) fix a segfault in case of no memory connected (my fault).
2) add STR750 as new device in SMI driver. This patch is much cleaner
than what I proposed last week.
    In the file tcl/target/str750.cfg I have added the proper HW
initialization for SMI in a separate procedure.
    This helped me to run "reset halt" followed by "init_smi" in place
of "reset init" (not working on my board).
    Should be also comfortable to anybody that needs to remove SMI support.
3) Since SMI is not anymore a SPEAr specific driver, this patch
changes all the names from "spearsmi" to "stmsmi"
4) last patch to rename "spearsmi.c" as "stmsmi.c"

All patches are ready to be committed.
Last 2 are not mandatory, but add consistency.

Best Regards,
Antonio Borneo

Attachment: 0001-NOR-SPEARSMI-fix-segfault.patch
Description: Binary data

Attachment: 0002-STR750-Add-SMI-interface-support.patch
Description: Binary data

Attachment: 0003-FLASH-NOR-rename-from-spearsmi-to-stmsmi.patch
Description: Binary data

Attachment: 0004-FLASH-NOR-Rename-spearsmi.c-to-stmsmi.c.patch
Description: Binary data

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to