This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS with Hercules RM48 board / experience

Other Parts Discussed in Thread: HALCOGEN

Hello,

I have Hercules RM48 board and latest CCS "Version: 5.4.0.00091" and Halcogen "03.05.02". Below you have my general user experience compared to other GUIs fo embedded boards.

Board came with nothing in flash I think -- I'd expect to get something in flash, so at least I could quickly verify UART/Ethernet works OK on my board.

Anyway: I compiled "Hello world" example project with RM48 950 chip selected. I can't find anything to upload program to the board. I'd expect "Run"->"Load" to be this option. However the only thing there is "Verify program" and it doesn't work. So I did "Debug". It found the device, erased the whole Flash without asking me, and started doing something, but I go zero feedback on what's actually happening.

My expectation was that "Hello world" from CCS should print something on COM port. I have a connection via PuTTY on COM13. Nothing showed up. When I stopped the debugger, it was in 0x4 address, which implies memory fault (?)

So I just suspect this example flow doesn't work and should be removed from the menu. Halcogen must be use to initialize PLLs etc..

BTW, I'd expect to be able to run things from DDR or SRAM, instead of writing Flash each time.

Next I made myself "p2" project, generated files with Halcogen and they got inserted to the CCS project. First experience: Halcogen generates .c files in source/ while .h files in include/. So in CCS, in Project options, you must add "include" to the search directory by hand.

printf() is undefined... I'd expect printf() to be the function that would generate something on the UART.

Are the any examples of a real "Hello world"?

  • Hi,

    Thanks for reporting your experience. Unfortunately I don't have a Hercules board, therefore I can't comment on its intrinsic details. Also, the Hercules family of devices has a very peculiar way of performing code development, as it heavily relies on HALCoGen and not CCS, therefore this helps explain the reasons you found several issues with the development flow.

    The CCS Hello world, for example, does not use any hardwaer but instead the built-in standard console implementation - similarly as if you had a screen attached to your board (this is somewhat explained in the comments when creating the example project).

    In order to create a project with the functionality you expect, you would need to use one of the examples of HALCoGen (the example_sci_UART_9600) and follow its help instructions. As you mentioned in your query, this is not integrated into CCS and the extra steps are needed (there is a document SPNA121 that talks about that, but for v4).

    Wojciech Koszek said:

    Anyway: I compiled "Hello world" example project with RM48 950 chip selected. I can't find anything to upload program to the board. I'd expect "Run"->"Load" to be this option. However the only thing there is "Verify program" and it doesn't work. So I did "Debug". It found the device, erased the whole Flash without asking me, and started doing something, but I go zero feedback on what's actually happening.

     
    By default the "Debug" functionality performs a series of actions: launch the debugger, load code to the device and then run to the main() function. This last step is what failed (due to the data abort exception) and therefore the debugger seemed inoperative: the processor was running free, and possibly the processor status showed ABT or EXC at the bottom of the screen...

    I couldn't find anything specific for HALCoGen, but for additional details on how to start using CCS please check its Getting Started Guide at:

    http://processors.wiki.ti.com/index.php/CCSv5_Getting_Started_Guide

    Specifically for the Debug operation, check section 6.2.

    Hope this helps,

    Rafael