- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3k
 
Support for the NUCLEO H753ZI #15171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           @yorickdewid, thank you for your changes.  | 
    
| 
           Hi Very good work for me 
 Choose patch update 
 Yes, this is not the correct method :-)  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change few patches to align with STM32H743,
see jeromecoutant@a957878
Thx
| 
           In order to be complete, as you set EMAC in the targets.json file, you should add the board configuration in:  | 
    
| 
           I'll add the board to the EMAC drivers. The difference between the h743 and the h753 is crypto support. Is this somthing I need to expose to Mbed OS? Btw, a lot of ST docs/wiki pages are outdated, but I guess that's not a surprise.  | 
    
          
 To add crypto support, you need: 
 
 https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/README.md  | 
    
| 
           The pinout for the ethernet H743 and H753 is supposed to be the same, so added a ref to the same EMAC source. Question; is there a test command for new Mbed CLI 2?  | 
    
          
 Correct 
 For me, tests are still with CLI1  | 
    
        
          
                connectivity/drivers/emac/TARGET_STM/TARGET_STM32H7/CMakeLists.txt
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 
           Both the 43 and the 53 testcases fail at   | 
    
| 
           Use GCC v10 I think  | 
    
| 
           Using the latest GCC compiler I still get numerus compile errors and failed tests (for both boards). Some tests complain about the compiler version ( I am willing to contribute but the whole build and test process feels messy.  | 
    
          
 This one is OK :-) #15175  | 
    
| 
           Hello @yorickdewid  | 
    
| 
           Didn't get the test cases running. I am sure the board config works because is basically the same as the H743Zi2  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments from jeromecoutant@a957878
| * Automatically generated from STM32CubeMX/db/mcu/STM32H753ZITx.xml | ||
| */ | ||
| 
               | 
          ||
| /* MBED TARGET LIST: NUCLEO_H753ZI2 */ | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: NUCLEO_H753ZI
| ;******************************************************************************* | ||
| ; User Stack and Heap initialization | ||
| ;******************************************************************************* | ||
| IF :DEF:__MICROLIB | ||
| EXPORT __initial_sp | ||
| EXPORT __heap_base | ||
| EXPORT __heap_limit | ||
| ELSE | ||
| IMPORT __use_two_region_memory | ||
| EXPORT __user_initial_stackheap | ||
| __user_initial_stackheap | ||
| 
               | 
          ||
| LDR R0, = Heap_Mem | ||
| LDR R1, =(Stack_Mem + Stack_Size) | ||
| LDR R2, = (Heap_Mem + Heap_Size) | ||
| LDR R3, = Stack_Mem | ||
| BX LR | ||
| 
               | 
          ||
| ALIGN | ||
| 
               | 
          ||
| ENDIF | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove this part
| Stack_Size EQU 0x00000400 | ||
| 
               | 
          ||
| AREA STACK, NOINIT, READWRITE, ALIGN=3 | ||
| Stack_Mem SPACE Stack_Size | ||
| __initial_sp | ||
| 
               | 
          ||
| 
               | 
          ||
| ; <h> Heap Configuration | ||
| ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> | ||
| ; </h> | ||
| 
               | 
          ||
| Heap_Size EQU 0x00000200 | ||
| 
               | 
          ||
| AREA HEAP, NOINIT, READWRITE, ALIGN=3 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is not as in H743
| /* Call static constructors */ | ||
| bl __libc_init_array | ||
| /* Call the application's entry point.*/ | ||
| bl main | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See H743, _start should be called, not main
| 
           Hello @yorickdewid and @jeromecoutant. Currently, I'm working on a project using the Nucleo h753 using MBed (We didn't realize MBed wasn't supporting this development board precisely when we chose it) So far we have been using the Nucleo h7d43 as the target because they are extremely similar. We are running into a big problem rn. the CAN bus is not working at all. When sending data through the CAN bus it reaches the board but it is not reading anything. And when trying to send anything the TX pin doesn't try to send anything, it is always high. We think the problem might be because of a Pin Map difference between the chips or something of that kind, but as far as I understand both boars are similar on everything. Going to the mbed target files, specifically on the PeripheralPins.c, line 391 I think the Pin Map of the CAN buses are the same.  | 
    
| 
           The proposed PR only changes some configuration files and settings to the H753. Just note that they are not just similar, they are the same with the 53 having a couple of cryptographic extensions. Could can port the code between het 43 and the 53 as long as you do not touch cryptographic functions (which aren't implemented anyway). CAN is tricky to get working, and a lot needs to happen just right. We never got that far with MbedOS. We switched to stm32-rs and got the CAN-FD working no issues. I can't advise you on the CAN interface, the problem is too broad. If you have no other options, then DM me.  | 
    
| 
           Glad to hear that the H753 should be completely compatible with the H743. That is what I thought, but it is good to hear it from someone who knows more about the topic. I didn't know about STM32-rs, I will give it a look. I was thinking about something similar, but instead of switching to stm32-rs switch to the stm32 HAL provided by st.  | 
    
| 
           FYI: #15232  | 
    
| 
           This PR cannot be merged due to conflicts. Please rebase to resolve them.  | 
    
| 
           @yorickdewid What shall we do with this draft?  | 
    
| 
           I haven't used MBedOS since November so I don't know if this PR still makes sense. You can close it if you want.  | 
    
| 
           when is NUCLEO H753ZI gonna be merged to mbed-os????  | 
    
Summary of changes
Impact of changes
Migration actions required
Documentation
None. The documentation is not yet updated.
Pull request type
Test results
Need some assistance with tests. I've run the
build.pytool but it returns a failed build. However an existing target returns a failed build as well.python3 ./tools/build.py -m NUCLEO_H753ZI -t GCC_ARMReviewers